I have a table with columns defined under a unique index. When pasting data into a table, I currently do not check if a suitable row already exists, instead allowing MySQL to process it.
Is this the preferred approach? I mean, I could add a SELECT to check the dupe strings before inserting, but it seems to be more expensive in terms of performance, since maybe 5-10% of the inserts will be cheating.
source
share