If you really want fast imports into PostgreSQL then copy is your friend. There is a gem called activerecord-copy that should be useful. It again does not go through validations or callbacks but could be up to 3-4 times as fast as .insert_all / .upsert_all.
You're completely right, I already used this alternative, but I wanted to do a separate article for this one as the performance are very above the other alternatives.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you really want fast imports into PostgreSQL then
copyis your friend. There is a gem called activerecord-copy that should be useful. It again does not go through validations or callbacks but could be up to 3-4 times as fast as .insert_all / .upsert_all.Hi Ben! Thanks for your feedback.
You're completely right, I already used this alternative, but I wanted to do a separate article for this one as the performance are very above the other alternatives.