01 Storage Flashcards
1
Q
Slotted Pages
A
- Slot Stores Offset + size
- Tuple data stored from back to front
2
Q
Slotted Pages Variant
A
- fixed-length data stored directly in slots
3
Q
What are record ids?
A
Tuple of
- unique page-id
- slot number
4
Q
Row Store
A
All attributes of a Tuple are stored in one page
5
Q
Column store
A
Different pages for individual columns of a table
6
Q
What is the buffer pool?
A
Cache of data in main memory
7
Q
2 Eviction Strategies
A
- FIFO
- LRU
8
Q
Efficient Approximation of LRU
A
- Clock Algorithm
9
Q
How does Clock work?
A
- set reference=1 if page is requested
If page needs to be evicted:
1. check frame
2. if ref=1 set it to 0 and go to next frame, goto 1
3. else evict page in frame