PyGotham Day 1 Session 1-MongoDB
Mongodb in action
data is not flat as is there in rdbms.
query in adhoc manner
document like structure - denormalized form of data
There is no join in the mongodb
Data writes are atomic.
they do banking - embed documents into another documents.
Schema - design criteria
- How can we manipulate this data
a) Dynamic Queries
b) Secondary Indexes
c) Map Reduce
d) Atomic Updates
a) Read/Write ratio
b) Type of updates
c) Types of queries
d) Data life-cycle
Documents are - sort of dynamic structures we don;t have to define them in advance. More sort of data.
- import pymongo
>>c = pymongo.Connection('localhost',27017)