> --
> 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.
>
>
Can you describe exactly the semabtics you need?
On Thu, Dec 30, 2010 at 8:44 PM, jdill <jer...@dilltree.com> wrote:
You said you are generating I clientside. Have you tried using $inc instead to increment ? This should help with the need to employ locking.
Its always increasing and guaranteed to be unique.
Implemented just like auto_incrememnt in RDBMs
>
> Guess we just need to try it out.
>
> thx.
>
> - Jeremy
>
>
>
> On Dec 31, 9:46 am, Dwight Merriman <dwi...@10gen.com> wrote:
>> http://www.mongodb.org/display/DOCS/Timestamp+Data+Type
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Dec 31, 2010 at 10:22 AM, jdill <jer...@dilltree.com> wrote:
>> > Eliot.. Will do. Thanks.
>>
>> > On Dec 31, 9:15 am, Eliot Horowitz <eliothorow...@gmail.com> wrote:
>> > > Ok, so Timestamp is probably best.
>> > > Its not a widely used feature, so if you run into trouble let us know.
>>
>> > --
>> > 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<mongodb-user%2Bunsubscribe@google groups.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...@googlegroups.com.
For writes coming into a master on a repl set, a slave is guaranteed
to apply them in the same order.
There isn't a way to get the functionality without it.
If you're using a single thread though, you shouldn't need to call getLastError.
You can call once every second or something to make sure things are
going in fine, but not after every call.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.