I search through google a bit and found a few decent articles, but not really what I needed. I’m trying to find the best data-types to use for:
- data-type for 10 int length
- data-type for 1 int length 0-9
- data-type for int of 1 or 0
- data-type for string of 32 chars
- data-type for string of 255 chars
I guess my overall question is what data-types should I use to reduce space since the cost per GB is ~$6. Though I also don’t want to sacrifice CPU performance just to save a byte.
intorbigint, depending on just how big the 10-digit numbers are (unsignedif it makes sense)tinyintboolean(not nullable)varchar(32)varchar(255)