Why is my database connection slower with MySQL than with Microsoft Access?

6 visualizzazioni (ultimi 30 giorni)
I am inserting large amounts of data into a MySQL database. There is no problem fetching data. However my insert (both INSERT and FASTINSERT) operations are very slow. Also, the same operations are much faster with a MS Access connection. Both databases reside on the same remote location and the data that is being accessed is of similar format.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 30 Apr 2021
Modificato: MathWorks Support Team il 30 Apr 2021
MySQL tables are of type InnoDB by default. The table format InnoDB grows continually (on inserting data) and doesn't shrink when tables or data are deleted. It is recommended to use MyISAM as the table format, as this is both faster and more efficient.
The official documentation of MySQL says that InnoDB tables require a lot more disk space than MyISAM tables. Also, rollbacks take very long on InnoDB tables.
Please refer to the MySQL documentation at the following page for more information:

Più risposte (0)

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by