Jump to content

Database storage structures

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Decrease789 (talk | contribs) at 14:27, 30 April 2007 (Created page with '==Methods== ===Heaps=== Heaps are insert inefficient, records at bottom of heap. Retrieval inefficient because searching is linear. Deletion requires a mark to be p...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Methods

Heaps

Heaps are insert inefficient, records at bottom of heap. Retrieval inefficient because searching is linear. Deletion requires a mark to be placed, when they are deleted the heap needs resorting. File occupancy is typically 40-60%.

Hash Buckets

Calculate where the record is stored based on fields in the record. The has functions ensure even spread of data. Collisions are possible so detection and restoration is required.

B+ Trees

These are the most used in practice. They have a dynamic indexing system. The index is full so file does not have to be ordered.