activerecord-import icon indicating copy to clipboard operation
activerecord-import copied to clipboard

A library for bulk insertion of data into your database using ActiveRecord.

Results 36 activerecord-import issues
Sort by recently updated
recently updated
newest added

I seems that `belongs_to` relation isn't proceeded by import during commit, my log shows that import inserts the only `has_one/many` relations. How can it be fixed?

feature-request
needs-investigation

Adding support for redshift into the base adapater

According to this: https://stackoverflow.com/questions/7333524/how-can-i-insert-many-rows-into-a-mysql-table-and-return-the-new-ids It is possible to compute the inserted IDs on mysql and returning in the `ids` field of the result like it is done for Postgres. It...

Hello, this PR adds support for specifying separate `on_duplicate_key_update` options for associations when doing a recursive import. I couldn't find a way of doing that with the existing code -...

When I attempt to import a record that is invalid due to a uniqueness constraint, a number of `ActiveModel` methods are returning unexpected results. Specifically, `valid?` returns true after the...

I've added two options for omitting columns from the SQL statements, to avoid having to modify class level `self.ignored_columns` since we've had issues with this affecting other code that runs...

When a record has two column backed attributes that are aliased together, import breaks across the board because both column names are provided. I briefly looked to see if this...

Related to https://github.com/zdennis/activerecord-import/pull/799 and https://github.com/zdennis/activerecord-import/issues/728 In my model I am aliasing an attribute, when I try to import a record from an existing record, the INSERT INTO sql string has...

A new MySQL adapter (trilogy) has been introduced to rails. https://github.com/rails/rails/pull/47880 activerecord-import should also support trilogy. > Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility,...