Start reading MongoDB and Python on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books even without a Kindle device-with the FREE Kindle app for smartphones and tablets.
MongoDB and Python: Patterns and processes for the popular document-oriented database

MongoDB and Python: Patterns and processes for the popular document-oriented database [Kindle Edition]

Niall O'Higgins

Print List Price: 15.50
Kindle Price: 7.31 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: 8.19 (53%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition 7.31  
Paperback 12.53  
Kid's and Teen books from £0.99 on Kindle
Browse our selection of top children's and teen title in our one week sale, with top titles from only £0.99.Browse the sale here

Customers Who Bought This Item Also Bought

Product Description

Product Description

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

About the Author

Niall O'Higgins is a software consultant specializing in mobile, tablet and cloud computing. His accomplishments include designing and implementing numerous mobile and web platforms using MongoDB, Python and Pylons/Django/Pyramid. Prior to starting his consulting business, he was a software engineer at Metaweb Technologies, where he worked on (now owned by Google). He is the founder and organizer of both the San Francisco Python Web Technology Meet-up, PyWebSF and the Bay Area Tablet Computing Group, We Have Tablets. He has published quite a bit of Open Source software - contributing to OpenBSD and Pyramid among others - and frequently speaks at conferences and events.

Product details

  • Format: Kindle Edition
  • File Size: 300 KB
  • Print Length: 138 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (16 Sep 2011)
  • Sold by: Amazon Media EU S. r.l.
  • Language: English
  • Text-to-Speech: Enabled
  • X-Ray:
  • Amazon Bestsellers Rank: #461,304 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on (beta) 2.3 out of 5 stars  6 reviews
6 of 6 people found the following review helpful
1.0 out of 5 stars Clipped, but not edited. 4 Feb 2012
By Sean True - Published on
Format:Kindle Edition|Verified Purchase
As is sometimes the case, the colophon on the cover is the best part of the book. If you look closely, you'll see O'Reilly clipped the tail off the cover Mongoose. They could have saved the editing attention for the inside of the book.

This book is a collection of quick installation walk throughs and minimal examples. The examples are repetitive: the same setup code shown, at length, with a very few lines of new code to illustrate a point. Don't look for patterns that will stick with you, and don't look for hints about building production systems. Do look for detailed instructions on doing installations that are second nature to any Python programmer.

At ten dollars, this is overpriced. There is enough material for about 10 pages of modestly utility. That's a dollar a page. High, even in these days of low publishing cost and high margin.
1 of 1 people found the following review helpful
1.0 out of 5 stars very little content, mostly comprised of generalities rather than specific guidance 21 Aug 2012
By Doug Y'barbo - Published on
Format:Kindle Edition
i did not check the page length of this book before i purchased it, in fact i don't think i have ever done that, but i clearly need to before buying any more books from O'Reilly.

So this book weighs in at just under 53 pages--this is not a 'work in progress' but the final version. So that's the most conspicuous issue i have with this book, but it's not the only one. In other words, this book is not 53 pages of densely packed, penetrating insight.

Nor even close; the content that does fill these 53 pages is sometimes average and sometimes worse. For instance, this is a book about a language-specific client library for a database server. At the top of the list of topics to include should be any idiosyncratic features of the client library--i.e., those that you can't intuit from a knowledge of Mongo and Python. In other words, the unusual features of the language-specific bindings vis-a-vis the parent library are clearly the priority subject matter for such a book. One such area is the use of regular expressions in a query; the Python client uses a completely different syntax and structure versus Mongo (and also when compared with other client libraries), and yet this subject is never even mentioned in this book
2.0 out of 5 stars Doesn't add anything over the online documentation 14 April 2013
By Ivo Flipse - Published on
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.
1.0 out of 5 stars too expensive, too few content 6 Feb 2013
By Angel - Published on
Format:Paperback|Verified Purchase
The description at Amazon says that it has 138 pages but in reality it has only 53 pages!!!!!!
I'm so disappointed, I learned in less than 6 hours doing a online course everything that has in this book, totally waste of money...
4.0 out of 5 stars Brief instructions on hot to setup PyMongo 12 Mar 2012
By MattA - Published on
Great little book for what it's written for. Simply includes introductory instructions for setting up Mongo using various Python web framework. Nothing special really. You can find all this online, but will save yourself some time if you simply read this book.

Were these reviews helpful?   Let us know

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category