--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
'2- Should the "embedded" order reflect the changes in item prices, reflect the change.'
Never, imagine a user places an order and then before it is despatched suddenly realises the price has changed for no apparent reasons. You should duplicate the price upon ordering and place it in the embedded products list. This is what most (if not all) e-commerce sites do.
'The same products are inserted in the products collection, and one order is placed in each order collection, the difference is the way products are "related" to orders, in one are linked, in other are embedded and the last are referenced.'
Any of the three are valid depending on how the embbeding is done of course. If you are embbeding ordered products within orders then that is fine, embedding orders within products would not be a sound solution. Since I doubt anyone will order enough products to exceed the 16Mb limit you should be safe.
Hope this helps,"
This thread is really going off-topic, but just the last...
When I register in the mailing-list, began to receive mails about advanced mongodb topics, so I thought that the question was going to remain unanswered, so that where my motivation about publishing in SO.
Sam, now you say, this make sense, due the kind of results when searching for programming questions.
Barri, no problem, didn't see any bad attitude, just my fault, keep the good work, congrats, it's really amazing!
Thanks
2012/2/6 Sam Millman <sam.m...@gmail.com>