mongify icon indicating copy to clipboard operation
mongify copied to clipboard

how to write a code in translation.rb file , if i want to copy entire table into specific mongo collection

Open Komalil opened this issue 8 years ago • 5 comments

Hi Friends,

Please help me to to resolve the issue ASAP.

Komalil avatar Mar 24 '17 09:03 Komalil

Hi! Can you please provide us some more info?

The collection is already created and populated?

Mongify provides a pretty specific documentation. You just need to execute the following command:

mongify translation database.config > translation_file.rb

It'll translate your database.config file to a translation_file.rb

Once done, you can start migrating your data.

joandvgv avatar Mar 24 '17 15:03 joandvgv

@joandvgv Thanks for jumping in. 👍

anlek avatar Mar 27 '17 04:03 anlek

The problem is that Mongify requires instructions on how to translate the tables.

If you run mongify translation database.config > translation.rb and it produces 4000+ tables in the file, you can quickly comment or delete all the tables you don't need. This way it will leave only the tables you want to move over.

Hope that helps!

anlek avatar Mar 27 '17 04:03 anlek

Thanks for the reply anlek..

Komalil avatar Mar 27 '17 08:03 Komalil

In future, is there enhancement to mongify tool related to this issue? (Mean to say, Adding specific tables , instead of deleting or commenting unnecessary tables in translation.rb file ). Thanks for your support.

Komalil avatar Mar 27 '17 08:03 Komalil