thanks,
let me continue with another question.
I'm trying to move some of my old data from my old MySQL to the mongo
server.
Most of the data was already moved, but some of it is not.
I'm trying to figure out what would be "cheaper":
1. Doing an insert to a document with the requested _id, and failing
internally if the _id already exist. (if it exists i don't want to
update it)
2. To query for the object, and to do an insert only if it doesn't
exist.
thanks
On Oct 25, 2:19 am, Scott Hernandez <
scotthernan...@gmail.com> wrote:
> That is probably a good query but I don't think the server will return
> data from the index for the document. But when it does that will be
> the most efficient. You can followhttp://
jira.mongodb.org/browse/SERVER-192