Sharding Alpha 2 (MongoDB v1.1)
Shard Keys
Differences from Unsharded ConfigurationsSharded databases behave differently in certain circumstances from a standalone, single-server mongod instance. $where$where works with sharding. However do not reference the db object from the $where function (one normally does not do this anyway). db.evaldb.eval() may not be used with sharded collections. However, you may use db.eval() if the evaluation function accesses unsharded collections within your database. Use map/reduce in sharded environments. getPrevErrorgetPrevError is unsupported for sharded databases, and may remain so in future releases (TBD). Unique IndexesFor a sharded collection, you may only (optionally) specify a unique constraint on the shard key. Other secondary indexes work (via a global operation) as long as no unique constraint is specified. CountsCount is supported with sharding; however, a "count all in collection" will not be instantaneous for a sharded collection as it is for an unsharded collection. Scale LimitsGoal is support of systems of up to 1,000 shards. Testing for Alpha 2 will be limited to clusters with a modest number of shards (e.g., 20). More information will be reported here later on any scaling limitations which are encountered. MongoDB sharding supports two styles of operations -- targeted and global. On giant systems, global operations will be of less applicability. |

IF YOU HAVE A QUESTION, POST IT TO THE USER GROUP.
These pages are fine for comments, but for questions, your best bet will always be the MongoDB User Group. blog comments powered by Disqus