What are the best practices for importing large datasets into MongoDB?
Posted
by snl
on Stack Overflow
See other posts from Stack Overflow
or by snl
Published on 2010-05-25T17:13:39Z
Indexed on
2010/05/25
17:21 UTC
Read the original article
Hit count: 187
We are just giving MongoDB a test run and have set up a Rails 3 app with Mongoid. What are the best practices for inserting large datasets into MongoDB? To flesh out a scenario: Say, I have a book model and want to import several million records from a CSV file.
I suppose this needs to be done in the console, so this may possibly not be a Ruby-specific question.
Edited to add: I assume it makes a huge difference whether the imported data includes associations or is supposed to go into one model only. Any comments on either scenario welcome.
© Stack Overflow or respective owner