Only if your table is missing an unique index on that column, which it should have to enforce your assumption, so yeah LIMIT 1 is a code (or schema in the case) smell.
You should use the DB explain or equivalent command to spit out the query plan, limit 1 shouldn't change anything in your case, if it's not the case you should file an issue, it's pretty much 101 of query optimization.
dotancohen|4 months ago
I'll test again, really the last time I tested that was two decades ago.
EvanAnderson|4 months ago
Do you recall what the database server was?
Guillaume86|4 months ago
viraptor|4 months ago
buckle8017|4 months ago
I'm curious, can you demo this?