long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.

Home Page:https://github.com/long2ice/asynch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection live time

draincoder opened this issue · comments

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.

Just use pool