Skip to content

(VDB-1082) bigint primary keys for big tables#272

Merged
rmulhol merged 2 commits intostagingfrom
vdb-1082-address-pk-bigint
Aug 26, 2020
Merged

(VDB-1082) bigint primary keys for big tables#272
rmulhol merged 2 commits intostagingfrom
vdb-1082-address-pk-bigint

Conversation

@rmulhol
Copy link
Copy Markdown
Contributor

@rmulhol rmulhol commented Aug 18, 2020

No description provided.

Copy link
Copy Markdown
Contributor

@elizabethengelman elizabethengelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

msg_sender INTEGER NOT NULL REFERENCES public.addresses (id) ON DELETE CASCADE,
address_id BIGINT NOT NULL REFERENCES public.addresses (id) ON DELETE CASCADE,
msg_sender BIGINT NOT NULL REFERENCES public.addresses (id) ON DELETE CASCADE,
header_id INTEGER NOT NULL REFERENCES public.headers (id) ON DELETE CASCADE,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's worth updating the header id to be a BIGSERIAL (on the header table), and then a BIGINT here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, now just realizing that this would be more a change for the vdb repo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking about skipping that one just because I think we'd need to be syncing multiple networks to have any chance of exhausting the range of ints available, and I feel like supporting that would require more deliberate thought/work elsewhere 🤔

@rmulhol rmulhol force-pushed the vdb-1082-address-pk-bigint branch from 39cc817 to 12172c2 Compare August 26, 2020 14:17
@rmulhol rmulhol merged commit 72492e1 into staging Aug 26, 2020
@rmulhol rmulhol deleted the vdb-1082-address-pk-bigint branch August 26, 2020 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants