Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> BIGINT

I’d use a SMALLINT (or in MySQL, a TINYINT UNSIGNED) for a lookup table. The bytes add up in referencing tables.

> Most people don't employ these strategies because storage is cheap and compute time is expensive.

Memory isn’t cheap. If half of your table is low-cardinality strings, you’re severely reducing the rows per page, causing more misses, slowing all queries.

 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: