Let's look inside the "MongoDB" database world.

ยท

2 min read

Let's look inside the "MongoDB" database world.

What is MongoDB?

We are all aware that data is produced at a rapid rate and in enormous quantities in the modern world. To store this continuously growing amount of data, we require a flexible source that can expand when data generation and storage are high and contract when the opposite is true.

With its adaptable attitude, the MongoDB database solves this issue. Now, what exactly is mongoDB? The following is a typical definition-
"MongoDB is a document database. It stores data in a type of JSON format called BSON(Binary JSON) which is more memory efficient and optimized in terms of data access time".

A record in MongoDB is a document, which is a data structure composed of key-value pairs similar to the structure of JSON objects.

RDBMS and MongoDB Key Terms Mapping :

What is MongoDB | Working, Uses & Advantages | Scope & Career Growth

Key Difference between JSON and BSON:

MongoDB : How Does MongoDB store DATA

Creating a MongoDB Database :

By establishing an office employee character database, let's explore and learn about the MongoDB database in a fun way ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

1] To Create a database with the name- "OfficeCharacters"

The "use" command is used to create a database with the desired name or reference to an already existing database.

Output

2]To Create a collection(employee) and insert one record in it

Output

3]To Insert multiple records at once in the database

Output

4] To Search multiple records at once in the database

Output

5] To Search a single record in the database based on a specific key value

Output

6] To update a specific record in the database

Output

7] To delete a specific record from the database

Output

8] To delete the entire database

Conclusion

It is entirely based on a fictional scenario and has no connection to the real-world workplace.๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

ย