Memory Requirements of a Column Value According to Data Type
In the column definition (column_definition), the memory requirement of a column value depends on the data type. You can get an approximate idea of the memory requirement using the following table. Please note that these values are intended as guidance values. Though applicable in most cases, they may vary depending on your system configuration.
Note
If the database parameter UseColumnCompression=YES
is
set, then the space that is actually required is often smaller than the maximum
memory requirement. This difference depends on the actual size of the saved
column value. See also: Database Administration, Support
database parameters
However, if the lead column is not the last lead column, then the actual required space corresponds to the maximum space requirement.
If the column is the last lead column then the actual required space is smaller than the maximum space requirement.
Data type |
Maximum Space Requirement in the Database (Bytes) UseColumnCompression=YES |
Maximum Space Requirement in the Database (Bytes) UseColumnCompression=NO |
Space Requirement in Communication (Bytes) when an ASCII Client is Used |
Space Requirement in Communication (Bytes) when a UNICODE Client is Used |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|
Not a key column |
|
|
|
|