Received: by 10.224.105.137 with SMTP id t9mr14824200qao.7.1340204534869; Wed, 20 Jun 2012 08:02:14 -0700 (PDT) X-BeenThere: mongodb-user@googlegroups.com Received: by 10.224.111.1 with SMTP id q1ls9336833qap.9.gmail; Wed, 20 Jun 2012 08:01:48 -0700 (PDT) Received: by 10.224.188.8 with SMTP id cy8mr14843240qab.6.1340204508182; Wed, 20 Jun 2012 08:01:48 -0700 (PDT) Received: by 10.224.183.146 with SMTP id cg18msqab; Wed, 20 Jun 2012 07:53:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.155.207 with SMTP id vy15mr1597341vdb.13.1340204036641; Wed, 20 Jun 2012 07:53:56 -0700 (PDT) Authentication-Results: ls.google.com; spf=pass (google.com: domain of raul.gonza...@diffindo.es designates internal as permitted sender) smtp.mail=raul.gonza...@diffindo.es; dkim=pass header...@diffindo.es Received: by eh4g2000vbb.googlegroups.com with HTTP; Wed, 20 Jun 2012 07:53:56 -0700 (PDT) Date: Wed, 20 Jun 2012 07:53:56 -0700 (PDT) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5,gzip(gfe) Message-ID: <0a78c4a0-4230-4f30-8e01-8f0ebf455d57@eh4g2000vbb.googlegroups.com> Subject: Help. Choosing shard keys From: =?ISO-8859-1?Q?Ra=FAl_Gonz=E1lez?= To: mongodb-user Content-Type: text/plain; charset=ISO-8859-1 Hi to all, I hope that from the group could help me to choose my shard keys. I have two models that i want to shard. The first model is a word list and it only have two fields into the model: Language as char field and word as chard field also. I think the best solution is to choose the field word for sharding here. The second modelo is a book list and this have the following fields: id, created_at, title, publisher, publishdate, source. Here I have many doubts with the best choice. I hope that you could help me because as the documentation said "It is important to choose the right shard key for a collection. If the collection is gigantic it is difficult to change the key later"