Open dhirschfeld opened 1 year ago
Pooling is enabled by editing the odbcinst.ini config file, and as such is enabled on a per driver basis. if its required to have some connections to a driver pooled and some not, then create two entries for the driver, and map different DSN's to the drivers. The setup to enable a pooled connection, would look like this...
[ODBC] Trace = No Trace File = /tmp/sql.log Pooling = Yes
[INTERBASE-P] Description = Easysoft Driver for Interbase Driver = /usr/local/lib/libib6odbc.so Setup = /usr/local/lib/libib6odbcS.so FileUsage = 1 DontDLClose = 1 CPTimeout = 120
[INTERBASE] Description = Easysoft Driver for Interbase Driver = /usr/local/lib/libib6odbc.so Setup = /usr/local/lib/libib6odbcS.so FileUsage = 1 DontDLClose = 1
* http://www.unixodbc.org/doc/conn_pool.html
Configuring
pyodbc.pooling = True
doesn't work forunixodbc
(i.e. linux)..therefore need to configure
odbcinst.ini
: