DOC PREVIEW
UW CSE 444 - Lecture Notes

This preview shows page 1-2 out of 5 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 5 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Operations to ConsiderCosts to MeasureIndexesProperties of IndexesOperations to ConsiderScan: fetch all records in a certain relation.Search with equality selection: find all the tuples with age=5Search range selection: find all tuples with age between 5 and 50Insert: put a new record into the file.Delete: a record from the file.Costs to MeasureB data pages, R records per page.Average time to read or write a disk page: D (typically 15msec)Average time to process a record: C (typically 1 to 10 microsec)Time to apply hash function: H (typically 1 to 10 microsec)So, we count mostly I/O costs.IndexesAuxiliary structure that speeds up operations that are not supportedby the basic file organization.Formally: a set of data entries with an efficient way of locating all the entries with search key k.Questions: how are the data entries organized to support the efficient access? What is a data entry exactly?Options for data entry: 1. An actual data record (whose value is k) 2. A pair (k, rid) - pointer to the real record. 3. A pair (k, list-of-rid)Properties of Indexes- clustered vs. unclustered (how many clustered indexes can we have on a file?)- Dense vs. sparse indexes- Primary and secondary indexes (is the key entry a superkey?)Picture slides missing


View Full Document

UW CSE 444 - Lecture Notes

Documents in this Course
XML

XML

48 pages

SQL

SQL

25 pages

SQL

SQL

42 pages

Recovery

Recovery

30 pages

SQL

SQL

36 pages

Indexes

Indexes

35 pages

Security

Security

36 pages

Wrap-up

Wrap-up

6 pages

SQL

SQL

37 pages

More SQL

More SQL

48 pages

SQL

SQL

35 pages

XML

XML

46 pages

Triggers

Triggers

26 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?