MongoDB

By | November 25, 2015

mongodbMongoDb is an Open Source database written in C++ language and developed by 10gen but now it’s called MongoDB Inc.

MongoDB is the fastest growing database because it’s provided more security protection mechanisms than others and also more reliable in cloud computing environments.

It is secure architecture for your deployment.

MongoDB is document oriented database and it’s store the data in document with JSON format.

It supports various programming languages like C, C++, C# and .NET, Java, Javascript, Perl, PHP, Python, Ruby, Scala, Erlang, Haskell,.

Key Features

  • Since MongoDb offers a Document oriented storage, It is simple and easily programmable.
  • You can set an index on any attribute of a MongoDb record (as FirstName=”Akhil”,Address=”12 Mayur vihar”), with respect to which, a record can be sort quickly and ordered.
  • You can set mirror across local as well as wide area networks, which makes it easily scalable.
  • Sharding: If load increases (more storage space, more processing power), it can be distributed to other nodes across computer networks.
  • MongoDb supports rich query to fetch data from the database.
  • MongoDb supports replacing an entire document (database) or some specific fields with it’s update() command.
  • MongoDb supports Map/Reduce framework for batch processing of data and aggregation operation.
  • Map : A master node takes an input. Splits it into smaller sections. Sends it to the associated nodes.
    These nodes may perform the same operation in turn to send those smaller section of input to other nodes. It process the problem (taken as input) and sends it back to the Master Node.
  • Reduce : The master node aggregates those results to find the output.
  • GridFS specification of MongoDb supports storage of very large files.
  • It supports Server-side JavaScript execution. Which allows a developer to use a single programming language for both client and server side code.
  • MongoDb is easily installable.

Datatypes in MongoDB

Databases, Schemas and Tables in MongoDB

Limitations of MongoDB

Frequently Asked Questions

1.  What kind of database is MongoDB?
MongoDB is a document-oriented DBMS. Think of MySQL but with JSON-like objects comprising the data mode, rather than RDBMS tables. MongoDB supports neither joins nor transactions.

2.  Do MongoDB database stores its data in tables?
A MongoDB database stores its data in collections instead of tables, which are the rough equivalent of RDBMS tables.

3.  Do MongoDB databases have schemas?
MongoDB uses dynamic schemas. Without defining the structure you can create collections, i.e. the fields or the types of their values, of the documents in the collection. You can change the structure of documents simply by adding new fields or deleting existing ones.

4.  Which programming languages can be used to work with MongoDB?
MongoDB client drivers exist for all of the most popular programming languages. See the latest list of drivers for details.

5.  Does MongoDB support SQL?
No.

6.  What are typical uses for MongoDB?
Content management systems, mobile applications, gaming, e-commerce, analytics, archiving, and logging.

7.  Does MongoDB support transactions?
No. However, MongoDB does provide atomic operations on a single document.

8.  Does MongoDB require a lot of RAM?
Not necessarily. It’s certainly possible to run MongoDB on a machine with a small amount of free RAM. MongoDB automatically uses all free memory on the machine as its cache.

9.  Does MongoDB handle caching?
Yes. MongoDB keeps all of the most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory.

10.  What are the limitations of 32-bit versions of MongoDB?
Changed in version 3.0: Commercial support is no longer provided for MongoDB on 32-bit platforms (Linux and Windows).

I hope you will enjoy MongoDB(document oriented database).  I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.

Like it? Share it