SlideShare una empresa de Scribd logo
1 de 13
Descargar para leer sin conexión
MongoDB
                 The fast (don’t think about this like an
                 RDBMS) database alternative.
Wednesday, August 24, 2011
THE ROAD TO MONGODB
   PROJECT




                 RDBMS + ORM
                 BUSINESS LOGIC   DOMAIN MODEL
Wednesday, August 24, 2011
Object Database

                  Attempted to accommodate the OO languages
                  they were meant to support

                        Inheritance, associations, etc.

                  THEY FAILED

                        Too slow, too complicated, doomed!




Wednesday, August 24, 2011
The Google Problem
                  Relational databases are slow and don’t scale well

                        Distribution

                        Replication

                        ACID compliance

                        Vendor lock in

                  Atypical domain model didn’t require ACID
                  transactions

Wednesday, August 24, 2011
The Google Solution
                  Big Table

                        http://labs.google.com/papers/bigtable.html

                             email the authors, they’re great!

                        Petabytes of data across thousands of
                        commodity servers

                        Data separate from logic



Wednesday, August 24, 2011
JSON & BSON
                  Clear, concise and very AJAX friendly

                  Flexible and nestable (you can nest documents)

                  Ubiquitous language support




Wednesday, August 24, 2011
JSON & BSON cont.

                  BSON <> JSON translation can be awkward when
                  dealing with language specific data types

                        Dates, _id fields, etc.

                  Well suited to text/numeric data, not much else




Wednesday, August 24, 2011
Common pitfalls

                  How to create a view or join

                  Enforce data integrity

                  Define data structure

                        Document vs. Table(s)




Wednesday, August 24, 2011
Normalization
                  RDBMS Normalization is intended to...

                        Reduce complexity

                        Discourage duplication of code/data

                        Provide logical mappings for domain elements

                  In mongodb, the document tells the whole story,
                  including a definition of the data



Wednesday, August 24, 2011
Maturity Issues

                  No log file rolling mechanism

                  Awkward tools and querying

                        Accustomed to tabular data (try .pretty())

                        Very little (if any) feedback regarding outcome of
                        commands




Wednesday, August 24, 2011
Queues
                  Many steps, each in it’s
                  own collection

                  Keep high volume
                  collections small & fast

                  Maintain large amounts
                  of statistical data in
                  low volume collections



Wednesday, August 24, 2011
Ready for Business?
                  Business logic must
                  exist in code (including
                  querying data)

                  Transaction boundaries
                  and concurrency must
                  exist in code

                  Speed and reliability
                  are a go (so far :)


Wednesday, August 24, 2011
Questions?



Wednesday, August 24, 2011

Más contenido relacionado

Similar a Mongodb

Time Series Data Storage in MongoDB
Time Series Data Storage in MongoDBTime Series Data Storage in MongoDB
Time Series Data Storage in MongoDBsky_jackson
 
Semantic Web: Technolgies and Applications for Real-World
Semantic Web: Technolgies and Applications for Real-WorldSemantic Web: Technolgies and Applications for Real-World
Semantic Web: Technolgies and Applications for Real-WorldAmit Sheth
 
Entity and NHibernate ORM Frameworks Compared
Entity and NHibernate ORM Frameworks ComparedEntity and NHibernate ORM Frameworks Compared
Entity and NHibernate ORM Frameworks ComparedZoltan Iszlai
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data baseHaqnawaz Ch
 
Migrating Social Content to Drupal
Migrating Social Content to DrupalMigrating Social Content to Drupal
Migrating Social Content to DrupalAcquia
 
Big Data 2107 for Ribbon
Big Data 2107 for RibbonBig Data 2107 for Ribbon
Big Data 2107 for RibbonSamuel Dratwa
 
Silicon valley nosql meetup april 2012
Silicon valley nosql meetup  april 2012Silicon valley nosql meetup  april 2012
Silicon valley nosql meetup april 2012InfiniteGraph
 
ADBMS Object and Object Relational Databases
ADBMS  Object  and Object Relational Databases ADBMS  Object  and Object Relational Databases
ADBMS Object and Object Relational Databases Jayanthi Kannan MK
 
Implementing Shareable Metadata Practices in a Diverse University Environment
Implementing Shareable Metadata Practices in a Diverse University EnvironmentImplementing Shareable Metadata Practices in a Diverse University Environment
Implementing Shareable Metadata Practices in a Diverse University EnvironmentJenn Riley
 
One Size Doesn't Fit All: The New Database Revolution
One Size Doesn't Fit All: The New Database RevolutionOne Size Doesn't Fit All: The New Database Revolution
One Size Doesn't Fit All: The New Database Revolutionmark madsen
 
Cloudb @ FOSDEM 2011
Cloudb @ FOSDEM 2011Cloudb @ FOSDEM 2011
Cloudb @ FOSDEM 2011tsutomi
 
MLUC 2011 XQuery Enigma
MLUC 2011 XQuery EnigmaMLUC 2011 XQuery Enigma
MLUC 2011 XQuery EnigmaPeter O'Kelly
 
The return of big iron?
The return of big iron?The return of big iron?
The return of big iron?Ben Stopford
 
Pragmatic Approaches to the Semantic Web
Pragmatic Approaches to the Semantic WebPragmatic Approaches to the Semantic Web
Pragmatic Approaches to the Semantic WebMike Bergman
 
SemTechBiz 2012 Panel on Linking Enterprise Data
SemTechBiz 2012 Panel on Linking Enterprise DataSemTechBiz 2012 Panel on Linking Enterprise Data
SemTechBiz 2012 Panel on Linking Enterprise Data3 Round Stones
 
Introduction to nosql
Introduction to nosqlIntroduction to nosql
Introduction to nosqlZuhaib Ansari
 

Similar a Mongodb (20)

Big Data NoSQL 1017
Big Data NoSQL 1017Big Data NoSQL 1017
Big Data NoSQL 1017
 
Cdao Evolution08
Cdao Evolution08Cdao Evolution08
Cdao Evolution08
 
Time Series Data Storage in MongoDB
Time Series Data Storage in MongoDBTime Series Data Storage in MongoDB
Time Series Data Storage in MongoDB
 
Semantic Web: Technolgies and Applications for Real-World
Semantic Web: Technolgies and Applications for Real-WorldSemantic Web: Technolgies and Applications for Real-World
Semantic Web: Technolgies and Applications for Real-World
 
Entity and NHibernate ORM Frameworks Compared
Entity and NHibernate ORM Frameworks ComparedEntity and NHibernate ORM Frameworks Compared
Entity and NHibernate ORM Frameworks Compared
 
Heterogenous data base
Heterogenous data baseHeterogenous data base
Heterogenous data base
 
Migrating Social Content to Drupal
Migrating Social Content to DrupalMigrating Social Content to Drupal
Migrating Social Content to Drupal
 
Big Data 2107 for Ribbon
Big Data 2107 for RibbonBig Data 2107 for Ribbon
Big Data 2107 for Ribbon
 
NOSQL
NOSQLNOSQL
NOSQL
 
Silicon valley nosql meetup april 2012
Silicon valley nosql meetup  april 2012Silicon valley nosql meetup  april 2012
Silicon valley nosql meetup april 2012
 
ADBMS Object and Object Relational Databases
ADBMS  Object  and Object Relational Databases ADBMS  Object  and Object Relational Databases
ADBMS Object and Object Relational Databases
 
Implementing Shareable Metadata Practices in a Diverse University Environment
Implementing Shareable Metadata Practices in a Diverse University EnvironmentImplementing Shareable Metadata Practices in a Diverse University Environment
Implementing Shareable Metadata Practices in a Diverse University Environment
 
One Size Doesn't Fit All: The New Database Revolution
One Size Doesn't Fit All: The New Database RevolutionOne Size Doesn't Fit All: The New Database Revolution
One Size Doesn't Fit All: The New Database Revolution
 
Cloudb @ FOSDEM 2011
Cloudb @ FOSDEM 2011Cloudb @ FOSDEM 2011
Cloudb @ FOSDEM 2011
 
MLUC 2011 XQuery Enigma
MLUC 2011 XQuery EnigmaMLUC 2011 XQuery Enigma
MLUC 2011 XQuery Enigma
 
The return of big iron?
The return of big iron?The return of big iron?
The return of big iron?
 
Pragmatic Approaches to the Semantic Web
Pragmatic Approaches to the Semantic WebPragmatic Approaches to the Semantic Web
Pragmatic Approaches to the Semantic Web
 
Unit-10.pptx
Unit-10.pptxUnit-10.pptx
Unit-10.pptx
 
SemTechBiz 2012 Panel on Linking Enterprise Data
SemTechBiz 2012 Panel on Linking Enterprise DataSemTechBiz 2012 Panel on Linking Enterprise Data
SemTechBiz 2012 Panel on Linking Enterprise Data
 
Introduction to nosql
Introduction to nosqlIntroduction to nosql
Introduction to nosql
 

Último

KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...Cara Menggugurkan Kandungan 087776558899
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterssuserdfec6a
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptxumef01177
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationbrynpueblos04
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theorydrae5
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfaprilross605
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...mitaliverma221
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxStephenMino
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfMindful Wellness Journey
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing YogaRaphaël Semeteys
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterssuserdfec6a
 

Último (15)

KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
KLINIK BATA Jual obat penggugur kandungan 087776558899 ABORSI JANIN KEHAMILAN...
 
March 2023 Recommendations for newsletter
March 2023 Recommendations for newsletterMarch 2023 Recommendations for newsletter
March 2023 Recommendations for newsletter
 
Social Learning Theory presentation.pptx
Social Learning Theory presentation.pptxSocial Learning Theory presentation.pptx
Social Learning Theory presentation.pptx
 
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsGoregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Goregaon West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7Girls in Mahipalpur  (delhi) call me [🔝9953056974🔝] escort service 24X7
Girls in Mahipalpur (delhi) call me [🔝9953056974🔝] escort service 24X7
 
the Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentationthe Husband rolesBrown Aesthetic Cute Group Project Presentation
the Husband rolesBrown Aesthetic Cute Group Project Presentation
 
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy TheoryPokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
 
Emotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdfEmotional Freedom Technique Tapping Points Diagram.pdf
Emotional Freedom Technique Tapping Points Diagram.pdf
 
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsDadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Dadar West Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
Call Girls In Mumbai Just Genuine Call ☎ 7738596112✅ Call Girl Andheri East G...
 
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot GirlsColaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
Colaba Escorts 🥰 8617370543 Call Girls Offer VIP Hot Girls
 
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptxSIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
SIKP311 Sikolohiyang Pilipino - Ginhawa.pptx
 
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdfExploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
Exploring Stoic Philosophy From Ancient Wisdom to Modern Relevance.pdf
 
2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga2023 - Between Philosophy and Practice: Introducing Yoga
2023 - Between Philosophy and Practice: Introducing Yoga
 
February 2024 Recommendations for newsletter
February 2024 Recommendations for newsletterFebruary 2024 Recommendations for newsletter
February 2024 Recommendations for newsletter
 

Mongodb

  • 1. MongoDB The fast (don’t think about this like an RDBMS) database alternative. Wednesday, August 24, 2011
  • 2. THE ROAD TO MONGODB PROJECT RDBMS + ORM BUSINESS LOGIC DOMAIN MODEL Wednesday, August 24, 2011
  • 3. Object Database Attempted to accommodate the OO languages they were meant to support Inheritance, associations, etc. THEY FAILED Too slow, too complicated, doomed! Wednesday, August 24, 2011
  • 4. The Google Problem Relational databases are slow and don’t scale well Distribution Replication ACID compliance Vendor lock in Atypical domain model didn’t require ACID transactions Wednesday, August 24, 2011
  • 5. The Google Solution Big Table http://labs.google.com/papers/bigtable.html email the authors, they’re great! Petabytes of data across thousands of commodity servers Data separate from logic Wednesday, August 24, 2011
  • 6. JSON & BSON Clear, concise and very AJAX friendly Flexible and nestable (you can nest documents) Ubiquitous language support Wednesday, August 24, 2011
  • 7. JSON & BSON cont. BSON <> JSON translation can be awkward when dealing with language specific data types Dates, _id fields, etc. Well suited to text/numeric data, not much else Wednesday, August 24, 2011
  • 8. Common pitfalls How to create a view or join Enforce data integrity Define data structure Document vs. Table(s) Wednesday, August 24, 2011
  • 9. Normalization RDBMS Normalization is intended to... Reduce complexity Discourage duplication of code/data Provide logical mappings for domain elements In mongodb, the document tells the whole story, including a definition of the data Wednesday, August 24, 2011
  • 10. Maturity Issues No log file rolling mechanism Awkward tools and querying Accustomed to tabular data (try .pretty()) Very little (if any) feedback regarding outcome of commands Wednesday, August 24, 2011
  • 11. Queues Many steps, each in it’s own collection Keep high volume collections small & fast Maintain large amounts of statistical data in low volume collections Wednesday, August 24, 2011
  • 12. Ready for Business? Business logic must exist in code (including querying data) Transaction boundaries and concurrency must exist in code Speed and reliability are a go (so far :) Wednesday, August 24, 2011