Salesforce

Why is there a limit on max size for a CLOB/BLOB database data type?

« Go Back

Information

 
TitleWhy is there a limit on max size for a CLOB/BLOB database data type?
URL NameP112410
Article Number000151861
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Question/Problem Description
Why is there a limit on max size for a CLOB/BLOB database data type?
What are the penalties to set a max limit size way larger than the data in the CLOB/BLOB database data type field?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
The reason there is a limit parameter for blob/clob columns is to provide optional error checking. It allows the database/application designer to set an upper limit that is lower than the maximum storable size of 1 GB, so that an errant application doesn't store some unreasonably large lob when the value is supposed to be small.

Examples:

  • When storing thumbnail images it would be wrong for the application to store a full sized image.
  • Very large sizes for stored digital signatures, which are normally small, would also suggest an error.
  • An application may have limits on the file sizes it can process. A limit on the size of the LOB in the Data Dictionary could be used to enforce the limit.

The value of a LOB size limit has no effect on how the data are stored nor on performance. Therefore, setting a limit much higher than the amount of data stored in the CLOB/BLOB field does not introduce any other problem.

Workaround
Notes
Keyword Phrase
Last Modified Date2/16/2017 8:40 PM

Powered by