Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: Raynard7Posted on 2007-07-12 at 20:11:35ID: 19478066
I'm not sure how these statements are being executed.
How are you going from access to mysql?
What I would do is export the access table to a csv - then upload the csv to a temporary table in mysql then insert the values into the correct table.
I'm not sure what control you have.
The reason generally why csv inserts are quite fast is that it loads multiple records at the same time
If you are inserting one at a time then you can get problems with rebuilding indexes (which you can turn off and on with statements)
If you are doing this from access you could also buffer multiple inserting rows into one statement ie
insert into tablename (field1, field2) values (1,2),(3,4)
which is 2 rows in one statement - which will also execute faster.
If your applications are using odbc and not just executing SQL they may be slower too - because the odbc drivers have some known bugs.