Ask our Experts
Didn't find what you are looking for? Ask our experts!
Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-10-25 03:35 PM . Last Modified: 2023-05-03 12:39 AM
>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-24 20:07:31 Id:198
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.
--------------
**_rhenman:_**
**_We are using the ClearSCADA OLE DB provider and looking at the logs it appears that it appears that connection pooling isn't occurring._**
**_We create a new OleDbConnection object for each transaction we perform and as described here:_** **_https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/ole-db-odbc-and-oracle-connection-pooling the data provider should be keeping these in a connection pool so they can be reused._**
**_Does anyone know whether the ClearSCADA OLE DB data provider supports connection pooling?_**
---------
bevanweiss:
My reading of that is the for OLE-DB, it is the .NET Framework that handles the connection pooling itself.
So this would be independent from ClearSCADA.
Are you appropriately Disposing and/or Closing the connections after you have finished with them? And how often are you Opening/Closing these connections?
Can you show the snippet of code that you're using to Open and Close/Dispose of the connections, along with the time indication of how often it's being run?
I would expect .NET to factor in a few things when it determines how it will perform connection pooling. If the latency of a Close/Open pairing isn't significant, then there is little to be gained from connection pooling (so it may opt not to use it, to keep system resource use lower), the other options will relate to security I expect, if explicit usernames / passwords are used in the connection string, then it will be impossible to really perform connection pooling, since the connection implies the user... and so you'd need to completely close the connection (and not just advise a close, whilst secretly keeping the connection open in the background... as it indicates the OLE-DB connection pooling would otherwise do).
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.