3 ms·
I meant in a context with a random ID and a timestamp. If you need to retrieve rows by time/order, you use the timestamp. If you need a row by ID, you use the
by fastball 2y ago
I meant in a context with a random ID and a timestamp.
If you need to retrieve rows by time/order, you use the timestamp. If you need a row by ID, you use the ID.
The use-cases where you actually need to know which row was inserted first seem exceedingly rare (mostly financial / auditing applications), and even then can probably be handled with separate transactions (as you touch on).