The Web framework for perfectionists
with deadlines
http://www.djangoproject.com/
“One size fits all”
no longer
RDBMS
(Oracle, MySQL)
New gen. OLAP
(vertica, aster, greenplum)
Non-relational
operational stores
(“NoSQL”)
NoSQL really means:
non-relational next generation
operational datastores and databases
Scaling out
no joins +
light transactional semantics =
horizontally scalable architectures
Data models
no joins +
light transactional semantics =
horizontally scalable architectures
important side e!ect :
new data models =
improved ways to develop
applications
MongoDB in two minutes
•Documents (think rows) are dicts:
•Collections (think tables) are schema-free
•Queries are dynamic
•Great single node performance
•Built in replication and auto-sharding
•No complex transactions
{“hello”: “world”}
{“hello”: “world”, “foo”: [{“bar”: 1}]}
?
Yes...
...but also sometimes no
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
models.py (Ming)
class Poll(ming.Document):
class __mongometa__:
session = session
name = "polls"
_id = ming.Field(ming.schema.ObjectId)
question = ming.Field(str, required=True)
pub_date = ming.Field(datetime.datetime,
if_missing=datetime.datetime.utcnow)
choices = ming.Field([{"choice": str,
"votes": int}])
http://merciless.sourceforge.net/
mango - sessions and auth
http://github.com/vpulim/mango
•Full sessions support
•mango provided User class
•supports is_authenticated(), set_password(), etc.
1.Download MongoDB
http://www.mongodb.org
2.Try it out!
3.(And help us make things work better with
Django!)
•http://www.mongodb.org
•irc.freenode.net#mongodb
•mongodb-user on google groups
•@mongodb, @mdirolf
•[email protected]
•http://www.slideshare.net/mdirolf
•http://github.com/mdirolf/djanMon/