Database Calculator

Following is the definition of the mco_cc_info_t structure used to obtain information about this class generated by the calculator:

nobjs The number of these objects in the database.
pages_min The minimum number of pages objects of this class will use.
pages_cur The current number of pages objects of this class use.
pages_max The maximum number of pages objects of this class will use.
bytes_cur The current amount of memory objects of this class use.
bytes_min The minimum amount of memory objects of this class will use.

bytes_max

The maximum amount of memory objects of this class will use.

nvecs

The number of vectors in this class.

nstrs

The number of strings in this class.

nblobs

The number of BLOBs in this class.

is_pers

True if this class is persistent.

(See function mco_calc_get_class_info() and the Database Calculator Callback Handlers for examples of use of this structure).

 

The Database Calculator is controlled by the mco_calc_t structure which is defined as follows in mcodbcalc.h:

db The database handle of the database to be calculated.
cls The list of registered classes.
ncls The number of registered classes.
dict The database dictionary.
oid_val Used to create OID values during execution of mco_calc_fill_db().

pg_size

The database page size.

ops

The calculated optimal page size.

total_pgs

The total number of database pages.

free_pgs

The total number of free pages.

dsl

A structure containing the lengths of dynamic fields (see below).

 

The element mco_calc_t.dsl is a structure containing the minimum and maximum lengths of dynamic fields. It is defined as follows:

v_lmin Minimum length of vector fields.
v_lmax Maximum length of vector fields.
s_lmin Minimum length of string fields.
s_lmax Maximum length of string fields.
b_lmin Minimum length of BLOB fields.
b_lmax Maximum length of BLOB fields.

Related Topics Link IconRelated Topics