DBA-2
DBA-2
NAME:M.KAVYA SREE
REGISTER NUMBER:22MIS0456
Real-time analytics
As companies scale their operations, gaining access to key metrics and
business insights from large pools of data is critical. MongoDB handles the
conversion of JSON and JSON-like documents, such as BSON, into Java
objects effortlessly, making the reading and writing of data in MongoDB
fast and incredibly efficient when analyzing real-time information across
multiple development environments. This has proved beneficial for
several business sectors, including government, financial services and
retail.
Mongo DB benefits
Over the years, MongoDB has become a trusted solution for many
businesses that are looking for a powerful and highly scalable NoSQL
database. But MongoDB is much more than just a traditional document-
based database and it boasts a few great capabilities that make it stand
out from other DBMS.
Load balancing
As enterprises' cloud applications scale and resource demands increase,
problems can arise in securing the availability and reliability of services.
MongoDB’s load balancing sharing process distributes large data sets
across multiple virtual machines at once while still maintaining acceptable
read and write throughputs. This horizontal scaling is called sharding and
it helps organizations avoid the cost of vertical scaling of hardware while
still expanding the capacity of cloud-based deployments.
Multilanguage support
One of the great things about MongoDB is its multilanguage support.
Several versions of MongoDB have been released and are in continuous
development with driver support for popular programming languages,
including Python, PHP, Ruby, Node.js, C++, Scala, JavaScript and many
more.
MongoDB Shell
MongoDB Shell is a powerful, interactive command-line interface that
enables developers and database administrators to perform
operations and manage their MongoDB databases using JavaScript
syntax. Whether you're a beginner just starting with MongoDB or an
experienced user, MongoDB Shell offers a comprehensive environment
for executing queries, testing commands, and handling database
tasks.
MongoDB Shell is a JavaScript-based tool that allows users to interact
with MongoDB databases directly from the command line. It facilitates a
wide range of operations from simple CRUD (Create, Read, Update,
Delete) operations to more advanced database management tasks,
making it an essential tool for anyone working with MongoDB.
MongoDB Shell allows developers to:
Perform CRUD operations
Query databases using rich syntax
Execute aggregation queries for data analysis
Handle large datasets efficiently
Interact with the database in real-time using an interactive
interface
MongoDB Shell Interface
The MongoDB Shell provides a direct interface between users and
their MongoDB databases, making it easier to perform a wide variety of
tasks. It simplifies operations like:
Creating and deleting databases
Inserting and modifying documents
Running complex queries
Managing collections
The interface uses JavaScript syntax, which allows developers to take
advantage of its flexibility and execute complex queries. The immediate
feedback and command history support make it perfect for
both beginners and advanced users.
Key Features of MongoDB Shell
MongoDB Shell comes packed with essential features that enhance the
database management experience. Here are some key highlights:
Interactive Environment: MongoDB Shell offers an interactive
experience where you can enter commands and see immediate
results, making it ideal for learning and testing.
JavaScript-Based: Since the shell uses JavaScript, you can
leverage its rich capabilities to manipulate data and execute
complex queries.
Support for CRUD Operations: It perform
all Create, Read, Update and Delete (CRUD) operations
effortlessly through the shell.
Aggregation Framework: Access advanced data processing
features using the aggregation framework.
Cross-Platform Compatibility: It use MongoDB Shell on
various operating systems, including Windows, macOS and
Linux.
TO CONNECT MONGODB TO VS CODE
Commands
To view the list of databases
updated
To create new database click on plus symbol and then give the name of
database
To delete a database click on three dots and then click remove option
To add the data into database click on add data and then select either
import JSON or CSV file or insert document
To sort using mangoDBCompass click on options