发布于 2015-09-14 15:03:56 | 248 次阅读 | 评论: 1 | 来源: 网络整理

sh.splitFind(namespace, query)
参数:
  • namespace (string) – Specify the namespace (i.e. “<database>.<collection>”) of the sharded collection that contains the chunk to split.
  • query – Specify a query to identify a document in a specific chunk. Typically specify the shard key for a document as the query.

Splits the chunk containing the document specified by the query at its median point, creating two roughly equal chunks. Use sh.splitAt() to split a collection in a specific point.

In most circumstances, you should leave chunk splitting to the automated processes. However, when initially deploying a sharded cluster it is necessary to perform some measure of pre-splitting using manual methods including sh.splitFind().

最新网友评论  共有(1)条评论 发布评论 返回顶部
PHPERZ网友 发布于2021-06-02 11:13:36
支持(1)  反对(1)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务