TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Examples of Problems with Integers

3 pointsby grapplerover 2 years ago

1 comment

perrygeoover 2 years ago
The 32 bit integer primary key issue is so painful. I went through that once (we got the migration completed before the PK maxed out but it was a nail-biter) and I never want to do that again. I'm a strong proponent of 64 bit integers ("bigint") for serial primary keys by default. An extra 4 bytes per row overhead is well worth the peace of mind.