Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
N/A
-
None
-
windows
Description
Maridb odbc is too slow when you connect a remote server. Same server connected with mysql odbc gives very fast response. Please look into the matter as mariadb user want to use maridb odbc.
P.S. i am using Visual Foxpro with mariadb and using mariadb 3.1 driver.
Attachments
Issue Links
- is caused by
-
ODBC-313 Redundant SQLPrimaryKeys calls in applications created with Embarcadero
-
- Closed
-
- relates to
-
MDEV-16670 Improve execute direct (prepare and execute) performance
-
- Open
-
-
MDEV-19237 Skip sending metadata when possible for binary protocol
-
- Closed
-
-
ODBC-222 Make SQLExecDirect to use text protocol(i.e. mysql_query)
-
- Closed
-
The main theory is that is because of prepared statements in maodbc vs text protocol in myodbc.
MariaDB has some optimization for direct execution of the prepared statements. But it's disabled, when compression is used. But it apparently it doesn't remove all the overhead.
However, mariadb log has 388 more API calls. And in particular 9 more calls of SQLDirectExec, i.e. 9 more queries. With all accompanying metadata calls, rows fetching, column data getting etc, they actually can be responsible for all those 388 calls. Anyway, those queries and calls are making ~10% of total number and unlikely can be responsible for the whole performance time difference. But still requires some research at least to figure out why are they there, and not in the myodbc trace.