long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.
https://github.com/long2ice/asynch
Apache License 2.0
180 stars 42 forks source link

Connection live time #70

Closed draincoder closed 1 year ago

draincoder commented 1 year ago

Hi, what is the best way to use a connection in a long-lived asynchronous application? Is it better to create a new connection and open the cursor for each request, or is it possible to create a connection as a singleton and only open the cursor at each request? Thank you in advance.

draincoder commented 1 year ago

Just use pool