Hi Kevin,
Thanks for the quick answer.
Using the MM API seems to be better to update the current object's
key.
I'm not yet really familiar with this API, but I wonder ; does it
update the DB (or just the object's value)? If yes, does it save only
this key, or the entire Document?
That's what interested me in the 1st place. I want to be able to
update just this key on a fairly large document, without overwriting
the whole document. It's not for performance reasons. There are
possible race conditions ; parts of the document will be updated by
many workers around the same time and I don't want to put locks on the
document. That's one of the reasons I've decided to use Mongo instead
of MySQL.
About dropping to the driver or not is something I've been wondering
about for different needs. I've looked for a way to update only
certain keys of documents, but it seems that MM doesn't allow that, it
updates the whole document. If there is a way, I'd be happy to know
it.
Thanks again for your knowledge ;-)