A library for bulk insertion of data into your database using ActiveRecord.
08-Feb-2019 1857
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 #library #insertion #database #using #ActiveRecord. #activerecord. #database #library https://rubyonrails.ba/link/a-library-for-bulk-insertion-of-data-into-your-database-using-activerecord