Basic Data Choreography
(Modeling) in MongoDB! Part
              1
       A first-munch by
                VulcanMinds
By the Way…What is a Data
         Model?
Data Modeling with NOSQL
Relational Data
  Modeling        NoSQL Data Modeling
Schema Design Principles
 Mongo supports ACID at a document level only.
 Schema should be driven by the data entities and usage
patterns ( use cases or query patterns)
 Embed everything Vs No-Embed ( atomic like an RDBMS)
is a well thought-out tradeoff!
 Application-side /runtime joins Vs design-time joins…
Mongo is happier with design-time joins. ‘Frequent updates
to entities’ is a good symptom to move it to separate
independent entities.
 Design such a way to easily lend itself to map-reduce.
BTW will your business process need to map-reduce?
 Schema design also affects the clustering of MongoDB
instances with shard key choices and run-time query and
I/O performance metrics ( more about replica sets and
An example document design for a
        corporate HRMS entities
                              Entities – Employee, Address, Role, Project …..



Employee Master      Projects Master            Employee {
                                                        address: {[
                           Role Master                            …….
Emp-Projects                                                      ]},
                                                        role: {
                Emp-Role
                                                                  r_id: xxxx,
                                                                  …….
                           Addresses Master                       },

                                                         project: { [ prj-id:yyyy,
Employee-Addresses                                                   …….
                                                                     ]}
                                                         }
                                                         ……
                                                }

               RDBMS World                                  Mongo DB World
Pros and Cons
Relational Data
  Modeling        NoSQL Data Modeling
Coming soon in Part 2!
• More complete examples and techniques
  for
  – design, migration, performance –tuning and
    map-reduce!

  Till then ….. See you! 

More Related Content

PPTX
Tupple ware in scala
PPTX
Proyecto de aula q
PDF
PPTX
Dig up the gold in your godowns
PPTX
Munching the mongo
PPTX
Eindpresentatie Freek Kusters
PDF
Mongo db 2.6_security_architecture
PDF
Object Relational Database Project
Tupple ware in scala
Proyecto de aula q
Dig up the gold in your godowns
Munching the mongo
Eindpresentatie Freek Kusters
Mongo db 2.6_security_architecture
Object Relational Database Project

Similar to Data choreography in mongo (20)

PDF
Mydb 2010 - AbhijeetKalsi
PDF
Introduction to NoSQL and Couchbase
PDF
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
PDF
Transition from relational to NoSQL Philly DAMA Day
PDF
Go simple-fast-elastic-with-couchbase-server-borkar
PDF
Database Modeling
PDF
Nuxeo Corporate Presentation - April 2007
PDF
Nuxeo Summer Seminar 2007 - Nuxeo Platform 5.1 (EN)
PDF
Learning to run
PDF
"Nuxeo 5 a Complete Open Source ECM Solution" by Andreea Stefanescu @ eLibera...
PPTX
Sudhakar
PPTX
Cognos Framework Manager
PDF
Flash Camp Chennai - Social network with ORM
PDF
Microsoft SQL Server - How to Collaboratively Manage Excel Data
PPTX
Data Access Tech Ed India
PDF
Why modeling matters ?
PDF
Sql server common interview questions and answers page 6
KEY
Introduction data structure for GraphDB
PPT
Real-world Entity Framework
PDF
SAP Power Designer
Mydb 2010 - AbhijeetKalsi
Introduction to NoSQL and Couchbase
Navigating the Transition from relational to NoSQL - CloudCon Expo 2012
Transition from relational to NoSQL Philly DAMA Day
Go simple-fast-elastic-with-couchbase-server-borkar
Database Modeling
Nuxeo Corporate Presentation - April 2007
Nuxeo Summer Seminar 2007 - Nuxeo Platform 5.1 (EN)
Learning to run
"Nuxeo 5 a Complete Open Source ECM Solution" by Andreea Stefanescu @ eLibera...
Sudhakar
Cognos Framework Manager
Flash Camp Chennai - Social network with ORM
Microsoft SQL Server - How to Collaboratively Manage Excel Data
Data Access Tech Ed India
Why modeling matters ?
Sql server common interview questions and answers page 6
Introduction data structure for GraphDB
Real-world Entity Framework
SAP Power Designer
Ad

Recently uploaded (20)

PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Five Habits of High-Impact Board Members
PDF
STKI Israel Market Study 2025 version august
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPTX
Modernising the Digital Integration Hub
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
The influence of sentiment analysis in enhancing early warning system model f...
DOCX
search engine optimization ppt fir known well about this
PDF
Architecture types and enterprise applications.pdf
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
CloudStack 4.21: First Look Webinar slides
Chapter 5: Probability Theory and Statistics
Custom Battery Pack Design Considerations for Performance and Safety
Developing a website for English-speaking practice to English as a foreign la...
1 - Historical Antecedents, Social Consideration.pdf
Five Habits of High-Impact Board Members
STKI Israel Market Study 2025 version august
Consumable AI The What, Why & How for Small Teams.pdf
Modernising the Digital Integration Hub
Flame analysis and combustion estimation using large language and vision assi...
sbt 2.0: go big (Scala Days 2025 edition)
Hindi spoken digit analysis for native and non-native speakers
A review of recent deep learning applications in wood surface defect identifi...
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
Zenith AI: Advanced Artificial Intelligence
Microsoft Excel 365/2024 Beginner's training
The influence of sentiment analysis in enhancing early warning system model f...
search engine optimization ppt fir known well about this
Architecture types and enterprise applications.pdf
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
CloudStack 4.21: First Look Webinar slides
Ad

Data choreography in mongo

  • 1. Basic Data Choreography (Modeling) in MongoDB! Part 1 A first-munch by VulcanMinds
  • 2. By the Way…What is a Data Model?
  • 3. Data Modeling with NOSQL Relational Data Modeling NoSQL Data Modeling
  • 4. Schema Design Principles  Mongo supports ACID at a document level only.  Schema should be driven by the data entities and usage patterns ( use cases or query patterns)  Embed everything Vs No-Embed ( atomic like an RDBMS) is a well thought-out tradeoff!  Application-side /runtime joins Vs design-time joins… Mongo is happier with design-time joins. ‘Frequent updates to entities’ is a good symptom to move it to separate independent entities.  Design such a way to easily lend itself to map-reduce. BTW will your business process need to map-reduce?  Schema design also affects the clustering of MongoDB instances with shard key choices and run-time query and I/O performance metrics ( more about replica sets and
  • 5. An example document design for a corporate HRMS entities Entities – Employee, Address, Role, Project ….. Employee Master Projects Master Employee { address: {[ Role Master ……. Emp-Projects ]}, role: { Emp-Role r_id: xxxx, ……. Addresses Master }, project: { [ prj-id:yyyy, Employee-Addresses ……. ]} } …… } RDBMS World Mongo DB World
  • 6. Pros and Cons Relational Data Modeling NoSQL Data Modeling
  • 7. Coming soon in Part 2! • More complete examples and techniques for – design, migration, performance –tuning and map-reduce! Till then ….. See you! 