Subject: [mongodb-user] Re: Zone Sharding Not Working As
Configured



Hi,

I noticed a small discrepancy in the code you posted.

Your addTagRange command specified the code to be string:

sh.addTagRange(“test1.users”, { code: “1” }, { code: “20” }, “AS”)

while your test code specified the code to be numbers:

for (i = 1; i < 40; i++) { db.users.insert({“code”:i})}

Using this test code, all your test documents will be deposited in a single chunk.

You might want to re-specify your tag ranges to be in numbers, e.g.:

sh.addTagRange("test1.users", { code: 1 }, { code: 20 }, "AS")

and see if your tag ranges now behaves as designed.

Best regards,
Kevin

--
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.com/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 [email protected].
To post to this group, send email to
[email protected]">[email protected]
.
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/b2a6207f-ea94-4714-9e9e-48ad81117cdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting