jBASE Indexes

In order to speed up retrieval of records by attributes rather than using key, jBASE provides the facility to build secondary indexes on these attributes. These indexes are stored as binary trees (see Appendices for details) which are compiled and stored in a file with the same name as the data file with “]I” appended onto the end.

For example, an index created on JCUSTOMERS will be stored in a file called JCUSTOMERS]I.

Indexes have a positive effect on SELECTs on the indexed fields themselves but the maintenance of an index gives a slight overhead on record updates as the index must be maintained. Thus, a balance must be sought between improvements in query performance versus the overhead on other file access.


Bookmark Name Actions
Feedback
x