3 ms·
Why should they be done in application code?
by tyre 2y ago
Why should they be done in application code?
- eproxus 2y agoThere’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]