4 ms·
The ID prefixing is cool from an identification point of view, but we've been using UUIDs for tokens and if we implemented this we wouldn't be able to use the U
by revicon 6y ago
The ID prefixing is cool from an identification point of view, but we've been using UUIDs for tokens and if we implemented this we wouldn't be able to use the UUID optimized datatype field in Postgres.
- deleted 6y ago[deleted]
- marksomnian 6y agoSurely you can just strip off the prefix in the application layer before sending it to Postgres? You still get the benefits, while being able to use the native query.
- edoceo 6y agoI do it like that. We're only using a two char prefix (I copied Twilio)
- orf 6y agoWhy not? You don’t have to store the prefix and the UUID in the same column?
- asimpletune 6y agoCan’t you just add a column to your schema with the prefix?