activerecord-import adds support for efficient bulk inserts and updates in Rails ActiveRecord, making it possible to import thousands of records with minimal SQL queries. It integrates seamlessly with Rails, exposing methods like import on ActiveRecord models.
Setup involves adding the gem to your Gemfile and using import in models or services. It supports Rails 6, 7 and 8 with Ruby 3+, and is actively maintained.
It can be used to reduce database overhead, however, it has limited support for complex callbacks during imports.
Setup involves adding the gem to your Gemfile and using import in models or services. It supports Rails 6, 7 and 8 with Ruby 3+, and is actively maintained.
It can be used to reduce database overhead, however, it has limited support for complex callbacks during imports.