2021-12-22
|~2 min read
|209 words
Some rules of thumb for data sizing:
int - 4 bytesbigint - 8 bytsfloat - 4 bytesdate - 3 bytesdatetime - 5 bytesExamples:
created_at - 5 bytesproduct_id - 8 bytescategory_id - 4 bytesseller_id - 8 bytesbuyer_id - 8 bytesquantity - 4 bytestotal_price - 5 bytesHi there and thanks for reading! My name's Stephen. I live in Chicago with my wife, Kate, and dog, Finn. Want more? See about and get in touch!