RubyFlow The Ruby and Rails community linklog

Shrinking UUIDv7 Primary Keys

Using UUIDv7 instead of serial integers as primary keys in SQL databases comes with quite a few advantages. There’s a price tag in terms of speed and memory… whether acceptable or not, that’s your call. But at least you don’t have to live with those UUIDs eating up 36 characters in your URLs Honey, let’s shrink them UUIDs!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in