SlideShare a Scribd company logo
MongoDB

Open Source document database
   Often refered to as NoSQL
JSON style Documents
{name: ‘stephen ward’,
 gender:’male’ ,
 dob:’Nov. 12 ,1958’ ,
 maritalStatus: ‘married’
}
Or Compound Doc
{name: ‘stephen ward’,
 gender:’male’ ,
 dob:’Nov. 12 ,1958’ ,
 maritalStatus: ‘married’,
skills:{mongoDB:’true’, javascript:’true’,SQL:’true
’,COBOL:’false’}
}
UM what was that
Yes if your a SQL DBA you just said Woooo
Because you would have had to create a
separate table called skills and do a JOIN .
MongoDB does not have joins.
So how you think of your SCHEMA will be
completely different.
Simple ?
What took place
• There was no database named bigroup if
  there was then if would have switched to it. If
  there wasn’t if would still have said switched ,
  but it would just create a new db of that name
• Therefore be carefull 
• Using the shell I can do some javascript like
  calls.
How about a little update
The update
• You’ll notice if I dont have an _id object then
  mongo makes the unique index for me.
• Save will insert if no unique index found or
  update if a unique index is found.
Add a sub-doc
Return partial
• Only want a subset of the collection
Like
OK lets have a little fun
• Node.js
• Express
• Mongojs

More Related Content

Viewers also liked

MSc ESS GSandP-1
MSc ESS GSandP-1MSc ESS GSandP-1
MSc ESS GSandP-1
Sarah Cornell
 
T c
T  cT  c
Ecosystem services - the Climbeco critique
Ecosystem services - the Climbeco critiqueEcosystem services - the Climbeco critique
Ecosystem services - the Climbeco critique
Sarah Cornell
 
Can Quiet Brands Be Heard
Can Quiet Brands Be HeardCan Quiet Brands Be Heard
Can Quiet Brands Be Heard
abbyaker
 
Bliss
BlissBliss
Ranjith kumaran: Leveraging Game Data
Ranjith kumaran: Leveraging Game DataRanjith kumaran: Leveraging Game Data
Ranjith kumaran: Leveraging Game Data
Chiku Somaiya
 
Cornell Trieste CLEWS modelling October 2013
Cornell Trieste CLEWS modelling October 2013Cornell Trieste CLEWS modelling October 2013
Cornell Trieste CLEWS modelling October 2013
Sarah Cornell
 
continuous delivery at SAP IT for devopscon Israel
continuous delivery at SAP IT for devopscon Israelcontinuous delivery at SAP IT for devopscon Israel
continuous delivery at SAP IT for devopscon Israel
Alon Aizenberg
 
Egu2015 cornell don pico
Egu2015 cornell don picoEgu2015 cornell don pico
Egu2015 cornell don pico
Sarah Cornell
 
Solar powered automatic street light controller report
Solar powered automatic street light controller reportSolar powered automatic street light controller report
Solar powered automatic street light controller report
Amar Gupta
 
Dental health pentru_angajati
Dental health pentru_angajatiDental health pentru_angajati
Dental health pentru_angajati
StomatologieDH
 

Viewers also liked (11)

MSc ESS GSandP-1
MSc ESS GSandP-1MSc ESS GSandP-1
MSc ESS GSandP-1
 
T c
T  cT  c
T c
 
Ecosystem services - the Climbeco critique
Ecosystem services - the Climbeco critiqueEcosystem services - the Climbeco critique
Ecosystem services - the Climbeco critique
 
Can Quiet Brands Be Heard
Can Quiet Brands Be HeardCan Quiet Brands Be Heard
Can Quiet Brands Be Heard
 
Bliss
BlissBliss
Bliss
 
Ranjith kumaran: Leveraging Game Data
Ranjith kumaran: Leveraging Game DataRanjith kumaran: Leveraging Game Data
Ranjith kumaran: Leveraging Game Data
 
Cornell Trieste CLEWS modelling October 2013
Cornell Trieste CLEWS modelling October 2013Cornell Trieste CLEWS modelling October 2013
Cornell Trieste CLEWS modelling October 2013
 
continuous delivery at SAP IT for devopscon Israel
continuous delivery at SAP IT for devopscon Israelcontinuous delivery at SAP IT for devopscon Israel
continuous delivery at SAP IT for devopscon Israel
 
Egu2015 cornell don pico
Egu2015 cornell don picoEgu2015 cornell don pico
Egu2015 cornell don pico
 
Solar powered automatic street light controller report
Solar powered automatic street light controller reportSolar powered automatic street light controller report
Solar powered automatic street light controller report
 
Dental health pentru_angajati
Dental health pentru_angajatiDental health pentru_angajati
Dental health pentru_angajati
 

Bi presentation

  • 1. MongoDB Open Source document database Often refered to as NoSQL
  • 2. JSON style Documents {name: ‘stephen ward’, gender:’male’ , dob:’Nov. 12 ,1958’ , maritalStatus: ‘married’ }
  • 3. Or Compound Doc {name: ‘stephen ward’, gender:’male’ , dob:’Nov. 12 ,1958’ , maritalStatus: ‘married’, skills:{mongoDB:’true’, javascript:’true’,SQL:’true ’,COBOL:’false’} }
  • 4. UM what was that Yes if your a SQL DBA you just said Woooo Because you would have had to create a separate table called skills and do a JOIN . MongoDB does not have joins. So how you think of your SCHEMA will be completely different.
  • 6. What took place • There was no database named bigroup if there was then if would have switched to it. If there wasn’t if would still have said switched , but it would just create a new db of that name • Therefore be carefull  • Using the shell I can do some javascript like calls.
  • 7. How about a little update
  • 8. The update • You’ll notice if I dont have an _id object then mongo makes the unique index for me. • Save will insert if no unique index found or update if a unique index is found.
  • 10. Return partial • Only want a subset of the collection
  • 11. Like
  • 12. OK lets have a little fun • Node.js • Express • Mongojs