▲ | dotancohen 11 hours ago | |||||||
IDs are typically unique primary key. But in my experience, adding LIMIT 1 would on average halve the time taken to retrieve the record. I'll test again, really the last time I tested that was two decades ago. | ||||||||
▲ | EvanAnderson 11 hours ago | parent | next [-] | |||||||
That seems like your RDBMS wasn't handling something right there or there wasn't a unique index on the column. Do you recall what the database server was? | ||||||||
| ||||||||
▲ | buckle8017 11 hours ago | parent | prev [-] | |||||||
You are certainly doing something wrong if that's true. I'm curious, can you demo this? | ||||||||
|