taosdata / TDengine

High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios

Home Page:https://tdengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does C# client use connection pooling?

moaazassali opened this issue · comments

I have looked through the source code here: https://github.com/taosdata/taos-connector-dotnet, and I don't see anything about connection pooling in the constructors or Open() method for TDEngineConnection, DbDriver or NativeClient.

What is the best strategy to use TDEngine client in c# then? Should I implement my own connection pooling class?

In case I missed/misunderstood something in the C# adapter code, I also implemented my own connection pool queue and the performance gains are obvious. Opening a connection before would take around 1.5ms but now its like 0.005ms with my connection pool.

C# connector does not use a connection pool and creates a connection every time Open is called.