I have about 100 tables that are identical. each table has about 20,000 rows in each. Each table does an insert every 10 minutes.
the memory on my server is rather high and I'm looking to lower it.
before I do an insert, I do a select statement to see if the record exists. If it does, I skip, if it does not exists I insert. I have the index set up so that the select statement is efficient. I have tested with "Explain" and I see that teh select only checks 1 row per select.
My question is, would it be better to just suppress the duplicate record mysql error because I'm not doing an insert or update... I'm doing an insert or skip...
Thanks
the memory on my server is rather high and I'm looking to lower it.
before I do an insert, I do a select statement to see if the record exists. If it does, I skip, if it does not exists I insert. I have the index set up so that the select statement is efficient. I have tested with "Explain" and I see that teh select only checks 1 row per select.
My question is, would it be better to just suppress the duplicate record mysql error because I'm not doing an insert or update... I'm doing an insert or skip...
Thanks