|
|
|
|
|
by tpm
408 days ago
|
|
> So have a pending table With UUIDs there is absolutely no need for that. > Keeping an actual transaction open for that long is asking for contention Yes, which is why this is not an actual db transaction, it's a business transaction as mentioned. > and the idea of having data hanging around ephemerally The data is not ephemeral of course. But also the mapping between business transaction and model is not 1:1, so while there is some use for the transaction ID, it can't be used to identify a particular model. |
|
Except now (assuming it’s the PK) you’ve added the additional overhead of a UUID PK, which depending on the version and your RDBMS vendor, can be massive. If it’s a non-prime column, I have far fewer issues with them.
> The data is not ephemeral of course.
I may be misunderstanding, but if it isn’t persisted to disk (which generally means a DB), then it should not be seen as durable.