HackerTrans
トップ新着トレンドコメント過去質問紹介求人

t27duck

no profile record

投稿

Using UUIDv7 with Ruby on Rails Without PostgreSQL 18

t27duck.com
2 ポイント·投稿者 t27duck·8 か月前·3 コメント

コメント

t27duck
·8 か月前·議論
The big drawback is if your app also uses bulk sql inserts which bypasses model hooks. By letting the database handle it, all cases are covered.
t27duck
·8 か月前·議論
The app I work on at my day job uses UUIDs for primary keys. I'm not sure when/if an upgrade to PostgreSQL 18 will happen, but we wanted to take advantage of timestamp-based UUIDv7. Turns out, it's relatively easy to implement in current Rails with PostgreSQL < 18.