Drupal Day 2011 - Drupal and the rise of the documents

17
Drupal and the rise of the Documents Claudio Beatrice (@omissis)

description

Talk di Claudio Beatrice | Drupal Day Roma 2011 Sono passati quasi tre anni da quando il termine 'NoSQL' è stato coniato, contribuendo a formare nell'immaginario di sviluppatori e appassionati un gruppo definito di tecnologie che, allontanandosi dal vecchio e consolidato modello relazione, hanno dato il via all'esplorazione di nuove soluzioni e permesso la formulazione di nuove risposte volte a soddisfare le esigenze del mercato di oggi, che come tutti sappiamo è molto legato al web ed alla scalabilità. Assieme a CouchDB, Redis e molti altri ancora, MongoDB fa anch'esso parte di questa ormai nutrita schiera, trattandosi di un "database orientato al documento". Nella sessione verranno dunque presentati i suoi principali punti di forza e debolezza, assieme alle metodologie da utilizzare per integrarlo con Drupal.

Transcript of Drupal Day 2011 - Drupal and the rise of the documents

Page 1: Drupal Day 2011 - Drupal and the rise of the documents

Drupal and the rise of the Documents

Claudio Beatrice (@omissis)

Page 2: Drupal Day 2011 - Drupal and the rise of the documents

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.

Page 3: Drupal Day 2011 - Drupal and the rise of the documents

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.

Page 4: Drupal Day 2011 - Drupal and the rise of the documents

Who did just say “yeah but whattabout relationships...

A relationship captures how two or more entities are related to one another.

Page 5: Drupal Day 2011 - Drupal and the rise of the documents

... and tables?”

Page 6: Drupal Day 2011 - Drupal and the rise of the documents

and btw, a question:

Awesome! Count to 3 and go asking mr. Boyce and mr. Codd then

Page 7: Drupal Day 2011 - Drupal and the rise of the documents

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!

Page 8: Drupal Day 2011 - Drupal and the rise of the documents

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

Page 9: Drupal Day 2011 - Drupal and the rise of the documents

It looks like an interesting compromise between performance, scalability and number of functionalities

Introducing MongoDB

Page 10: Drupal Day 2011 - Drupal and the rise of the documents

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

Page 11: Drupal Day 2011 - Drupal and the rise of the documents

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

Page 12: Drupal Day 2011 - Drupal and the rise of the documents

Time for a demo!

Page 15: Drupal Day 2011 - Drupal and the rise of the documents

The Next Big Drupal Things

Drupal Dev Days 2012Barcelona - June 15-17

Drupalcon EU 2012Munich - August 20-23

Page 16: Drupal Day 2011 - Drupal and the rise of the documents

Claudio Beatrice

http://twitter.com/#!/omissis

http://agavee.com

http://associazione.drupalitalia.org

Page 17: Drupal Day 2011 - Drupal and the rise of the documents