Emperor
08-07-2005, 11:35 PM
Hi guys,
I wrote code that will bulk insert records (table rows), I thought it would be nice to check if there was an existing record, a matching URL really, before doing the insert.
I'm wondering, if I have (say) 100,000 rows in my table will it take much longer to check them than if I had (say) 500 rows ? Does MySQL internally optimize my tables for fast look-ups ?
If I'm bulk inserting 100 records and the table has 100,000 in it already, and if it does a simple iteration for a match, that could take a long time.
What do you think ?
I wrote code that will bulk insert records (table rows), I thought it would be nice to check if there was an existing record, a matching URL really, before doing the insert.
I'm wondering, if I have (say) 100,000 rows in my table will it take much longer to check them than if I had (say) 500 rows ? Does MySQL internally optimize my tables for fast look-ups ?
If I'm bulk inserting 100 records and the table has 100,000 in it already, and if it does a simple iteration for a match, that could take a long time.
What do you think ?