I want to create a utility which can help in migrating data from Relational DB(Oracle) to MongoDB.
Plan is :-
Relation DB -> CSV(staging area) -> BSON format
(conversion to BSON will be based on mappings provided by various use cases).
Once BSON is created, Mongo DB's ‘Import’ tool will be used for loading data.
Need suggestions from this expert forum on following problem statement:-
"Most of the relational tables are highly normalized. When I join them to create the data entity, I end up with multiple rows (E.g. An employee having 3 phone numbers results in 3 rows in CSV file). I need to map/convert these three records into one document on BSON (for embedded document structure)."
Please suggest how to achieve this.