Review: „MongoDB Applied Design Patterns” By Rick Copeland, O’Reilly Media
Useful and practical examples
I used MongoDB in some of my projects but mostly through adapters (ODMs – object-document mappers). Recently, I needed to think about structure of documents used in one of my web app.
In first part author helps to solve that problem — he shows pros and cons when embedding documents is better solution or when referencing documents wins. In other chapters of Part I. Design Patterns author covers also polymorphic schemas and how to mimick transactional behaviour in MongoDB.
In Part II. Use cases there are different examples of MongoDB in actions. Author provides some Python snippets for each chapter. For me, the most interesting example is storing log data — it is really helpful to be aware of how proper document structure or documents pre-allocation has an influence on database performance.
Product page: http://shop.oreilly.com/product/0636920027041.do