Have you considered using a type that doesn't these restrictions? If
no, you might want to think about it.
> --
> 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.
>
>
Like the default ObjectId, yes.
> All of my ids are numeric.
Just because your existing ids are numbers doesn't mean your new ones
must be. Each document can its own type since there is no restricting
schema.
> On counter document:
> If I have 10 collection each having the auto increment attribute, then
> I would 10 counter documents. Right?
Yes.
However, a system like this is inherently problematic if there is high
contention for those counters. It may delay/block insertion of new
data when you need to increment it. If you have a low write volume
this may not be a problem, but you should be aware of these
considerations as they may affect you in the future.
Yes, you should (re)search the archives from the list and read up on
sharding if you plan to do this. It is best to put a plan together
before you need to shard if scalability is a concern.