Commit b7ef6788 authored by Arturo Herrero's avatar Arturo Herrero

Performance development docs: Update mass insert

parent 61772cfb
...@@ -448,9 +448,12 @@ SOME_CONSTANT = 'bar' ...@@ -448,9 +448,12 @@ SOME_CONSTANT = 'bar'
You might want millions of project rows in your local database, for example, You might want millions of project rows in your local database, for example,
in order to compare relative query performance, or to reproduce a bug. You could in order to compare relative query performance, or to reproduce a bug. You could
do this by hand with SQL commands, but since you have ActiveRecord models, you do this by hand with SQL commands or using [Mass Inserting Rails
might find using these gems more convenient: Models](mass_insert.md) functionality.
Assuming you are working with ActiveRecord models, you might also find these links helpful:
- [Insert records in batches](insert_into_tables_in_batches.md)
- [BulkInsert gem](https://github.com/jamis/bulk_insert) - [BulkInsert gem](https://github.com/jamis/bulk_insert)
- [ActiveRecord::PgGenerateSeries gem](https://github.com/ryu39/active_record-pg_generate_series) - [ActiveRecord::PgGenerateSeries gem](https://github.com/ryu39/active_record-pg_generate_series)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment