Logo Search packages:      
Sourcecode: qdbm version File versions  Download package

void Villa::settuning ( int  lrecmax,
int  nidxmax,
int  lcnum,
int  ncnum 
) throws VillaException [inline]

Set the tuning parameters for performance.

Parameters:
lrecmax the max number of records in a leaf node of B+ tree. If it is not more than 0, the default value is specified.
nidxmax the max number of indexes in a non-leaf node of B+ tree. If it is not more than 0, the default value is specified.
lcnum the max number of caching leaf nodes. If it is not more than 0, the default value is specified.
ncnum the max number of caching non-leaf nodes. If it is not more than 0, the default value is specified.
Exceptions:
VillaException if an error occurs.
Note:
The default setting is equivalent to `settuning(49, 192, 1024, 512)'. Because tuning parameters are not saved in a database, you should specify them every opening a database.

Definition at line 484 of file Villa.java.

References index.

                                                                                              {
    if(index < 0) throw new VillaException();
    synchronized(ADBM.class){
      vlsettuning(index, lrecmax, nidxmax, lcnum, ncnum);
    }
  }


Generated by  Doxygen 1.6.0   Back to index