variable length field - Computer Definition
A record structure that holds fields of varying lengths. For example, PAT LOPEZ would take nine bytes and GEORGINA ALLISON BARTHOLOMEW would take 28 plus a couple of bytes that define the length of the field. If fixed length fields were used, at least 28 bytes would have to be reserved for both names. Variable Length Text Fields Years ago, storage was costly, and variable field lengths were essential. Today, storage is dirt cheap by comparison. However, if there are text elements in a database that vary greatly, variable length fields save a lot of space. In addition, databases in many companies have reached mammoth proportions, and storage savings are welcome. More Processing Variable lengths require more processing, because every field has to be encoded into the variable format before being written to storage. Conversely, after being read back into memory, the variable fields may have to be converted to a fixed length for processing. The Compression Alternative The same storage savings is often achieved by using fixed length fields and compressing the data in storage. With text, all contiguous blank bytes are filtered out. See real-time compression.