SlideShare a Scribd company logo
+

    1
I am Sanjeev   Shrestha
               @sanjeevshrestha




                                  2
In these slides...
         NoSQL
           TYPES
     MongoDB
      INSTALLATION
PHP & MongoDB

                           3
Intended Audience

BEGINNERS



                      4
Challenges with   RDBMS
Assumes
WELL DEFINED data structure
data is DENSE and largely UNIFORM
PROPERTIES of data can be defined upfront
INTERRELATIONSHIP are well ESTABLISHED & SYSTEMATIC
INDEXES can be CONSISTENTLY DEFINED
May SNAP when data grows enormously


                                             But ...
                              that may not be TRUE

                                                       5
DATA is


                   Unstructured
               Does not make sense

         OW
DATA is GR    IN   G   at high   speed



                                         6
NoSQL?

No Rel / No SQL / Not Only SQL / NoSQL
                  Non RELATIONAL
          DISTRIBUTED DATASTORES
                   May NOT provide   ACID
            Not a Single Product or Technology
     Data Storage and Manipulation



                                                 7
NoSQL Storage Types

DOCUMENT STORE
               GRAPH
KEY-VALUE STORE
           TABULAR
        multivalue database
            object database
                rdf database
                  tuple store


                                8
9
MongoDB

 High PERFORMANCE
     CONSISTENT
  Fully
HORIZONTALLY scalable
  DOUMENT Oriented



                           10
Best Features of KEY-VALUE stores,
DOCUMENT database & RELATIONAL
              databases




                                       11
Why so   POPULAR?

                         EASY to USE
                       SIMPLER concepts
           EASY on ramp for NoSQL
Many DEV/OPERATIONAL things come inbuilt
        More AGILE than RDBMS
Less UPFRONT DESIGN needed than RDBMS
 SCALABLE schema and storage

                                           12
Built for   SPEED


      Built for SPEED (written in C++)
          Data serialized to BSON
Extensive use of MEMORY MAPPED Files
  PADS DISK SPACE around document




                                               13
Why   MongoDB?
HIGH AVAILABILITY
  JOURNALING
 REPLICATION
  SHARDING
  INDEXING
AGGREGATION
 MAP/REDUCE
                             14
Negatives of   MONGODB



         INDEXES are not flexible
REALTIME QUERIES may not be as fast as others
   Good enough only if queries are SIMPLE
       Not as MATURED as RDBMS




                                                15
16
MONGODB seems to be the leader. CASSANDRA stands close second.



                                                                 17
RDBMS VS MONGODB
STRUCTURE


RDBMS           MONGODB
DATABASE        DATABASE
TABLES          COLLECTIONS
COLUMNS         DOCUMENTS
ROWS            FIELDS




                               18
RDBMS VS MONGODB


RDBMS               MONGODB
STORED PROCEDURES   STORED JAVASCRIPT
DATABASE SCHEMA     SCHEMA FREE
SUPPORTS JOINS      NO JOINS




                                        19
Relational normalized   DATA




                               20
Document Database normalized   DATA




                                      21
MySQL to MongoDB

MySQL Term    MongoDB Term
Database      Database
Tables        Collection
Rows          BSON Document
Column        BSON Fields
Index         Index
Join          Embedding and Linking
Primary Key   _id field
Group by      Aggregation




                                      22
SQL to MONGO


SQL Statements                      Mongo Statements
CREATE DATABASE sqltest             use mongotest
USE sqltest                         implicit
CREATE TABLE table1 (a Number, b    db.createCollection('coll1');
Number)
ALTER TABLE table1 add …            implicit
INSERT INTO table1 values(100,22)   db.coll1.insert({'a':'100,'b':22});




                                                                          23
SQL to MONGO
SQL Statements                              Mongo Statements
SELECT * from table1                        db.coll1.find();
SELECT * from table1 where a=33             db.coll1.find({a:33});
SELECT a,b from table1 where a =44          db.coll1.find({a:44},{a:1,b:1});
SELECT * from table1 where b like '%abc%'   db.coll1.find({b:/abc/});
SELECT * from table1 where b like 'abc%'    db.coll1.find({b:/^abc/});
SELECT * from table1 where a>50             db.coll1.find({a:{$gt:50}});
SELECT * from table1 where a <40            db.coll1.find({a:{$lt:40}});
SELECT * from table1 where a<=40            db.coll1.find({a:{$lte:40}});
SELECT * from table1 where a =33 order by   db.coll1.find({a:33}).sort({name:1})
name
SELECT * from table1 where a=33 order by    db.coll1.find({a:33}).sort({name:-1})
name DESC
SELECT * from table1 LIMIT 1                db.coll1.findOne();

                                                                                    24
SQL to MONGO
SQL Statements                                 Mongo Statements
SELECT * from table1 where a=33 and b=100 db.coll1.find({a:33,b:100});

SELECT * from table1 LIMIT 100                 db.coll1.find().limit(100);
SELECT * from table1 where a =33 or a=45 or db.coll1.find({$or:[{a:33},{a:45},{a:50}]})
a=50
SELECT DISTINCT a from table1                  db.coll1.distinct('a');
SELECT count(*) from table1                    db.coll1.count();
SELECT count(*) from table1 where a=33         db.coll1.find({a:33}).count();
CREATE INDEX myindexname ON table1(a)          db.coll1.ensureIndex({a:1})
UPDATE table1 set a=44 where b=100             db.coll1.update({b:100},{$set:
                                               {a:44}},false,true);
DELETE from table1 where a=44                  db.coll1.remove({a:44});



                                                                                          25
INSTALLATION



          It is DEAD SIMPLE

           Refer to the following link
http://www.mongodb.org/display/DOCS/Quickstart/




                                                  26
Get started with   MongoDB

MONGO SHELL
$ mongo




                                       27
Listing   DATABASES
show dbs;




                                  28
Creating   DATABASE
use databasename
but DB is not created
DB is created only when you
create a collection




                                                    29
Creating a   COLLECTION
db.createCollection('articles')
No Definition required




                                                       30
Listing   COLLECTIONS
show collections




                                           31
Inserting       DOCUMENT
db.collection.insert(<json formatted data>);
e.g.
db.articles.insert({title:'This is test article',slug:'this-is-test-article',text:'This is test article
and it does not contain anything',count:10});




                                                                                                          32
Listing   DOCUMENTS
db.collection.find()




                                             33
Updating        DOCUMENTS
db.collection.update( criteria, objNew, upsert, multi )
Upsert = update data if exists, insert as new data if not
Multi = make multiple updates matching criteria
e.g.
 db.articles.update({count:20},{$set:{title:'This is second article',slug:'this-is-second-
art'}},true,false)




                                                                                             34
creating   INDEX
db.collection.ensureIndex(index);
eg.
db.articles.ensureIndex({title:1})




                                                        35
MONGODB-PHP   EXTENSION



     Available from PECL
shell> pecl install mongo




                                 36
Loading   MONGO EXTENSION in PHP




Add   extension=mongo.so to php.ini
Or any other file like mongo.ini but make sure it is loaded by php




                                                                     37
Is it   LOADED?
Check PHP information




                                          38
Creating a   CONNECTION




                          39
Selecting   DB & COLLECTION




                              40
Listing from a   COLLECTION




                              41
Adding   DOCUMENT




                    42
43
Updating a   DOCUMENT




                        44
45
Deleting a   DOCUMENT




                        46
Working with multiple   COLLECTIONS


         no JOINS
 Instead REFs are used
       TWO Types
MANUAL / DBREFs


                                      47
Manual   REFs




                48
DBREFs




         49
Listing Data from multiple   COLLECTION




                                          50
What   NEXT?

GRIDFS
MAP/REDUCE
MONGOCODE {stored javascript}
AGGREGATION
SHARDING
REPLICAS
                                               51
REFERENCES


http://php.net/mongo/
http://www.mongodb.org/display/DOCS/PHP+Language+Center




                                                          52
THANK YOU
     &

HAPPY CODING




               53

More Related Content

What's hot (20)

PDF
Mysql
Chris Henry
 
ODP
Introduction to Redis
Knoldus Inc.
 
PDF
Introduction to Redis
Dvir Volk
 
PDF
JSOP in 60 seconds
David Nuescheler
 
PDF
Mongodb replication
PoguttuezhiniVP
 
PPT
Oracle12c Pluggable Database Hands On - TROUG 2014
Özgür Umut Vurgun
 
PDF
GOTO 2013: Why Zalando trusts in PostgreSQL
Henning Jacobs
 
PDF
9.4json
Andrew Dunstan
 
PPT
15 Ways to Kill Your Mysql Application Performance
guest9912e5
 
PDF
Fluentd and WebHDFS
SATOSHI TAGOMORI
 
PPT
A brief introduction to PostgreSQL
Vu Hung Nguyen
 
KEY
PostgreSQL
Reuven Lerner
 
PPTX
My sql administration
Mohd yasin Karim
 
PPTX
Unqlite
Paul Myeongchan Kim
 
PDF
Mastering the MongoDB Shell
MongoDB
 
ODP
An Introduction to REDIS NoSQL database
Ali MasudianPour
 
PPTX
MongoDB-SESSION03
Jainul Musani
 
PDF
CORS review
Eric Ahn
 
PDF
MongoDB 在盛大大数据量下的应用
iammutex
 
PDF
Perl Programming - 04 Programming Database
Danairat Thanabodithammachari
 
Introduction to Redis
Knoldus Inc.
 
Introduction to Redis
Dvir Volk
 
JSOP in 60 seconds
David Nuescheler
 
Mongodb replication
PoguttuezhiniVP
 
Oracle12c Pluggable Database Hands On - TROUG 2014
Özgür Umut Vurgun
 
GOTO 2013: Why Zalando trusts in PostgreSQL
Henning Jacobs
 
15 Ways to Kill Your Mysql Application Performance
guest9912e5
 
Fluentd and WebHDFS
SATOSHI TAGOMORI
 
A brief introduction to PostgreSQL
Vu Hung Nguyen
 
PostgreSQL
Reuven Lerner
 
My sql administration
Mohd yasin Karim
 
Mastering the MongoDB Shell
MongoDB
 
An Introduction to REDIS NoSQL database
Ali MasudianPour
 
MongoDB-SESSION03
Jainul Musani
 
CORS review
Eric Ahn
 
MongoDB 在盛大大数据量下的应用
iammutex
 
Perl Programming - 04 Programming Database
Danairat Thanabodithammachari
 

Viewers also liked (6)

KEY
Mongo NYC PHP Development
Fitz Agard
 
KEY
PHP Development With MongoDB
Fitz Agard
 
PPTX
Selva peruana principales lugares turisticos
Alan Bayona Manrique
 
PDF
Workplace Communication Generic
Fitz Agard
 
PPTX
Real time analytics using Hadoop and Elasticsearch
Abhishek Andhavarapu
 
PDF
Study: The Future of VR, AR and Self-Driving Cars
LinkedIn
 
Mongo NYC PHP Development
Fitz Agard
 
PHP Development With MongoDB
Fitz Agard
 
Selva peruana principales lugares turisticos
Alan Bayona Manrique
 
Workplace Communication Generic
Fitz Agard
 
Real time analytics using Hadoop and Elasticsearch
Abhishek Andhavarapu
 
Study: The Future of VR, AR and Self-Driving Cars
LinkedIn
 
Ad

Similar to MongoDB & PHP (20)

PPTX
MongoDB Knowledge share
Mr Kyaing
 
PDF
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
PPTX
Munching the mongo
VulcanMinds
 
PPT
Mongo db basics
Dhaval Mistry
 
PDF
MongoDB: a gentle, friendly overview
Antonio Pintus
 
PPTX
MongoDB
nikhil2807
 
PPTX
lecture_34e.pptx
janibashashaik25
 
PPTX
Introduction to MongoDB
S.Shayan Daneshvar
 
PPTX
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
PDF
Streaming Analytics Unit 5 notes for engineers
ManjuAppukuttan2
 
PPTX
MongoDB.pptx
Sigit52
 
PPTX
Mongodb introduction and_internal(simple)
Kai Zhao
 
PPTX
MongoDB-presentation.pptx
tarungupta276841
 
PPTX
Einführung in MongoDB
NETUserGroupBern
 
PDF
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
PDF
MongoDB.pdf
KuldeepKumar778733
 
PPTX
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
PDF
Which Questions We Should Have
Oracle Korea
 
PPTX
Nosql
ROXTAD71
 
MongoDB Knowledge share
Mr Kyaing
 
MongoDB NoSQL database a deep dive -MyWhitePaper
Rajesh Kumar
 
Munching the mongo
VulcanMinds
 
Mongo db basics
Dhaval Mistry
 
MongoDB: a gentle, friendly overview
Antonio Pintus
 
MongoDB
nikhil2807
 
lecture_34e.pptx
janibashashaik25
 
Introduction to MongoDB
S.Shayan Daneshvar
 
MongoDB introduction features -presentation - 2.pptx
sampathkumar546444
 
Streaming Analytics Unit 5 notes for engineers
ManjuAppukuttan2
 
MongoDB.pptx
Sigit52
 
Mongodb introduction and_internal(simple)
Kai Zhao
 
MongoDB-presentation.pptx
tarungupta276841
 
Einführung in MongoDB
NETUserGroupBern
 
MongoDB Interview Questions PDF By ScholarHat
Scholarhat
 
MongoDB.pdf
KuldeepKumar778733
 
Mongo DB: Fundamentals & Basics/ An Overview of MongoDB/ Mongo DB tutorials
SpringPeople
 
Which Questions We Should Have
Oracle Korea
 
Nosql
ROXTAD71
 
Ad

Recently uploaded (20)

PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
🚀 Let’s Build Our First Slack Workflow! 🔧.pdf
SanjeetMishra29
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
ICONIQ State of AI Report 2025 - The Builder's Playbook
Razin Mustafiz
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 

MongoDB & PHP

  • 1. + 1
  • 2. I am Sanjeev Shrestha @sanjeevshrestha 2
  • 3. In these slides... NoSQL TYPES MongoDB INSTALLATION PHP & MongoDB 3
  • 5. Challenges with RDBMS Assumes WELL DEFINED data structure data is DENSE and largely UNIFORM PROPERTIES of data can be defined upfront INTERRELATIONSHIP are well ESTABLISHED & SYSTEMATIC INDEXES can be CONSISTENTLY DEFINED May SNAP when data grows enormously But ... that may not be TRUE 5
  • 6. DATA is Unstructured Does not make sense OW DATA is GR IN G at high speed 6
  • 7. NoSQL? No Rel / No SQL / Not Only SQL / NoSQL Non RELATIONAL DISTRIBUTED DATASTORES May NOT provide ACID Not a Single Product or Technology Data Storage and Manipulation 7
  • 8. NoSQL Storage Types DOCUMENT STORE GRAPH KEY-VALUE STORE TABULAR multivalue database object database rdf database tuple store 8
  • 9. 9
  • 10. MongoDB High PERFORMANCE CONSISTENT Fully HORIZONTALLY scalable DOUMENT Oriented 10
  • 11. Best Features of KEY-VALUE stores, DOCUMENT database & RELATIONAL databases 11
  • 12. Why so POPULAR? EASY to USE SIMPLER concepts EASY on ramp for NoSQL Many DEV/OPERATIONAL things come inbuilt More AGILE than RDBMS Less UPFRONT DESIGN needed than RDBMS SCALABLE schema and storage 12
  • 13. Built for SPEED Built for SPEED (written in C++) Data serialized to BSON Extensive use of MEMORY MAPPED Files PADS DISK SPACE around document 13
  • 14. Why MongoDB? HIGH AVAILABILITY JOURNALING REPLICATION SHARDING INDEXING AGGREGATION MAP/REDUCE 14
  • 15. Negatives of MONGODB INDEXES are not flexible REALTIME QUERIES may not be as fast as others Good enough only if queries are SIMPLE Not as MATURED as RDBMS 15
  • 16. 16
  • 17. MONGODB seems to be the leader. CASSANDRA stands close second. 17
  • 18. RDBMS VS MONGODB STRUCTURE RDBMS MONGODB DATABASE DATABASE TABLES COLLECTIONS COLUMNS DOCUMENTS ROWS FIELDS 18
  • 19. RDBMS VS MONGODB RDBMS MONGODB STORED PROCEDURES STORED JAVASCRIPT DATABASE SCHEMA SCHEMA FREE SUPPORTS JOINS NO JOINS 19
  • 22. MySQL to MongoDB MySQL Term MongoDB Term Database Database Tables Collection Rows BSON Document Column BSON Fields Index Index Join Embedding and Linking Primary Key _id field Group by Aggregation 22
  • 23. SQL to MONGO SQL Statements Mongo Statements CREATE DATABASE sqltest use mongotest USE sqltest implicit CREATE TABLE table1 (a Number, b db.createCollection('coll1'); Number) ALTER TABLE table1 add … implicit INSERT INTO table1 values(100,22) db.coll1.insert({'a':'100,'b':22}); 23
  • 24. SQL to MONGO SQL Statements Mongo Statements SELECT * from table1 db.coll1.find(); SELECT * from table1 where a=33 db.coll1.find({a:33}); SELECT a,b from table1 where a =44 db.coll1.find({a:44},{a:1,b:1}); SELECT * from table1 where b like '%abc%' db.coll1.find({b:/abc/}); SELECT * from table1 where b like 'abc%' db.coll1.find({b:/^abc/}); SELECT * from table1 where a>50 db.coll1.find({a:{$gt:50}}); SELECT * from table1 where a <40 db.coll1.find({a:{$lt:40}}); SELECT * from table1 where a<=40 db.coll1.find({a:{$lte:40}}); SELECT * from table1 where a =33 order by db.coll1.find({a:33}).sort({name:1}) name SELECT * from table1 where a=33 order by db.coll1.find({a:33}).sort({name:-1}) name DESC SELECT * from table1 LIMIT 1 db.coll1.findOne(); 24
  • 25. SQL to MONGO SQL Statements Mongo Statements SELECT * from table1 where a=33 and b=100 db.coll1.find({a:33,b:100}); SELECT * from table1 LIMIT 100 db.coll1.find().limit(100); SELECT * from table1 where a =33 or a=45 or db.coll1.find({$or:[{a:33},{a:45},{a:50}]}) a=50 SELECT DISTINCT a from table1 db.coll1.distinct('a'); SELECT count(*) from table1 db.coll1.count(); SELECT count(*) from table1 where a=33 db.coll1.find({a:33}).count(); CREATE INDEX myindexname ON table1(a) db.coll1.ensureIndex({a:1}) UPDATE table1 set a=44 where b=100 db.coll1.update({b:100},{$set: {a:44}},false,true); DELETE from table1 where a=44 db.coll1.remove({a:44}); 25
  • 26. INSTALLATION It is DEAD SIMPLE Refer to the following link http://www.mongodb.org/display/DOCS/Quickstart/ 26
  • 27. Get started with MongoDB MONGO SHELL $ mongo 27
  • 28. Listing DATABASES show dbs; 28
  • 29. Creating DATABASE use databasename but DB is not created DB is created only when you create a collection 29
  • 30. Creating a COLLECTION db.createCollection('articles') No Definition required 30
  • 31. Listing COLLECTIONS show collections 31
  • 32. Inserting DOCUMENT db.collection.insert(<json formatted data>); e.g. db.articles.insert({title:'This is test article',slug:'this-is-test-article',text:'This is test article and it does not contain anything',count:10}); 32
  • 33. Listing DOCUMENTS db.collection.find() 33
  • 34. Updating DOCUMENTS db.collection.update( criteria, objNew, upsert, multi ) Upsert = update data if exists, insert as new data if not Multi = make multiple updates matching criteria e.g. db.articles.update({count:20},{$set:{title:'This is second article',slug:'this-is-second- art'}},true,false) 34
  • 35. creating INDEX db.collection.ensureIndex(index); eg. db.articles.ensureIndex({title:1}) 35
  • 36. MONGODB-PHP EXTENSION Available from PECL shell> pecl install mongo 36
  • 37. Loading MONGO EXTENSION in PHP Add extension=mongo.so to php.ini Or any other file like mongo.ini but make sure it is loaded by php 37
  • 38. Is it LOADED? Check PHP information 38
  • 39. Creating a CONNECTION 39
  • 40. Selecting DB & COLLECTION 40
  • 41. Listing from a COLLECTION 41
  • 42. Adding DOCUMENT 42
  • 43. 43
  • 44. Updating a DOCUMENT 44
  • 45. 45
  • 46. Deleting a DOCUMENT 46
  • 47. Working with multiple COLLECTIONS no JOINS Instead REFs are used TWO Types MANUAL / DBREFs 47
  • 48. Manual REFs 48
  • 49. DBREFs 49
  • 50. Listing Data from multiple COLLECTION 50
  • 51. What NEXT? GRIDFS MAP/REDUCE MONGOCODE {stored javascript} AGGREGATION SHARDING REPLICAS 51
  • 53. THANK YOU & HAPPY CODING 53