mongodb索引长度限制
2017-05-06 18:30
141 查看
mongodb索引长度限制
集合中索引不能超过64个索引名的长度不能超过128个字符
一个复合索引最多可以有31个字段
可以使用db.collection.ensureIndex({indexName:1},{name:”xxxIndexName”})指定name的长度。
Number of Indexes per Collection
A single collection can have no more than 64 indexes.
Index Name Length
Fully qualified index names, which includes the namespace and the dot separators (i.e. ..$), cannot be longer than 128 characters.
By default, is the concatenation of the field names and index type. You can explicitly specify the to the createIndex() method to ensure that the fully qualified index name does not exceed the limit.
Number of Indexed Fields in a Compound Index
There can be no more than 31 fields in a compound index.
相关文章推荐
- 数据库 表名,列名,索引名,约束名,表列数长度限制
- 关于InnoDB索引长度限制的tips
- mysql索引长度的一些限制
- MySQL MyIsam 存储引擎索引长度限制测试记录
- mysql 索引长度限制
- 关于MySQL数据库InnoDB存储引擎索引长度限制的tips
- 数据库 表名,列名,索引名,约束名,表列数长度限制
- 关于InnoDB索引长度限制的问题
- Informix 表、索引对字段个数、长度的限制情况
- 学习MongoDB 八: MongoDB索引(索引限制条件)(二)
- 突破索引长度限制
- Mysql索引长度限制
- MySQL索引长度限制问题
- 修改Mysql索引长度限制
- 学习MongoDB 八: MongoDB索引(索引限制条件)(二)
- 【MySQL】索引长度的一些限制
- 关于InnoDB索引长度限制的问题
- 数据库 表名,列名,索引名,约束名,表列数长度限制
- MySQL MyIsam 存储引擎索引长度限制测试记录
- MySQL索引长度限制问题