Mongodb: Presented By: Josmi Agnes Jose Roll Number: 20bda27
Mongodb: Presented By: Josmi Agnes Jose Roll Number: 20bda27
Architecture
Features
Advantages and
Syntaxes Disadvantages
Being a NoSQL tool means that it does not use the usual rows and
columns that you so much associate with the relational database
management.
What is MongoDB
With sharding, you add more machines to support data growth and
the demands of read and write operations.
Horizontal Scaling.
db.collection.insertOne()
db.collection.insert()
db.collection.insertMany()
CRUD Operations
db.collection.find() db.collection.find().pretty()
db.collection.update()
db.collection.replaceOne() db.collection.updateMany()
CRUD Operations
db.collection.deleteOne() db.collection.deleteMany({})
db.collection.remove()
How is MongoDB different ?
Relational Databases MongoDB
Not fit for hierarchical data storage Best fit for hierarchical data storage
Vertically scalable - increasing RAM, 100 Horizontally scalable - add more servers
times faster
Emphasizes on ACID properties (Atomicity, Emphasizes on CAP theorem (Consistency,
Consistency, Isolation and Durability) Availability and Partition tolerance)
A great choice if you have structured data. A great choice if you have unstructured and
structured data with the potential for rapid
growth.
Slower than MongoDB. Faster than MySQL.
Features
Aggregation
Because the MongoDB uses JSON format to store data, it is very easy to store
arrays and objects.
The relationships in MongoDB are not typically well-defined and the resulting
duplicate data sets can be hard to handle.
Sharding :- https://www.youtube.com/watch?v=ooF021_Kbck&list=LL&index=3
https://www.youtube.com/watch?v=5faMjKuB9bc&list=LL&index=1
https://www.youtube.com/watch?v=4upppuW7lGE&list=LL&index=6
Indexing :- https://www.youtube.com/watch?v=vj_YkHxzF2s&list=LL&index=8
Queries :- https://www.youtube.com/watch?v=ZrEu5H-iFe0&t=1914s
https://www.youtube.com/watch?v=kWxEghkwpsE
Replication :- https://docs.mongodb.com/manual/replication/
Installation :- https://www.c-sharpcorner.com/UploadFile/f0b2ed/mondodb-day-2-install-mondodb-in-window/
THANKS!