SecurityAuthentication mode will be available with sharding as of v2.0. See SERVER-921 for details. Differences from Unsharded Configurations
$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. groupCurrently, one must use MapReduce instead of group() on sharded collections. getPrevErrorgetPrevError is unsupported for sharded databases, and may remain so in future releases (TBD). Let us know if this causes a problem for you. Unique IndexesFor a sharded collection, you may (optionally) specify a unique constraint on the shard key. You also have the option to have other unique indices if and only if the shard key is a prefix of their attributes. In other words, MongoDB does not enforce uniqueness across shards. You may specify other secondary, non-unuique indexes (via a global operation), again, as long as no unique constraint is specified. Scale LimitsGoal is support of systems of up to 1,000 shards. Testing so far has been limited to clusters with a modest number of shards (e.g., 100). More information will be reported here later on any scaling limitations which are encountered. There is no hard-coded limit to the size of a collection -- but keep in mind the last paragraph. You can create a sharded collection and go about adding data for as long as you add the corresponding number of shards that your workload requires. And, of course, as long as your queries are targeted enough (more about that in a bit). Query speedQueries involving the shard key should be quite fast and comparable to the behavior of the query in an unsharded environment. Queries not involving the shard key use a scatter/gather method which sends the query to all shards. This is fairly efficient if one has 10 shards, but would be fairly inefficient on 1000 shards (although still ok for infrequent queries). Sharding an existing collectionIt is possible to shard an existing collection, but there are some limitations. Put differently, if you have an existing single node (or single replica set) and you want to upgrade that data to a sharded configuration, this is possible. The current limitations are size and time.
|

PLEASE POST QUESTIONS IN THE FORUMS: http://groups.google.com/group/mongodb-user. Post tips and clarifications here.
blog comments powered by Disqus