Skip to content

Commit

Permalink
Merge pull request #43 from Thanix/patch-2
Browse files Browse the repository at this point in the history
Typo fix
  • Loading branch information
karlseguin committed Jun 21, 2015
2 parents a27062e + 37bc98d commit 0f9104e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/mongodb.markdown
Expand Up @@ -638,7 +638,7 @@ MongoDB replication works in some ways similarly to how relational database repl
## Sharding ##
MongoDB supports auto-sharding. Sharding is an approach to scalability which partitions your data across multiple servers or clusters. A naive implementation might put all of the data for users with a name that starts with A-M on server 1 and the rest on server 2. Thankfully, MongoDB's sharding capabilities far exceed such a simple algorithm. Sharding is a topic well beyond the scope of this book, but you should know that it exists and that you should consider it, should your needs grow beyond a single replica set.

While replication can help performance somewhat (by isolating long running queries to secondaries, and reducing latency for some other types of queries), its main purpose is to provide high availability. Sharding is the primary method for scaling MongoDB clusters. Combining replication with sharding is the proscribed approach to achieve scaling and high availability.
While replication can help performance somewhat (by isolating long running queries to secondaries, and reducing latency for some other types of queries), its main purpose is to provide high availability. Sharding is the primary method for scaling MongoDB clusters. Combining replication with sharding is the perscribed approach to achieve scaling and high availability.

## Stats ##
You can obtain statistics on a database by typing `db.stats()`. Most of the information deals with the size of your database. You can also get statistics on a collection, say `unicorns`, by typing `db.unicorns.stats()`. Most of this information relates to the size of your collection and its indexes.
Expand Down

0 comments on commit 0f9104e

Please sign in to comment.