first half of db lec

This commit is contained in:
Medium Fries 2018-10-15 16:49:28 -07:00
parent 56860a6e09
commit 751c230896
3 changed files with 180517 additions and 0 deletions

180499
cst363/lab/campaign-ca-2016.sql Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

18
cst363/lec/lec13.md Normal file
View File

@ -0,0 +1,18 @@
# lec13
## Lab Exercises
This lecture has a lab portion in `lab/` directory.
Directions are on `index-structures-lab.pdf` and `ordered-indexes-lab.pdf`.
## Indexing
We create an index based on some field, where we sort the entries in this index table.
Each entry then contains a pointer to each record in the target table.
Sorting the indexes allows us to search them _much faster_ than we could ever do on disk.
> What about collision?
Then we simply add a pointer to the index's list of associated pointers.
It's important to note that indexes are tables, just like everything else in sql.