1 / 12

ISAM

ISAM. I ndexed S equential A ccess M ethod. Sortierte Indizes. Idee: i.d.R. kleiner als Daten können schneller durchsucht werden Aufbau Index: (key, pointer) Insgesamt schnellerer Zugriff. Tree. Index ist kleiner als die Daten, kann aber trotzdem recht groß werden

afya
Download Presentation

ISAM

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ISAM Indexed Sequential Access Method

  2. Sortierte Indizes Idee: • i.d.R. kleiner als Daten können schneller durchsucht werden • Aufbau Index: (key, pointer) • Insgesamt schnellerer Zugriff

  3. Tree Index ist kleiner als die Daten, kann aber trotzdem recht groß werden Vorteil schwindet • Index vom Index (vgl. Binäre Suche)

  4. Indexed Sequential Access Method (ISAM) für statische Daten geeignet Overflow-Page für neue Einträge B / B+ Bäume Voll dynamische Index-/Speicherungsstruktur Was teuer erkauft wird Zwei Basis-Strukturen • Applet zu B-Baum auf: • http://www-user.tu-chemnitz.de/~chu/ViA/Applets/Finals/BBaum/

  5. Index, Daten, Overflow

  6. Aufbau • Block- und Datengröße bestimmen  Kapazität eines Blockes. Gibt es initialen Füllungsgrad? • Daten sortiert und sequentiell ablegen, ggf. Füllungsgrad beachten • Indexkapazität bestimmen, Index anlegen. Indexblöcke komplett füllen, Indizierung standardmäßig bzgl. Maximalwert  Maximalwert in den Daten miteinbeziehen (ZZZZZZZZ) • Letztlich werden die Overflow-Pages zugeteilt welche / wieviele Blöcke teilen sich welche Overflow-Pages?  statische Struktur aufgebaut • Zum einfügen richtigen Block bestimmen, wenn Block bereits gefüllt Overflow-page bestimmen Daten sortiert ablegen

  7. suchen Indexeintrag  Seite Kosten: logfN f: Anzahl Einträge pro Indexseite N: Anzahl der Blätter löschen auch wieder suchen, dann löschen, wenn nötig Overflow-page freistellen einfügen richtige Stelle suchen wenn nötig, Overflow-page zuteilen Daten sortiert speichern suchen, einfügen und löschen

More Related