atom feed22 messages in com.googlegroups.mongodb-userRe: Auto increment?
FromSent OnAttachments
sdotsenAug 10, 2009 11:51 am 
Eliot HorowitzAug 10, 2009 11:56 am 
sdotsenAug 10, 2009 12:04 pm 
Eliot HorowitzAug 10, 2009 12:13 pm 
Daniel FriesenAug 10, 2009 1:55 pm 
diegomsanaAug 10, 2009 2:32 pm 
Eliot HorowitzAug 10, 2009 5:39 pm 
sdotsenAug 10, 2009 7:18 pm 
Eliot HorowitzAug 10, 2009 7:20 pm 
sdotsenAug 10, 2009 7:29 pm 
Eliot HorowitzAug 10, 2009 7:31 pm 
sdotsenAug 10, 2009 7:41 pm 
Eliot HorowitzAug 10, 2009 7:44 pm 
sdotsenAug 10, 2009 7:51 pm 
sdotsenAug 11, 2009 9:59 am 
Eliot HorowitzAug 11, 2009 10:01 am 
sdotsenAug 11, 2009 10:07 am 
sdotsenAug 11, 2009 10:12 am 
Kristina ChodorowAug 11, 2009 10:23 am 
sdotsenAug 11, 2009 10:27 am 
Kristina ChodorowAug 11, 2009 10:33 am 
sdotsenAug 11, 2009 10:38 am 
Subject:Re: Auto increment?
From:Eliot Horowitz ("eli@gmail.com)
Date:Aug 10, 2009 11:56:34 am
List:com.googlegroups.mongodb-user

Not really.

We don't support auto_incremement because it doesn't work well in a sharded environment.

If you save an object the db will add a globally unique _id. That's guaranteed to be unique throughout a regular or sharded environment for the collection.

-Eliot

On Mon, Aug 10, 2009 at 2:51 PM, sdotsen<samn@gmail.com> wrote:

Is there an equivalent of "auto_increment" in mongo? I tried inserting 100 records and all was fine. I went ahead and added another 100 and the same numbers were used.