Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Data Indexing: Understanding Tree-based and Hash-based Indexes - Prof. Yicheng Tu, Study notes of Deductive Database Systems

Learn about data indexing, its types including tree-based and hash-based indexes, primary and secondary indexes, and clustered and non-clustered indexes. The concepts, features, and examples of tree-based indexes, specifically the isam and b+ tree.

Typology: Study notes

Pre 2010

Uploaded on 02/09/2009

koofers-user-7ri-1
koofers-user-7ri-1 🇺🇸

10 documents

1 / 5

Toggle sidebar

Related documents


Partial preview of the text

Download Data Indexing: Understanding Tree-based and Hash-based Indexes - Prof. Yicheng Tu and more Study notes Deductive Database Systems in PDF only on Docsity! Data Indexing Index: a data structure used to speed up selections on data records based on some attributes Example: Index on ‘age’ attribute of Employee table. age is a search key An index consists of data entries that point to some raw data records <key_value, data_pointer> data_pointer raw data Cost of calling pointer to raw data is constant e.g. 1 page I/O Type of Indexes: 1) Tree-based 2) Hash-based 3) Bitmap-based Primary Index vs. Secondary Index Primary: uses the key attribute of a relation as the search key Example: an index based on SSN of Employee table Secondary: search key is NOT the key attribute Example: an index based on ‘age’ of Employee Clustered vs. un-clustered index If the order of data records in file is the same as the order of data entries in the index, that index is called CLUSTERED. Index interface b/w ______________________________________________________ raw data There can only be ONE clustered index a0 p0 a1 p1 a0 a1…. an-1 an Cluster indexes give better performance in searching a range of values.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved