وبلاگ بلیان

MongoDB and Python : Patterns and Processes for the Popular Document-oriented Database

معرفی کتاب «MongoDB and Python : Patterns and Processes for the Popular Document-oriented Database» نوشتهٔ O'Higgins, Niall، منتشرشده توسط نشر O'Reilly Media در سال 2011. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «MongoDB and Python : Patterns and Processes for the Popular Document-oriented Database» در دستهٔ بدون دسته‌بندی قرار دارد.

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......Page 5 Conventions Used in This Book......Page 7 Safari® Books Online......Page 8 Acknowledgments......Page 9 Introduction......Page 11 Finding Reference Documentation......Page 12 Installing MongoDB......Page 13 Running MongoDB......Page 15 Setting up a Python Environment with MongoDB......Page 16 Chapter 2. Reading and Writing to MongoDB with Python......Page 19 Connecting to MongoDB with Python......Page 20 Getting a Database Handle......Page 21 Inserting a Document into a Collection......Page 22 Write to a Collection Safely and Synchronously......Page 23 Guaranteeing Writes to Multiple Database Nodes......Page 24 Reading, Counting, and Sorting Documents in a Collection......Page 25 Updating Documents in a Collection......Page 28 Deleting Documents from a Collection......Page 30 MongoDB Query Operators......Page 31 MongoDB Update Modifiers......Page 32 A Uniquely Document-Oriented Pattern: Embedding......Page 33 Fast Lookups: Using Indexes with MongoDB......Page 39 Location-based Apps with MongoDB: GeoSpatial Indexing......Page 43 Code Defensively to Avoid KeyErrors and Other Bugs......Page 47 Update-or-Insert: Upserts in MongoDB......Page 49 Atomic Read-Write-Modify: MongoDB’s findAndModify......Page 50 Fast Accounting Pattern......Page 51 Pylons 1.x and MongoDB......Page 55 Pyramid and MongoDB......Page 59 Django and MongoDB......Page 61 Going Further......Page 63 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 collectionLearn how to use the rich MongoDB query languageMaintain data integrity in replicated/distributed MongoDB environmentsUse embedding to efficiently model your data without joinsCode defensively to avoid keyerrors and other bugsApply atomic operations to update game scores, billing systems, and more with the fast accounting patternUse MongoDB with the Pylons 1.x, Django, and Pyramid web frameworks "MongoDB and Python" is a cookbook-style text to help Python programmers work with MongoDB.
دانلود کتاب MongoDB and Python : Patterns and Processes for the Popular Document-oriented Database