Previous Topic: Record Storage and DeletionNext Topic: Storing CALC Records


Record Storage

Determining the Target Page

To store a record in the database, CA IDMS/DB first determines a target page. Storage mode specifications govern the selection of the target page, as follows:

Storing the Record Occurrence

If the target page has sufficient space to store the entire record occurrence (fixed-length uncompressed records) or the record's minimum root, CA IDMS/DB then stores the record occurrence on the target page. If the target page does not have sufficient free space to store the record occurrence, CA IDMS/DB stores the record occurrence on the next page that has sufficient space. The search for free space always proceeds in a forward (higher database key) direction. If the end of the area (or the page range assigned to the record type) is reached before space is located, the search wraps around to the beginning of the area (or the page range assigned to the record type).

After identifying the first available free page, CA IDMS/DB performs the following operations to store a record occurrence: