Forst impressions of MongoDB

Posted on 25th June, 2011 | Tagged:

MongoDB

In my new Training application (http://github.com/dantleech/Trainer) I have opted to use MongoDB.

So a quick list of what I think about that.

MongoDB

  • Is a NoSQL database system
  • Uses Object IDs by default -- UUIDs not incremental IDs
    • Think GIT revision hashes vs. SVN revision numbers
    • Good: objects can be copied whole from one server to another
    • Good: Apparently very good for distributed storage systems
    • Bad: Makes URLs look rather ugly by default ...
  • Objects tend to be embedded by default instead of referenced
    • Because objects (or Documents) are infact JSON objects.
  • No integrity constraints?
  • Is faster, I believe, than MySQL
  • Formatting on CLI is horrible.
  • Objects stored in JSON format
  • Talks about collections of Objects and not tables.
  • Lends itself well to heirachical data.
  • Aggregation (GROUP BY, SUM, COUNT) accomplished with Map Reduce
    • Map reduce is the combination of 2 javascript closures.
    • I still dont fully appreciate this feature.
    • Not absolutely trivial.
    • VIM doesnt support nested javascript indentation in PHP :(

Comments

Be the first to leave a comment.

Post new comment


type "i hate spam" in UPPER CASE

Tags

10 Latest Items