The sharding is one of the main design goals of MongoDB. With sharding, the massive data can be distributed across multiple machine nodes , this is very powerful for heavy load application.
In some application like LiveJournal , data grows so big that one single table have to be distributed across multiple database servers.
Index is a key factor to boost performance for any database system. Database like MySQL provided explain command to list details of SQL execution process. In MongoDB, you can chain the explain() calling to list what's going on in the process of query.
To test the effect of index, we need a fairly large collection. Lets insert some documents in PHP.To test the effect of index, we need a fairly large collection. Lets insert some documents in .