MongoDB and Python
Patterns and processes for the popular document-oriented database
Publisher: O'Reilly Media
Final Release Date: September 2011
Pages: 138

Learn how to leverage MongoDB with your Python applications, using the hands-on recipes in this book. You get complete code samples for tasks such as making fast geo queries for location-based apps, efficiently indexing your user documents for social-graph lookups, and many other scenarios.

This guide explains the basics of the document-oriented database and shows you how to set up a Python environment with it. Learn how to read and write to MongoDB, apply idiomatic MongoDB and Python patterns, and use the database with several popular Python web frameworks. You’ll discover how to model your data, write effective queries, and avoid concurrency problems such as race conditions and deadlocks.

The recipes will help you:

  • Read, write, count, and sort documents in a MongoDB collection
  • Learn how to use the rich MongoDB query language
  • Maintain data integrity in replicated/distributed MongoDB environments
  • Use embedding to efficiently model your data without joins
  • Code defensively to avoid keyerrors and other bugs
  • Apply atomic operations to update game scores, billing systems, and more with the fast accounting pattern
  • Use MongoDB with the Pylons 1.x, Django, and Pyramid web frameworks
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyMongoDB and Python
 
3.5

(based on 2 reviews)

Ratings Distribution

  • 5 Stars

     

    (1)

  • 4 Stars

     

    (0)

  • 3 Stars

     

    (0)

  • 2 Stars

     

    (1)

  • 1 Stars

     

    (0)

Reviewed by 2 customers

Sort by

Displaying reviews 1-2

Back to top

(0 of 1 customers found this review helpful)

 
2.0

Doesn't add much value over the online d

By Ivo Flipse

from Netherlands

About Me Developer

Verified Reviewer

Pros

    Cons

    • Not comprehensive enough
    • Too basic

    Best Uses

    • Novice

    Comments about oreilly MongoDB and Python:

    I needed a database for the Web App I'm making and thought a document store would be nice, because it makes it really easy to look up attributes of objects I store in it. Given I've been hearing good things about MongoDB the past year, I decided to finally give it a serious try. So I picked up MongoDB and Python: Patterns and processes for the popular document-oriented database hoping to pick up some best practices.

    Sadly the book is really basic, so while it was helpful to get the hang of the syntax, I could have learned that from their documentation. They reuse a lot of code between examples, making them rather repetitive and don't really show off any examples that show the benefits of having a document store like MongoDB. Furthermore, the book is only 53 pages, which really doesn't justify the price. So I'd skip this one and just go for the online documentation and experimenting yourself.

    (2 of 2 customers found this review helpful)

     
    5.0

    Highly recommendatious

    By MFB

    from Queensland, Australia

    About Me Developer

    Verified Reviewer

    Pros

    • Accurate
    • Concise
    • Easy to understand
    • Helpful examples
    • Well-written

    Cons

      Best Uses

      • Expert
      • Intermediate

      Comments about oreilly MongoDB and Python:

      Niall O'Higgins has skilfully and simply bridged the divide between uber-nerd and regular human. This book was a God-send for me and answered all the big questions I had, particularly regarding PyMongo, as well as clearly demonstrating ways to start building a solid PyMongo application. Well done!

      Displaying reviews 1-2

      Back to top

       
      Buy 2 Get 1 Free Free Shipping Guarantee
      Buying Options
      Immediate Access - Go Digital what's this?
      Ebook: $16.99
      Formats:  DAISY, ePub, Mobi, PDF
      Print & Ebook: $21.99
      Print: $19.99