我的数据库模式应该具体如何?

时间:2014-12-27 19:34:06

标签: mongodb performance meteor database

我使用MongoDB作为MeteorJS的数据存储区。我想知道我的架构对于每个文档应该有多详细。示例:

subscriberIds: {
    type: Array,
    defaultValue: []
},
totalSubscribers: {
    type: Number,
    defaultValue: 0
}

我可以选择是使用subscriberIds.length()还是只检索totalSubscribers,但我不知道从效率角度来看哪个更好的选择。

0 个答案:

没有答案
相关问题