peskywinnets
Registered User.
- Local time
- Today, 10:50
- Joined
- Feb 4, 2014
- Messages
- 587
Maybe, my grasp is insufficient, but let's say a table was initially created with a lot of short text fields - but at the time of creation it wasn't known how long the text to be stored there would be.... so 255 bytes was selected as a default Field Size.
Am I correct in thinking that if 255 is chosen that every record for that field will have 255 bytes 'reserved'?
but then, what if it transpires the actual text stored in that field was ultimately only say 32 bytes max .... surely it would then make sense to change the value of that field to something like 40 bytes (allowing a bit of headroom)....this would reduce the size of the table?
So, is there a tool/utility that scours the table, checking the actual maximum length of string stored in a short text field... and then gives the option to change the setting of that table field automatically - thereby reducing the size of the database?
or is my line of thinking wrong?
Am I correct in thinking that if 255 is chosen that every record for that field will have 255 bytes 'reserved'?
but then, what if it transpires the actual text stored in that field was ultimately only say 32 bytes max .... surely it would then make sense to change the value of that field to something like 40 bytes (allowing a bit of headroom)....this would reduce the size of the table?
So, is there a tool/utility that scours the table, checking the actual maximum length of string stored in a short text field... and then gives the option to change the setting of that table field automatically - thereby reducing the size of the database?
or is my line of thinking wrong?