anlek/mongify

Option to filter *views* out

Opened this issue · 4 comments

In the translation command, it would be sweet to be able to process the tables only and not the views.

anlek commented

Hello @chevdor,
The translation file includes everything, however you're free to remove it (or add ignore: true on the views).

Does it makes sense by default to migrate data that is not real (views) into new mongo collections?

anlek commented

Maybe not but I wouldn't want to remove that possibility. If you would like to submit a PR to set an ignore flag on views, I'd gladly pull it in.

I am unfortunately not yet a Ruby guy 😄
À good option for now may be to set ignore:true automatically on views unless you or someone can explain a benefit of migrating by default the views as well. I think this is not common.