On 25/11/12 5:04 AM, Fernando Olivero wrote:
Hi, this seems to answer your question.
http://articles.tulipemoutarde.be/embedded-document-with-voyage-in-mongodb
The model in that article has a one-to-many relation between a Spaceship
and Pilots. The Pilot isPersistent/isRoot, so has its own MongoDB
collection. IIUC, if Pilot were not persistent/root, then the collection
of pilots would be serialized along with the Spaceship object, and there
would be no separate Pilot collection in MongeDB.
So my question is, how does MongoTalk handle the editing of the pilot
collection, when it's embedded into the Spaceship. For example, if a
pilot is added, removed, or updated, does the entire embedded collection
get re-saved, or does a suitable MongoDB update query get generated?