A TWO days workshop on MongoDB…
~always try to give data with unique no.
~in mongodb every data they create is unique number known as “_id”
~id is predefined special id for unique dataset.
~there’re 3 ways to interact with mongodb
~index is one the v imp case in dsa and db also
~filter: helps us to filter everything precisely and smoothly.
~how we can integrate mongodb with a programming language.
~in mongodb we store data into key-value pair.
~from pymongo import MongoClient
client = MongoClient(“mongo://<ip>”)
~!!find means only find, it doesnt do anymore thing in py whereas in -mongodb it is not the same
for i in input
~typically mongodb supports json format.
~we can directly import our json data to mongodb
~load/import tool is available in mongodb
and bydefault it is not present in latest version of this.
~for importing json:
~mongoimport person.json -d lwperson -c contacts
~indexing is a special data structure that maps the reference to the particular document’s address. Indexes improve the speed of search operations in the database because instead of searching the whole document, the search is performed on the indexes that hold only a few fields.
~Sharding is the method and a concept of grouping the data and splitting this data to multiple nodes also called replica instances.MongoDB uses sharding to support deployments with very large data sets and high throughput operations.
~A replica set in MongoDB is a group of mongod processes that maintain the same data set. Replica sets provide redundancy and high availability and are the basis for all production deployments.
~IXSCAN means index scan and COLLSCAN means collection scan which is used by MongoDB while searching or yielding output according to the query. ~MongoDB Aggregation pipeline is a framework for data aggregation. Documents enter a multi-stage pipeline that transforms the documents into an aggregated results. ~Compound Indexing in MongoDB is the process of creating indexes on the basis of more than one field at once like age and location. ~Mongo router is a program that manages the nodes in the master-slave network of the database cluster like a load balancer. ~MongoDB Atlas is a fully managed cloud database developed by the same people that build MongoDB. Atlas handles all the complexity of deploying, managing, and healing your deployments on the cloud service providers. ~Referencing Model in MongoDB is a concept or a process of having documents with objectives of another object. It comes where we can link the information to a single document from multiple documents means we can change only one place and will be updated everywhere.
✨ ✨Thanks for reading….