BryanHunt/mongo-emf — Issue #12: Create configuration for data normalization 
Author: jconlon
Created: 2012-01-26 23:50:51+00:00
State: open

EObjects saved with mongo-emf are persisted in a single mongoDB collection. If the EObject is a parent container of sub objects and this EObject is saved with mongo-emf the child EObjects are stored as subdocuments to the parent within a single document contained in a single mongoDB collection.

Depending on application performance requirements, ECore models may need to be saved to different resource collections on a Mongo DB. Currently, client code is required to manage this normalization of data, by saving and reading the subobjects to and from different collections. This is done using different resource uris for each of the child EObject targeted for a different collection.

Can this deployment wiring be automated? Can a generalized solution be offered for configuring MongoDBURIHandlerImpl so that saving of parent EObjects graphs will result in the saving of some or all of the EObject child objects to one or more different collections?