Main -> Documentation -> Database Builder – Newton -> Creating a New SiteSearch Database -> Database Description (.dsc) File: Structure and Syntax -> Database File Definitions

Database File Definitions

The database file definitions define the blocksize and region count for the five physical database files (HEDR, HDIR, POST, PDIR, and INDX) that make up a Open SiteSearch Database Builder database. These definitions are used to physically create the database files during the database build process. The database file definitions are required and appear after the database identification in the database description (.dsc) file.

Syntax

HEDR: HEDR/blocksize/regions
HDIR: HDIR/blocksize/regions
POST: POST/blocksize/regions
PDIR: PDIR/blocksize/regions
INDX: INDX/blocksize/regions

Element

Description

HEDR: HEDR/
HDIR: HDIR/
POST: POST/
PDIR: PDIR/
INDX: INDX/

Begins the Header (HEDR) file definition.
Begins the Header directory (HDIR) definition.
Begins the Postings (POST) file definition.
Begins the Postings directory (PDIR) definition.
Begins the Index (INDX) file definition.

blocksize

Defines the size, in bytes, of each physical region in the database file. Each physical file in the database can have a different blocksize.

Usage Hint: Search performance improves when the POST and INDX file blocksizes are larger because higher settings require fewer I/Os to find a term.

regions

Defines the number of physical regions for a specified database file.

Example

The following example shows a typical allocation of blocksize and regions for the database files in a medium-size database.

HEDR: HEDR/4276/1000
HDIR: HDIR/4276/200
POST: POST/23476/150
PDIR: PDIR/4276/100
INDX: INDX/15476/200

See Also

Creating a Database Description (.dsc) File
Database Description (.dsc) File: Structure and Syntax
Database Description (.dsc) File Example


[Main][Documentation][Support][Technical Reference][Community][Glossary][Search]

Last Modified: