|
|
1
1
这是mongoDB自2.6以来添加的一项功能,用于防止索引项的总大小超过1024字节(也称为 Index Key Length Limit ).
对于迁移和其他临时场景,您可以将此用例的处理降级到2.4,在这种情况下,通过设置此mongoDB服务器标志不会触发此异常:
但不建议这样做。 还可以考虑为 文档的每个属性 您检查过如何查询文档以及在哪些字段上键入吗?你用过吗 explain Here are the recommended MongoDB indexing strategies . Excessive indexing has a price as well and should be avoided . |
|
Plup · 连接失败时,PyMongo异步客户端未引发异常 1 年前 |
|
|
Yusuf Damista · 将mongodb节点代码转换为php 1 年前 |
|
|
sachin p · MongoDB docker的默认用户和密码 1 年前 |