Sample Header Ad - 728x90

MongoDB specifying shard key and sharding strategy

1 vote
2 answers
591 views
What is the syntax to state that a collection is to be sharded as location based, while using the range based sharding strategy. I know you have to use the the sh.shardCollection() command, but what arguments do I use in it?
Asked by tom dinh (79 rep)
Mar 20, 2019, 09:38 PM
Last activity: Jul 8, 2025, 08:04 PM