Connection handling for Sql4CdsConnection #568
Closed
jarvan-jiang
started this conversation in
General
Replies: 1 comment 1 reply
-
If you are managing multiple connections to the same instance you could also look at using shared |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Mark,
I noticed that the code doesn’t explicitly call Open or Close methods for Sql4CdsConnection. Does this mean the connection isn't technically "open" and therefore doesn’t require closing?
The reason I’m asking is that I've observed some queries take a few seconds initially when opening the connection. Using it like a regular SQL connection introduces latency due to frequent open/close operations.
Would it be possible to keep the connection open, perhaps as a singleton? Or do you have any recommended patterns to reduce this overhead?
Beta Was this translation helpful? Give feedback.
All reactions