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

activerecord-import is a library for bulk inserting data using ActiveRecord.One of its major features is following activerecord associations and generating the minimal number of SQL insert statements required, avoiding the N 1 insert problem. An example probably explains it best. Say you had a schema like this:Publishers have BooksBooks have Reviewsand you wanted to bulk insert 100 new publishers with 10K books and 3 reviews per book. This library will follow the associations down and generate only 3 SQL insert statements - one for the publishers, one for the books, and one for the reviews.
A library for bulk insertion of data into your database using ActiveRecord. #ruby #rubydeveloper #rubyonrails #activerecord. #database #library https://rubyonrails.ba/single/a-library-for-bulk-insertion-of-data-into-your-database-using-activerecord

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles