ruby - How is the easiest way to sum 2 disjoint sets of Mongo documents from different databases? -
I have similar documents in two separate databases . I want to connect the documents with both the DBS. How to do the easiest? I need the amount of these sets, the sets are different
I think using Mongoimport, Mongorostor but how do you suggest to deal with the problem?
I want to do it with Mongodp, yes.
mongodump -d dbA
Some code from dump / dba
. Now run these commands for import into another DB.
mongorestore -d dbb dump / dbA
For more information on its parameters, you mongorestore --help
.
Comments
Post a Comment