填充的子文档字段是否需要编入索引?

时间:2013-12-02 20:03:19

标签: node.js mongodb mongoose

在mongoose中,是否需要将填充的子文档字段编入索引?

e.g。

{
  field: { type: ObjectId, index: true, ref: 'TestCollection' }
}

OR

{
  field: { type: ObjectId, ref: 'TestCollection' }
}

0 个答案:

没有答案