1 / 1

Index Structures

Index Structures. Consider a relation Employees ( eid , name, salary, age, did) stored as a heap file (unsorted) for which the only index is an unclustered index on a field called salary .

sophie
Download Presentation

Index Structures

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. Index Structures • Consider a relation Employees (eid, name, salary, age, did) stored as a heap file (unsorted) for which the only index is an unclustered index on a field called salary. • 1. If you want to retrieve all records with salary > 50, is using the index always better than other alternatives? • 2. What could be a problem if the index is sparse? • 3. What will you recommend to change to make this index useful for both equality search (e.g., salary = 25) and range search ( e.g., 10 < salary < 30)? • 4. If you need to add one more index on a field called name, can both of them sparse? • 5. Can both of them clustered?

More Related