first half of db lec
This commit is contained in:
parent
56860a6e09
commit
751c230896
180499
cst363/lab/campaign-ca-2016.sql
Normal file
180499
cst363/lab/campaign-ca-2016.sql
Normal file
File diff suppressed because it is too large
Load Diff
BIN
cst363/lab/index-structures-lab.pdf
Normal file
BIN
cst363/lab/index-structures-lab.pdf
Normal file
Binary file not shown.
18
cst363/lec/lec13.md
Normal file
18
cst363/lec/lec13.md
Normal 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.
|
Loading…
Reference in New Issue
Block a user