4 ms·
There’s no need since they are random, so you might as well generate them on your application servers which are easier to scale, to offload the write database.
by eproxus 2y ago
There’s no need since they are random, so you might as well generate them on your application servers which are easier to scale, to offload the write database.
- bozey07 2y agoIMO marking the row as generated makes its intent clearer. It also means less code - no generating UUIDs, shorter queries = more robust. For my workloads at least, I think it's worth the tradeoff of forcing Postgres to muster 15 random bytes.
- deleted 2y ago[deleted]