We are looking at 4 methods: Insert One Record at a Time, Bulk Inserts with Active Record Import, PostgreSQL Copy with Activerecord-copy, Using Background Jobs.| pganalyze
This article shows how to optimize a Full Text Search implementation with Rails and PostgreSQL, taking a single query from 130ms to 7ms.| pganalyze