b-tree

Definition/General, Releases: AP

Balanced-tree index.

Description

refers to a 'balanced tree' access method which Pick supports throughout the system and in every process which touches the data base.

A 'b-tree' is essentially a system-maintained ordered-list based on any attribute or combination of attributes from items in a file. It allows quick retrieval of items based on this secondary key.

With minor modifications, current Pick applications can make use of 'b-trees'. Any Pick process which modifies an item automatically maintains the tree implicitly. This includes 'update', Pick/BASIC, 'edit', 'copy', 't-load', and 'restore'.

Access retrieves keys from a b-tree when an associated attribute-defining item is used in a 'by' clause, such as 'sort entity by last.name'. 'last.name' points to an attribute which is also referenced by an 'i' (index) processing code in the adi. If more than one 'by' clause is used in the same request, Access ignores the tree and scans the entire file. A 'with' clause with no 'by' clause also uses the tree.

A more flexible approach to incorporating b-trees to data retrieval is to use the Update processor or the Pick/BASIC intrinsic functions like 'key' and 'root'.

See Also

Command Name Type Description
tcl.create-index Verb: Access Creates new b-tree index.
tcl.nframe-index Verb: Access Displays total number of frames used by index or indices.
tcl.create-index Verb: Access Creates new b-tree index.
tcl.verify-index Verb: Access Verifies b-tree indices.
access.by Modifier Defines (ascending) sort key in Access sentence.
basic.root Statement Loads the root.variable with the root FID of the specified index.
tcl.indexer Verb: Access Creates b-tree indices for account.
pc.index.local Processing Code Defines local b-tree index.
pc.a Processing Code Defines algebraic processing expression.
tcl.delete-index Verb: Access Deletes b-tree index.
access.introduction Introductory a Pick facility to retrieve and output data.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.