Storage Layout

This article is part of the Advanced User's Guide. It presents some low-level details on how data is stored in the database files.

=Data Types=

The following data types are used for specifying the storage layout:

=Database Files=

The following tables illustrate the layout of the BaseX database files. All files are suffixed with .basex.

Node Table: tbl, tbli

 * tbl: Main database table, stored in blocks.
 * tbli: Database directory, organizing the database blocks.

Some more information on the node storage is available.

Texts: txt, atv

 * txt: Heap file for text values (document names, string values of texts, comments and processing instructions)
 * atv: Heap file for attribute values.

Value Indexes: txtl, txtr, atvl, atvr
Text Index: The Attribute Index is contained in the files atvl and atvr, the Token Index in tokl and tokr. All have the same layout.
 * txtl: Heap file with ID lists.
 * txtr: Index file with references to ID lists.

For a more detailed discussion and examples of these file formats please see Index File Structure.

Full-Text Fuzzy Index: ftxx, ftxy, ftxz
...may soon be reimplemented.