6

I have a collection that has different query params to support,as such I create indexes for every keys. I just added a few more and get an error:

pymongo.errors.OperationFailure: add index fails, too many indexes for collection key:{ foo: 1 }

and then I notice that the maximum number of indexes per collection in mongodb is just 64, Can I change this number ?

4

1 回答 1

6

最大值内置于 MongoDB 中:

http://docs.mongodb.org/manual/reference/limits/

每个集合的索引数

单个集合不能超过 64 个索引。

于 2013-10-16T16:28:11.197 回答