Conference Schedule

Track one or two? Eeenie, meenie, miney, moe…

log in to bookmark.

Secrets of PostgreSQL Performance

A Talk presented by Frank Wiles

Time

Tuesday, September 6th 4:20 p.m.–5 p.m.

Level

Experienced

Description

PostgreSQL is effectively the default RDBMS for Django. Learn the dark arts of optimizing this powerful database to be blazingly fast on your own hardware or in the cloud.

Abstract

PostgreSQL has been the default recommended database since Django was initially released. Learn the dark arts of optimizing this powerful database. Both in general use cases and specifically for Django.

In this talk you'll learn:

  • Things to avoid
    • double duty servers
    • disk contention
    • unnecessary queries
  • The "Big 3" configuration options you should always adjust
    • shared_buffers
    • effective_cache_size
    • random_page_cost
  • Other useful configuration options
  • Hardware considerations
    • RAM, disks, and CPU
    • Rackspace Cloud vs Amazon EC2
    • tablespaces
    • SSDs
  • Common Django ORM issues
    • Slow count() operations
  • Indexing Tips and Tricks
    • Index types
    • Multi-column indexes
    • Partial indexes
  • Performance Tools you can use
  • The "Dark Arts"
    • Planner Statistics
    • materialized views
    • crazy replication