i have collection with shard key {month :1, user : 1}
First: i have one chunk ((-∞,-∞), (∞,∞)) => all writes and read will be go into this chunk because
minkey_month<month<maxkey_month
minkey_user <user1<maxkey_user
Then: when chunks is too big=> it's slipt into 2 chunks
chunk1: ((-∞, -∞),(“2012-04”, “susan”))
chunk2: [(“2012-04”, “susan”), (∞, ∞))
if i insert document a1:{month:"2012-04", user: "susan"}=>which chunks to choose? why?
if i insert document a1:{month:"2012-04", user: "tusan"}=>which chunks to choose? why?
if i insert document a1:{month:"2012-04", user: "busan"}=>which chunks to choose? why?
if i insert document a1:{month:"2012-05", user: "tusan"}=>which chunks to choose? why?
if i insert document a1:{month:"2012-05", user: "susan"}=>which chunks to choose? why?
can any body give me general syntax to choose chunks with compound shard key such as
with single shard key: for example chunk: (minkey,maxkey)
the chunk will choose when minkey<=keysearch<maxkey
Hope to see reply soon!!!
Thanks so much!!
Phuc