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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -