Advanced Postgres Performance Tips (robots.thoughtbot.com)