Skip to content

Best way to call multiple timeseries #365

Answered by tnoczyns-volue
marthaag asked this question in Q&A
Discussion options

You must be logged in to vote

High-level, short answer is that generally it is best to re-use existing connection or sessions, because construction of those takes time and resources.

Connections and sessions

Please note I distinguish between connections and sessions within connection. Connection is a gRPC channel/connection to Mesh server, and session is a temporary workspace used to work with Mesh, see: https://volue-public.github.io/energy-mesh-python/mesh_session.html. To create or use a session you first need to have an open connection.

So having less connections and sessions is generally better.

Another thing is that it is better to close a session if it is not actively used for longer periods of time. Active ses…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by tnoczyns-volue
Comment options

You must be logged in to vote
3 replies
@marthaag
Comment options

@tnoczyns-volue
Comment options

@marthaag
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants