You are on page 1of 13

MIT acsc , (ALANDI )

Big data
Assignment no :- 4
Name :- Tanmay Ghule
Class :-SYBBA(CA)
DIV :- B
Roll no :- SB222

Under
the guidance of Prof. KAVITA MAHAJA
MONGODB
Managing HuMONGOus data
Mongo DB
MongoDB stores data in flexible, JSON-like
documents, meaning fields can vary from document to
document and data structure can be changed over time
The document model maps to the objects in your
application code, making data easy to work with
Ad hoc queries, indexing, and real time
aggregation provide powerful ways to access and
analyze your data
MongoDB is a distributed database at its core, so high
availability, horizontal scaling, and geographic
distribution are built in and easy to use
MongoDB is free to use. 
MongoDB Terminology

 Database
 Collections
 Documents
How it Works ?

Database Shop

Collections Users Orders

{name:’Max’,Age:29} {…}

Documents
{…}
{name:’Tanmay’}
WHAT IS BSON ?
•BSON is a computer data interchange format used
mainly as a data storage and network transfer format in
the MongoDB database.

•It is a binary form of representing simple data structures,


associative arrays (called objects or documents in
MongoDB ), and various data types of specific interest to
MongoDB.

• The name “BSON” is based on the term JSON and


stands for “Binary JSON”.
BSON DATA FORMAT
{
name: ‘sher’
age: ‘19’
address:
{
city: ‘pune’
},
hobbies: [
{ name: ‘PUBG’ },
{ name: ‘Football’ },
]
}
Which PL can be used with MongoDB ?
• PHP
•Node.JS ( Not a PL, It’s a runtime
environment for JavaScript)
•Python
•Java
•C#
•C++
FEATURES:
Replication Sets
 It supports Master-Slave relipaction.
 Maintains backup copies of your database Instance
- Secondaries can elect a new primary within econds if your primary goes
down
- But make sure your operation log is long enough to give you time to
recover the primary when it comes back….

Primary Secondary Secondary

Secondary Secondary
Multiple Servers: The database can run over
multiple servers. Data is duplicated to foolproof the
system in the case of hardware failure.

Queries: It supports ad-hoc queries and document-


based queries.

Index Support: Any field in the document can be


indexed

MapReduce: It supports MapReduce and flexible


aggregation tools.
.
THANK YOU

You might also like