In-Memory Database Guide : Calculating the maximum BLOB size : Background
  
Background
Many applications today use data that cannot be easily stored in the standard data types such as INT or CHAR. Instead, a long character or binary format may be better suitable. In these cases, the data may be stored as CLOBs and BLOBs, Character and Binary Large OBjects, respectively. A CLOB includes interpretable characters whose number may be up to 2 billion. A BLOB data type can hold virtually any data that can be stored as a series of binary numbers (8-bit bytes). Typically, BLOBs are used to store large, variable-length data that cannot be easily interpreted as numbers or characters. For example, BLOBs may hold digitized sound (for example, the music on a Compact Disc), multimedia files, or time-series data read from sensors.
In solidDB® BLOBs are widely supported and there are several different data types to choose from: BINARY, VARBINARY and LONG VARBINARY, of which the latest is mapped to standard data type BLOB.
CLOB is implemented with six data types, CHAR, WCHAR, VARCHAR, WVARCHAR, LONG VARCHAR and LONG WVARCHAR. The two latest data types are mapped to standard data types CLOB and NCLOB. For detailed information about CLOB and BLOB data types see the solidDB® SQL Guide.
For disk-based tables, solidDB®’s implementation of BLOB storage balances speed of access with the need to be able to store large amounts of data. Regardless of the data type (VARCHAR, VARBINARY), short values are generally stored in the table, while longer values have part or all of their data stored in a separate area in the database storage tree. This is entirely transparent to the user; the user simply decides on the data type, and solidDB® takes care of the rest. Your data will always be accessed the same way, and will appear to be stored in the table, regardless of the actual physical location of the data. In disk-based tables, the maximum length of a VARCHAR or VARBINARY field is 2 gigabytes.
For in-memory tables, BLOB data is stored entirely in the table itself, and the maximum length of a BLOB is limited by the “block size” (no row of an in-memory table may exceed the length of a page or “block”). In this appendix, we give you some information to help you estimate the largest size VARCHAR or VARBINARY data that you can store in an in-memory table.
See also
Calculating the maximum BLOB size