> --
> 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.
You can create your own _id if you want. Insertion just generates one for you if it's not included in your document. _id usually has the inserton time embedded into it, but I sometimes use it as an alternative to a separate indexed Date/Time field, and set it accordingly.
On 14/10/11 13:55, ajinkya prabhune wrote:
Hello
I have been working with mongo for a long time now.
But I was curious to know that whether it is possible to have the auto generated doc _id
before a document is inserted in the mongodb ?
I am using Mongo Java Library.
--
Thank you and Regards
Ajinkya Prabhune
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
--
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+unsubscribe@googlegroups.com.