You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connection pool always creates a new connection #250
The connection pool always creates a new connection if the connection string looks like the following: b.UseJet(“Driver={Microsoft Access Driver (*.mdb, *.accdb)};extendedansisql=1;Jet OLEDB: Flush Transaction Timeout=0;dbq=” + dbPath);
This works if I enter the extended parameter in lower case. But then the JET engine ignores it.
I don't think EFCore.Jet has full support for connection pooling yet. In fact the tests regarding that all fail (you only get a pool of 1).
Also that connection string doesn't look right. Driver and DBQ are ODBC string settings. Then we have Jet OLEDB: Flush Transaction Timeout=0 which is for Ole DB. This part will obviously be excluded when using ODBC.
Also just a note, we always set extendedansisql=1 for ODBC whether it is originally set or not
Activity
[-]Connection pooling always create new connections[/-][+]Connection pool always creates a new connection[/+]ChrisJollyAU commentedon Jul 21, 2024
I don't think EFCore.Jet has full support for connection pooling yet. In fact the tests regarding that all fail (you only get a pool of 1).
Also that connection string doesn't look right.
DriverandDBQare ODBC string settings. Then we haveJet OLEDB: Flush Transaction Timeout=0which is for Ole DB. This part will obviously be excluded when using ODBC.Also just a note, we always set
extendedansisql=1for ODBC whether it is originally set or notbeddead commentedon Jul 21, 2024
If I use
b.UseJet(“Driver={Microsoft Access Driver (*.mdb, *.accdb)};dbq=” + dbPath);then pooling does not work too. Because it tries to find connection in pool dictionary using different connection string (with
extendedansisql=1)