4. Scaling out
no joins +
light transactional semantics =
horizontally scalable architectures
5. Data models
no joins +
light transactional semantics =
horizontally scalable architectures
important side effect :
new data models =
improved ways to develop
applications
20. New post
post = {“author”: “mike”,
“date”: datetime.datetime.utcnow(),
“text”: “my blog post...”,
“tags”: [“mongodb”, “python”]}
post_id = db.posts.save(post)
21. Embedding a comment
c = {“author”: “eliot”,
“date”: datetime.datetime.utcnow(),
“text”: “great post!”}
db.posts.update({“_id”: post_id},
{“$push”: {“comments”: c}})
34. Similar to +
• A lot of Django doesn’t depend on django.db:
• URL dispatch, templates, I18N, caching, etc.
• Some things do:
• Models
• Auth
• Sessions
• Admin
40. mango - sessions and auth
• Full sessions support
• mango provided User class
• supports is_authenticated(), set_password(), etc.
http://github.com/vpulim/mango