Thanks a lot for your answer axlfu,
Im not sure if Im getting exactly what you mean. As per your answer,
this should work but the doc cant be splited.
"one document completely in one chunk"
The structure of our document is something like:
{ "_id" : ObjectId("11111111111"), "notes" : [ 90, 95, 92 ],
"description" : "", "certs" : [ "linux", "python", "cisco" ],
"name" :
"Sebastian Arriada", "age" : "30" }
As far as I can see, when we create the shards with certs as index, as
you mention mongoDB does not know about the array and create shards
per the values of "certs". In that case the document could belongs to
1 shard (eg. linux) but will not belongs to the others.
When I run the shard with 500k recors under this situation, after the
shard I had 130k. I though that the previous situation could be a
reason for this.
When you mention that it works, did u try the shard with a collection
with documents? Did u compare the count before/after the sharding?
Cheers,
Sebastian.