【发布时间】:2014-10-25 02:53:39
【问题描述】:
假设我有一个包含“B”字段的三个文档。这三个都有 3 种不同的数据类型。 Index BTREE 是如何存储的?并且将“B”作为索引键是有效的吗?
示例。
{_id:"1",a:1,b:"abc" } //B is string here
{_id:"1",a:1,b:[1,2,3] } //B is array of numbers
{_id:"1",a:1,b:{x:1,y:"a"} } //B is another nested document
【问题讨论】:
-
完美。太感谢了。所以即使在 BTREE 节点放置中也存在 SORT 机制