mi_integer mi_lo_specset_estbytes(LO_spec, estbytes) MI_LO_SPEC *LO_spec; mi_int8 *estbytes;
Valid in Client LIBMI Application? | Valid in User-Defined Routine? |
---|---|
Yes | Yes |
The mi_lo_specset_estbytes( ) function is the LO-specification accessor function that sets the estimated size for a new smart large object. The estbytes value is the estimated final size, in bytes, of the smart large object. This estimate is an optimization hint for the smart-large-object optimizer.
After you set the estimated size in an LO-specification structure, you pass this structure to a smart-large-object creation function (such as mi_lo_create( )) to provide the estimated size as a user-supplied storage characteristic for a new smart large object.
The smart-large-object optimizer attempts to optimize the extent size based on past operations on the smart large object and other storage characteristics (such as maximum bytes) that it obtains from the storage-characteristics hierarchy. Most applications can use the size estimate that the smart-large-object optimizer generates.
See also the descriptions of mi_lo_copy( ), mi_lo_create( ), mi_lo_from_file( ), mi_lo_spec_free( ), mi_lo_spec_init( ), and mi_lo_specget_estbytes( ).
For more information on the estimated size of a smart large object or on how to use the mi_lo_specset_estbytes( ) function, see the IBM Informix: DataBlade API Programmer's Guide.