Obviously, if your data structures are shorter, they compare faster and faster to store and retrieve.
How much faster 1, 2, 1000. It all depends on the size of the table, etc.
For example: let's say you have a table with a text column productId and varchar.
Each row will roughly take 4 bytes for int , and then another 3> 24 bytes for text in your example (depending on whether the column is null or is unicode)
Compare this to 5 bytes per row for the same data with the byte status column.
This huge space saving means that the page has more links, more data in the cache, fewer entries occur when loading the storage data, etc.
In addition, string comparisons are at best as fast as comparisons of bytes and worst cases are much slower.
There is a second huge problem with saving text in which you plan to have an enumeration. What happens when people start to store Incompete as opposed to Incomplete ?
source share