Created
March 14, 2012 16:39
-
-
Save JakubOboza/2037751 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So we had modeling done this way: | |
You use mongodb "like" relational db while editing and forming thing to publish and when you publish you are producing one document with embedded document. | |
like this | |
[Car] -> has many via dbrefs -> [Part] | |
produces | |
[CarSnapshot] -> has many via embedded doc -> [Part] | |
This way for serve published version you just do one call. | |
and ofc published document has this meta data like time of publish version etc. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment