当前位置:数据库 > mongodb >>

Mongodb Sharding Commands


Mongodb Sharding Commands
 
Java代码  www.zzzyk.com  
 
sh.addShard('replicateSet1/host:port');  
 
sh.enableSharding('database');  
  
//Shard key should be index of the collection  
 
sh.shardCollection('db.collection', 'shard key');  
  
sh.status();  
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,