In a previous post we discussed the emergence of NoSQL products, one of which, MongoDB caught out eye. We began by reading part of the the book MongoDB: The Definitive Guide by Kristina Chodorow and Michael Dirolf and published by O’Reilly. We found the following points instructive.
- MongoDB has some of the features of a SQL database including indexes, range queries and sorting.
- The authors hail its easy of use.
- The database can be interoperated with using JavaScript. In fact the test database online is a JavaScript Shell. Obviously, MongoDB does not use SQL.
- MongoDB and NoSQL in general replaces the concept of a row with a document. The book states the primary reason for doing this is making scaling easier. This allows “the representation of complex hierarchical relationships with a single record and this fits nicely into the way developers think about their data.
- Each document has its own “_id”
- A collection is a group of documents
- Groups of different collections are different databases.
- As one would expect, MongoDB is schema-free. This eases large data migrations. Its also gives developers more freedom in terms of how they model (one also wonders if it gives developers less overhead to manage)
- Amazingly, the book proposes that the massive increase in data is placing pressure on the SQL model. (This is interesting to me because I had always heard that SQL databases were able to take the most volume when compared to other data repository types. If NoSQL has improved on this volume management of SQL, then things could get really interesting for this technology / approach.)
- MongoDB was designed from the beginning to “scale out” which means to be moved over multiple machines, which increases its scalability at a lower cost than SQL (this means the database does not have to be ported to a new machine if it outgrows it.
- MongoDB follows a very low maintenance approach with respect to databases
Conclusion
A lot more investigation is necessary to see how we can use, and if we can use MongoDB. However, it sounds intriguing so far.
{ 0 comments }






