Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
MongoDB and Python
SPECIAL OFFER: Upgrade this ebook with O’Reilly
Preface
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. Getting Started
Introduction
Finding Reference Documentation
Installing MongoDB
Running MongoDB
Setting up a Python Environment with MongoDB
2. Reading and Writing to MongoDB with Python
Connecting to MongoDB with Python
Getting a Database Handle
Inserting a Document into a Collection
Write to a Collection Safely and Synchronously
Guaranteeing Writes to Multiple Database Nodes
Introduction to MongoDB Query Language
Reading, Counting, and Sorting Documents in a Collection
Updating Documents in a Collection
Deleting Documents from a Collection
MongoDB Query Operators
MongoDB Update Modifiers
3. Common MongoDB and Python Patterns
A Uniquely Document-Oriented Pattern: Embedding
Fast Lookups: Using Indexes with MongoDB
Location-based Apps with MongoDB: GeoSpatial Indexing
Code Defensively to Avoid KeyErrors and Other Bugs
Update-or-Insert: Upserts in MongoDB
Atomic Read-Write-Modify: MongoDB’s findAndModify
Fast Accounting Pattern
4. MongoDB with Web Frameworks
Pylons 1.x and MongoDB
Pyramid and MongoDB
Django and MongoDB
Going Further
About the Author
Colophon
SPECIAL OFFER: Upgrade this ebook with O’Reilly
← Prev
Back
Next →
← Prev
Back
Next →