|
|
|
|
|
by sgarland
869 days ago
|
|
You said data import, so I assumed it was pulling rows into an empty table. The example I posted was a way to create a table with a static integer PK that you could rapidly generate in a loop, and then later convert it to auto-incrementing. > I’m sure there’s a way to get it to work with integer ids but it would have been a pain. With UUID’s it was very simple to generate. IME, if something is easy with RDBMS in prod, it usually means you’re paying for it later. This is definitely the case with UUIDv4 PKs. |
|
But I get you like integers so whatever works for you, I just don't think they're the right tradeoff for most projects.