The Basics of Mongodb: Name: Raghavendra B M
The Basics of Mongodb: Name: Raghavendra B M
Name: Raghavendra B M
https://www.drupal.org/u/raghavendra-b-m
https://www.linkedin.com/in/raghavendra-b-m-8b0923108/
Agenda
● Problems with RDBMS
● What is MongoDB
● Performance of SQL and MongoDB
● Comparison between SQL and MongoDB
● CURD operation in MongoDB
● Where clause commands
● Linking (Joins)
Why MongoDB why not MySQL?
● Before we understand what MongoDB is we need to
understand issues with traditional RDBMS.
ANY GUESS?
1. Scalability
❖ Difficult to scale millions of
millions of data.
● Data Hub
MongoDB commands
mongo Enter the MongoDB client
show dbs List all database. Should have at least on record to display the
db in list.
➢ db.collection_name.drop()
Where conditions
Operation Syntax Example RDBMS Equivalent
"mail" : "[email protected]",
"phone" : {
‘ph1’ : "8080808080",
‘ph2’ : "9090909090",
‘landline’ : "080-45454545"
}
}
Reference
● https://docs.mongodb.com/manual/reference
Question?
Thank you