I'm moving my access split database backend to a MySQL server. The frontend startup form runs a pass-trough query. It takes 1.25 sec to load the startup form. Without the query, it is 0.05 sec. I tried to run the query after dropping the connection at server side. The query finished in 1.21 sec. When the same query is running after opening the connection, it finishes in 0.016 sec.
So it seems, that Access needs 1.2 sec to open a new ODBC connection. Is there a way to speed up this? With mysqlslap I was able to open & drop 60 connections per second, so it really should not take 1.2 sec.
Configuration:
- MySQL server is running on localhost, win 7 SP1 (i5, enough free RAM).
- Client is MS Access prof 2013 32 bit (with latest patches).
- Server is mysql-5.7.11-x64 community edition.
- MySQL ODBC driver is Unicode 5.3.4 version, both 32 bit & 64 bit installed.
- Connection string without valid server/user/pwd: "ODBC;DRIVER={MySQL ODBC 5.3 Unicode Driver};SERVER=XXX;charset=UTF8;PORT=3309;DATABASE=movedb2;user=XXX;password=XXX;DFLT_BIGINT_BIND_STR=1;option=4196410"
The query:
Dim r as recordset, db as database
Set db = currentdb
Set r = db.Openrecordset(ptqueryname)
I tried it with select 1;
, but the query still finished in 1.2 sec.
ptqueryname
– Thomas G