Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Database page, slotted page, record identifier?

También llamado: database page · slotted page · record identifier

Definition 21.1 University Computer Science — Year 3 · Capítulo 21 — Database Storage and Indexes

A database page is the unit in which a database file is read and written: a fixed number of bytes, here 4,096, at a known position in the file. A slotted page stores variable-length records in a page: a header, then a slot array growing from the front, one entry (offset, length) per record, then free space, then the records themselves, growing from the back of the page. A record identifier is the pair (page number, slot number); it names a record for as long as it lives, wherever the record moves inside its page.

The first page of , not to scale: a 4-byte header, five 4-byte slots ending at byte 24, 3,997 free bytes, and the records from byte 4,021 to the end, record 0 last.
The first page of Output 21.1, not to scale: a 4-byte header, five 4-byte slots ending at byte 24, 3,997 free bytes, and the records from byte 4,021 to the end, record 0 last.
Leer en el capítulo →