-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use bigint for all non-uuid primary keys #1067
Comments
37 tasks
Mr0grog
added a commit
that referenced
this issue
Feb 9, 2023
Integer primary keys can cause problems over time on big tables, and in general it's just better practice to use bigints instead. Some of our larger tables use UUIDs instead of ints, so this only upgrades the tables that used ints. (Practically speaking, none of these tables are really *likely* to overflow their primary key sequence, but better safe than sorry here, especially with technical maintainers offboarding.) Fixes #1067.
Mr0grog
added a commit
that referenced
this issue
Feb 9, 2023
Integer primary keys can cause problems over time on big tables, and in general it's just better practice to use bigints instead. Some of our larger tables use UUIDs instead of ints, so this only upgrades the tables that used ints. (Practically speaking, none of these tables are really *likely* to overflow their primary key sequence, but better safe than sorry here, especially with technical maintainers offboarding.) Fixes #1067.
Mr0grog
added a commit
that referenced
this issue
Feb 9, 2023
Integer primary keys can cause problems over time on big tables, and in general it's just better practice to use bigints instead. Some of our larger tables use UUIDs instead of ints, so this only upgrades the tables that used ints. (Practically speaking, none of these tables are really *likely* to overflow their primary key sequence, but better safe than sorry here, especially with technical maintainers offboarding.) Fixes #1067.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have some models with UUID primary keys and some that use int. We should have used bigint for both, but that ship has long since sailed on the ones with UUID keys. We should still upgrade the int keys to bigint, though.
The text was updated successfully, but these errors were encountered: