The out-of-the-box _User collection in Mongo for Parse Server has a unique index on both username and email. Given that, what's the ideal strategy for sharding this collection? My initial plan was to just use _id (not hashed) but obviously that doesn't work with the unique indexes.

you can shard it by "_id": "hashed" but it will give the warn: can't ensure unique email or username or something of that sorts

New contributor
Arutyun Pashayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.