Settings

Theme

Examples of Problems with Integers

jvns.ca

3 points by grappler 3 years ago · 1 comment

Reader

perrygeo 3 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection