←back to thread

Why AO3 Was Down

(www.reddit.com)
151 points danso | 3 comments | | HN request time: 0.427s | source
Show context
notorandit ◴[] No.44470235[source]
> typical database column

Typical for 70s and 80s.

Honestly, designing a 21st century database is a different thing if compared to back then.

You can use 128 bit integers, provided that you really want to use integers. And maybe you put a timestamp along.

replies(6): >>44470283 #>>44470544 #>>44470799 #>>44470940 #>>44471428 #>>44471545 #
1. Sharlin ◴[] No.44471428[source]
One of the first things I internalized about databases was "just always use BIGSERIAL for primary keys". There are very few good reasons not to.
replies(2): >>44471889 #>>44472688 #
2. ◴[] No.44471889[source]
3. looperhacks ◴[] No.44472688[source]
Maybe don't: https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_s...