Re: MongoDB Sharding

From: Rhys Campbell <rhys.james.campbell@xxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Mon, 9 May 2016 22:09:26 -0700 (PDT)
Why ads?
Pretty sure you can only shard on index fields...

https://docs.mongodb.com/manual/core/sharding-introduction/ ;

"To shard a collection, you need to select a shard key. A shard key 
<https://docs.mongodb.com/manual/reference/glossary/#term-shard-key> is 
either an indexed field or an indexed compound field that exists in every 
document in the collection."

Check the output of sh.status()

https://docs.mongodb.com/manual/reference/method/sh.status/

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/4305a823-bba9-4692-bce0-043b65ac4610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?