Estimating pages that simple large objects occupy
You can estimate the total number of pages for all simple large objects, or you can estimate the number of pages based on the median size of the simple large objects.
About this task
The blobpages can reside in either the dbspace where the table resides or in a blobspace. For more information about when to use a blobspace, see Storing simple large objects in the tblspace or a separate blobspace.
The following methods for estimating blobpages yield a conservative (high) estimate because a single TEXT or BYTE column does not necessarily occupy the entire blobpage within a tblspace. In other words, a blobpage in a tblspace can contain multiple TEXT or BYTE columns.
Procedure
To estimate the number of blobpages:
Results
Alternatively, you can base your estimate on the median size of simple large objects (TEXT or BYTE data); that is, the simple-large-object data size that occurs most frequently. This method is less precise, but it is easier to calculate.
To estimate the number of blobpages based on the median size of simple large objects:
- Calculate the number of pages required for simple large objects
of median size, as follows:
mpages = ceiling(mblobsize/bpuse)
- Multiply this amount by the total number of simple large objects,
as follows:
blobpages = blobcount * mpages