假设一个集合的片键是如下:
{a:1, b:1, c:1}
The mongos program can route queries that include the full shard key or either of the
following shard key prefixes at a specific shard or setof shards:
那么只有查询条件是如下的两种,可以实现精确查询
{ a:1}{ a:1, b:1}
版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/whp404/article/details/89713394
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。