I need to load a large data set onto a production database.
15 files need to each be uploaded and inserted into a table. Each is about 500 Mb.
I have two ID columns that need to be indexed. If I load the files with indexes in place, the upload takes around 3 hours. If I drop indexes, load data local infile, then re-add the indexes, the whole operation takes about 30 minutes.
The problem is, database responsiveness takes a big hit while indexing the freshly imported data. Is there a way to make the indexing run at a "low priority" so that other queries still get 95-100% speed and the indexing kind of chugs along in the background?
I'm using Amazon RDS, so I don't have the option of just loading on a different server then copying over the table files.
Adding a bounty to this as I still want to see if there is a way to get good performance while indexing on a specific box.