Product Information > JADE Encyclopaedia of Classes – Volume 1 > Chapter 1 - System Classes > compactDbFiles

compactDbFiles

compactDbFiles(dbFiles:        DbFileArray; 
               workers:        Integer; 
               workPath:       String; 
               updatesAllowed: Boolean);

The compactDbFiles method of the JadeDatabaseAdmin class compacts the files specified in the dbFiles parameter to optimize the use of storage and to reduce fragmentation.

The workers parameter enables you to specify the number of workers that you require. If you want to override the reorganization work directory, specify a valid path in the reorgWorkDirectory parameter. The updatesAllowed parameter specifies whether an updating or a read-only compact is performed.