【发布时间】:2017-10-03 11:18:05
【问题描述】:
我正在为我的集合编写索引策略,并试图找出哈希索引中字符串的正确“精度”,即
collection.IndexingPolicy.IncludedPaths.Add(
new IncludedPath {
Path = "/customId/?",
Indexes = new Collection<Index> {
new HashIndex(DataType.String) { Precision = 20 } }
});
会有大约 10,000 个不同的 customId,那么正确的“精度”是多少?如果它得到超过 100,000,000 个 id 怎么办?
【问题讨论】:
标签: azure indexing hash azure-cosmosdb document-database