How MongoDB Helps
Instead of relying on the data's underlying schema, queries in MongoDB are more efficient than those in relational databases. Because queries are not constrained by the schema in collections, MongoDB is popular for applications that require a flexible, high-performance database. Because each document has its own business logic, queries are simpler to write in MongoDB than in other databases that are bound by inflexible schemas imposed from outside, such as those based on relational or hierarchical models. HapPhi used MongoDB.