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
2
Q
Database Isolation Levels
A
Read Committed - no dirty read / writes
Snap Shot Isolation
3
Q
Speedup OLAP
A
- use column databases
- materialized views
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