01 Storage Flashcards

1
Q

Slotted Pages

A
  • Slot Stores Offset + size
  • Tuple data stored from back to front
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Slotted Pages Variant

A
  • fixed-length data stored directly in slots
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are record ids?

A

Tuple of
- unique page-id
- slot number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Row Store

A

All attributes of a Tuple are stored in one page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Column store

A

Different pages for individual columns of a table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the buffer pool?

A

Cache of data in main memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

2 Eviction Strategies

A
  • FIFO
  • LRU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Efficient Approximation of LRU

A
  • Clock Algorithm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly