3 ms·
I would definitely contest that you have to lock the whole database table for readers. Modern SQL systems will not have readers waiting upon writers. And if you
by jlouis 14y ago
I would definitely contest that you have to lock the whole database table for readers. Modern SQL systems will not have readers waiting upon writers. And if you use a SEQUENCE, like you probably should in this case, then you only need a sequence-lock once in a while.
There are also fully independent schemes for this, but they cannot, usually give you ordering properties of your counter sequence. And those who can will have rather large keys (large in size of bytes)
- gaius 14y agoThe only DB I'm aware of that still requires a table lock is SQLite (!) He's invented this ridiculous Rube Goldberg contraption because his knowledge of RDBMSs is 20 years or more out of date...