Category: MongoDb

Sagar-Jaybhay-MongoDB

Data Modeling

Data Modeling In Mongo As the mongo have NoSQL and schema-less or flexible schema architecture we can easily model db. It does not enforce the document to follow schema so we can easily map...

Sagar-Jaybhay-MongoDB

Aggregation In MongoDb

It process the records and returns the result It group values from various documents in collection together Perform operations on the grouped data We have aggregate method in mongodb and we pass different operation...

Sagar-Jaybhay-MongoDB

Performance In MongoDB

We can use index to increase performance. In mongodb we have B-Tree indexes. If we don’t provide index then it will perform collection scan means it scan every document in collection and if index...

Sagar-Jaybhay-MongoDB

Mongo Basic

NoSql– means not only sql. In this we are not going to use structured query language. It is different from relational database. Why is need of NoSQL? With the increase of internet usage the...

Sagar-Jaybhay-MongoDB

MongoDB Query

Create Database : Use databasename : this command is used to create database Create collection: below command is used to create the collection result:      { “ok” : 1 } result: departments tempdb.employees Insert...

Sagar-Jaybhay-MongoDB

Mongo Shell

It is a component of MongoDB Shell provides an interactive javascript interface. The mongo shell is an interactive JavaScript interface to MongoDB. You can use the mongo shell to query and update data as well as perform administrative...

Sagar-Jaybhay-MongoDB

ACID Properties and Mongo Terms

ACID property supports is the main restrict. These ACID principles determine transactions principles. Atomicity: – it means if any transaction scope fails entire transaction fails. Consistency: – it states that entire rules of the...

Sagar-Jaybhay-MongoDB

MongoDB

Mongodb – document based database. NoSql db means not only sql database.It is completely written in C++. MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability. MongoDB is...