In a Berkeley DB XML repository, the actions available at container level in the
Data Source Explorer view are as follows:
Add
Resource
- Adds a new XML resource to the selected container.
- Rename
- Allows you to specify a new name for the selected container.
Delete
- Removes the selected container from the database tree.
- Edit indices
- Allows you to edit the indices for the selected container.
Refresh
- Performs a refresh for the sub-tree of the selected node.
- Properties
- Displays a dialog box with a list of properties of the Berkeley container (such as
container type, auto indexing, page size,
validate on load, compression algorithm, number of
documents, etc.)
Figure: Container indices
The fields of the dialog box are as follows:
- Granularity:
- Document level - Good option for retrieving large
documents.
- Node level - Good option for retrieving nodes from within
documents.
-
Add / Edit indices:
- Node - The node name.
- Namespace - The index namespace.
-
Index strategy:
- Index type:
- Uniqueness - Indicates whether the indexed value
must be unique within the container.
- Path type:
- node - Indicates that you want to index a
single node in the path.
- edge - Indicates that you want to index the
portion of the path where two nodes meet.
- Node type:
- element - An element node in the document
content.
- attribute - An attribute node in the document
content.
- metadata - A node found only in the metadata
content of a document.
- Key type:
- equality - Improves the performances of tests
that look for nodes with a specific value.
- presence - Improves the performances of tests
that look for the existence of a node regardless of its value.
- substring - Improves the performance of tests
that look for a node whose value contains a given sub-string.
- Syntax types - The syntax describes the type of data
the index contains and is mostly used to determine how indexed values are
compared.