Managing PostgreSQL table partitioning in Ruby
If you have the pleasure of working with a Rails app that uses a lot of data like logs, events, and metrics, you’ve probably run into performance issues at some point due to large tables. Deleting high quantities of rows can bring your database server to its knees or slow down queries to unacceptable latencies. PostgreSQL table partitioning is an excellent solution to these sorts of problems.