In Memory Storage Flashcards

(15 cards)

1
Q

What is Buffer Pool Overhead?

A
  • accessing page through page table (lookup cost)
  • calculating memory pointer to tuple
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

3 Advantages of Column Stores for OLAP

A
  • higher read efficiency if only few columns need to be accessed
  • better compression schemes
  • enables vector processing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Advantage of Heavyweight compression

A

Data can be heavily compressed

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

Advantage of lightweight compression

A
  • queries can often directly operate on compressed data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Basic idea of dictionary compression

A

Encode values in any column as integers

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

What property does dictionary compression have to have?

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

Main problem with order preserving dictionaries?

A

Updates

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

2 Solutions for updates on order preserving dictionaries

A
  • store new values in separate partition and merge in regular intervals
  • leave gaps between codes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Basic idea of bit -packing

A
  • Map a wide and sparse domain into a dense domain
  • pack multiple codes in a processor word
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Run-Length Encoding

A
  • runs of values are encoded as (value, start, length)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Frame of reference encoding

A
  • encodes values as offset from frame using a fixed number of bits for offset
  • escape code indicates that next value cannot be represented as offset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Differential encoding

A
  • encode values as offset from previous value using fixed number of bits
  • escape code can be used to mark exceptions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Early Materialization

A

Decompress columns and reconstruct tuples as part of your table scan

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

Late materialization

A

Wait as long as possible with decompression and tuple reconstruction

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

Heavyweight compression use case

A

Accelerate I/O path from SSD using GPu

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