drupal and the rise of the documents
DESCRIPTION
Slides for the session I gave at the Drupal Day Rome about Drupal and MongoDBTRANSCRIPT
![Page 1: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/1.jpg)
Drupal and the rise of the Documents
Claudio Beatrice (@omissis)
1Monday, December 5, 11
![Page 2: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/2.jpg)
It was a warm summer evening in ancient Greece, when one of the greatest philosopher of all times(guess who? :) gave birth to the Theory of Forms, greatly contributing to Ontology, eg the study of the nature of being, existence or reality as such.
2Monday, December 5, 11
![Page 3: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/3.jpg)
An entity(from greek εἶναι, “to be”) may be defined as a thing which is recognized as being capable of an independent existence and which can be uniquely identified. An entity is an abstraction from the complexities of some domain. When we speak of an entity we normally speak of some aspect of the real world which can be distinguished from other aspects of the real world.
3Monday, December 5, 11
![Page 4: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/4.jpg)
Who did just say “yeah but whattabout relationships...
A relationship captures how two or more entities are related to one another.
4Monday, December 5, 11
![Page 5: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/5.jpg)
... and tables?”
5Monday, December 5, 11
![Page 6: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/6.jpg)
and btw, a question:
Awesome! Count to 3 and go asking mr. Boyce and mr. Codd then
6Monday, December 5, 11
![Page 7: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/7.jpg)
A quick look at Drupal’s system table
This is quite a good example from “Master how to hammer a screw vol. 666”: there must be a better solution!
7Monday, December 5, 11
![Page 8: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/8.jpg)
Introducing MongoDB
• Document oriented• schema-less• json-style• Scalable• sharding• replica sets• Performant• Fully featured• indexes• queries• map/reduce• gridfs• geospatial functions• capped collections• journaling
8Monday, December 5, 11
![Page 9: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/9.jpg)
It looks like an interesting compromise between performance, scalability and number of functionalities
Introducing MongoDB
9Monday, December 5, 11
![Page 10: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/10.jpg)
Oh noes! Philosophy again!
Flexibility Power
Ease of useSpeed/Scaling
JSON documents provide a schema-less, rich data model that maps to native programming language types
A consistent set of RDBMS features implemented such as secondary indexes, dynamic queries, sorting, upserts, aggregation plus his own ones such as gridfs and map/reduce
Embedded documents help avoiding heavy joins, while auto sharding makes quick and easy to scale out the database
Installing, configuring, maintaining and using MongoDB are all kept as easy as possible: more time for your app, less for your server configuration
10Monday, December 5, 11
![Page 11: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/11.jpg)
Ok then.. tell us about Drupal!mongodb - support library for the other modules
mongodb_block - stores block information
mongodb_cache - stores cache
mongodb_field_storage - stores fields
mongodb_session - stores sessions
mongodb_queue - DrupalQueueInterface implementation
mongodb_watchdog - store watchdog messages
search_api_mongodb - backend storage mechanism for Search API
11Monday, December 5, 11
![Page 12: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/12.jpg)
Time for a demo!
12Monday, December 5, 11
![Page 13: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/13.jpg)
Stuff & references
https://github.com/omissis/Drupal-MongoDB-Playhouse
http://mongodb.org
http://drupal.org/project/mongodb
http://drupalwatchdog.com/1/1/performance-scalability-drupal-7
http://groups.drupal.org/node/183279
http://en.wikipedia.org/wiki/Entity-relationship_model
13Monday, December 5, 11
![Page 14: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/14.jpg)
http://sf2010.drupal.org/conference/sessions/mongodb-humongous-drupal.html
http://www.archive.org/details/Mongodb-HumongousDrupal_491
http://www.archive.org/details/drupalconchi_day3_practical_mongo_db
Sessions from past Drupalcons
San Francisco 2010
Copenhagen 2010
Chicago 2011
14Monday, December 5, 11
![Page 15: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/15.jpg)
The Next Big Drupal Things
Drupal Dev Days 2012Barcelona - June 15-17
Drupalcon EU 2012Munich - August 20-23
15Monday, December 5, 11
![Page 16: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/16.jpg)
Claudio Beatrice
http://twitter.com/#!/omissis
http://agavee.com
http://associazione.drupalitalia.org
16Monday, December 5, 11
![Page 17: Drupal and the rise of the documents](https://reader033.vdocuments.us/reader033/viewer/2022060107/554cb4c7b4c905335b8b4e52/html5/thumbnails/17.jpg)
17Monday, December 5, 11