【发布时间】:2019-09-17 20:41:18
【问题描述】:
我有一个名为 Time_Cube 的集合。 下面给出的是我的文档的架构。 我想提高从此集合中获取的所有查询的性能时间。 我是 MongoDB 的新手。 您能帮我更改架构或重组查询吗?此集合中有超过 300 万条记录。
PS:这是我在 Stackoverflow 上的第一个问题 集合中的示例文档:
{
"_id" : {
"course" : "DPP006",
"date" : 1506384000000,
"course_type" : "Library",
"browser" : "Chrome",
"device" : "desktop",
"os" : "Windows",
"country" : "IN",
"language" : "enIE",
"site" : "ea92d3b3aeb265d60ff9a91d7ab2c041",
"cid" : "48035"
},
"usersData" : [
{
"user" : "5c5947cc03927f7eee66339b17977153",
"cid" : "48035"
}
]
}
【问题讨论】:
标签: mongodb