Postgres Flashcards

1
Q

Tuning

A
  • increase size of shared buffers
  • effective_cache_size
  • increase sort memory
  • increase server memory so we have a greater cache hit ration
  • create table indexes
  • create views
  • create table partitions
  • turn on PG stats
  • analyze query - explain analyze
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Database Isolation Levels

A

Read Committed - no dirty read / writes

Snap Shot Isolation

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

Speedup OLAP

A
  • use column databases

- materialized views

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

OLAP vs OLTP

A

read pattern:
oltp - small record count fetched by key
olap - aggregates

write pattern:
oltp - random access, low latency writes,
olap - bulk import ETL

users
oltp - end users
olap - analysts

data
oltp - latest transactional
olap - historical

size
oltp - GB/TB
olap - TB/PB

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