我有以下文件收集的文档结构
{
"_id" : ObjectId("51417514e4b06c14ef682854"),
"chunkSize" : NumberLong(262144),
"length" : NumberLong(1532),
"md5" : "067882a724de349d310e9a3a92e04617",
"filename" : "1363244267550media481B49589E924622B00E7846BCE3EEC7.tomcat1",
"contentType" : "image/jpeg",
"uploadDate" : ISODate("2013-03-14T06:58:28.479Z"),
"aliases" : null,
"metadata" : {
"name" : "1363244267550media481B49589E924622B00E7846BCE3EEC7.tomcat1",
"customerId" : NumberLong(202),
"siteId" : NumberLong(103780),
"userId" : NumberLong(102)
}
}
对于 Chunks 集合,我使用“files_id”插入文件相关数据
任何人都可以建议我在 gridFS 中启用分片的分片键是什么。有适当的描述