Slow select when inserting large amounts of data (MYSQL)

Posted by siannopollo on Stack Overflow See other posts from Stack Overflow or by siannopollo
Published on 2010-03-15T00:23:41Z Indexed on 2010/03/15 0:29 UTC
Read the original article Hit count: 600

Filed under:
|
|
|
|

I have a process that imports a lot of data (950k rows) using inserts that insert 500 rows at a time. The process generally takes about 12 hours, which isn't too bad. Normally doing a query on the table is pretty quick (under 1 second) as I've put (what I think to be) the proper indexes in place. The problem I'm having is trying to run a query when the import process is running. It is making the query take almost 2 minutes! What can I do to make these two things not compete for resources (or whatever)? I've looked into "insert delayed" but not sure I want to change the table to MyISAM.

Thanks for any help!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about select