2. By ,
Kowndinya Mannepalli
MongoDB is a cross-platform document-
oriented database. Classified as a NoSQL database,
MongoDB eschews the traditional table-based relational
database structure in favour of JSON-like documents with
dynamic schemas (MongoDB calls the format BSON),
making the integration of data in certain types of
applications easier and faster.
MongoDB is developed by MongoDB Inc. and
is published as free and open-source software under a
combination of the GNU Affero General Public License
and the Apache License. As of July 2015, MongoDB is
the fourth most popular type of database management
system, and the most popular for document stores
Key points of MongoDB
Develop Faster
Deploy Easier
Scale Bigger
3. By ,
Kowndinya Mannepalli
Main purpose to build MongoDB:
Scalability
Performance
High Availability
Scaling from single server deployments to large, complex multi-site architectures.
4. By ,
Kowndinya Mannepalli
Main features
Ad hoc queries
MongoDB supports field, range queries, regular expression
searches. Queries can return specific fields of documents and
also include user-defined JavaScript functions.
Indexing
You can index any field in a document.
Support ad hoc queries
In MongoDB, you can search by field, range query and it also
supports regular expression searches.
Replication
MongoDB supports Master Slave replication
Duplication of data
MongoDB can run over multiple servers. The data is duplicated
to keep the system up and also keep its running condition in
case of hardware failure.
Load balancing
It has an automatic load balancing configuration because of data
placed in shards.
• Supports map reduce and aggregation tools.
• Uses JavaScript instead of Procedures.
• It is a schema-less database written in C++.
• Provides high performance.
• Stores files of any size easily without complicating your
stack.
• Easy to administer in the case of failures.
5. By ,
Kowndinya Mannepalli
• A NoSQL database provides a mechanism for
storage and retrieval of data which is modelled in
means other than the tabular relations used in
relational databases.
• NoSQL Database is used to refer a non-SQL or non
relational database.
• It is generally used to store big data and real-time
web applications.
Advantages
• It supports query language.
• It provides fast performance.
• It provides horizontal scalability.
6. By ,
Kowndinya Mannepalli
NoSQL database can be classified as 4 basic types:
• Key value store NoSQL database
• Document store NoSQL database
• Column store NoSQL database
• Graph base NoSQL database
There are many NoSQL databases. MongoDB, Cassandra, CouchBD, Hypertable, Redis, Riak,
Neo4j, HBASE, Couchbase, MemcacheDB, Voldemort, RevenDB etc. are the examples of
NoSQL databases.
7. By ,
Kowndinya Mannepalli
Features of MongoDB
•Easy to use
•Light Weight
•Extremely faster than RDBMS
MongoDB used in
•Big and complex data
•Mobile and social infrastructure
•Content management and delivery
•User data management
•Data hub
RDBMS/NoSQL
15. By ,
Kowndinya Mannepalli
sort() method
The sorting order is specified as 1 or -1.
1 is used for ascending order sorting.
-1 is used for descending order sorting.