MongoDB : introduction to MongoDB

MongoDB is an  is a cross-platform open-source document database, and the leading NoSQL database. Written in C, C++ and Java script .

MongoDB features:

1. Document-Oriented Storage »

JSON-style documents with dynamic schemas offer simplicity and power.

2. Ad hoc queries

MongoDB supports search by field, range queries, regular expression searches. Queries can return specific fields of documents and also include user-defined JavaScript functions.

3. Full Index Support »

Index on any attribute, just like you’re used to.

4. Replication & High Availability »

Mirror across LANs and WANs for scale and peace of mind.

Replication

MongoDB provides high availability with replica sets. A replica set consists of two or more copies of the data. Each replica set member may act in the role of primary or secondary replica at any time. The primary replica performs all writes and reads by default. Secondary replicas maintain a copy of the data on the primary using built-in replication. When a primary replica fails, the replica set automatically conducts an election process to determine which secondary should become the primary. Secondaries can also perform read operations, but the data is eventually consistent by default.

Load balancing

MongoDB scales horizontally using sharding. The user chooses a shard key, which determines how the data in a collection will be distributed. The data is split into ranges (based on the shard key) and distributed across multiple shards. (A shard is a master with one or more slaves.)MongoDB can run over multiple servers, balancing the load and/or duplicating data to keep the system up and running in case of hardware failure. Automatic configuration is easy to deploy, and new machines can be added to a running database.

5. Auto-Sharding »

Scale horizontally without compromising functionality.

6. Querying »

Rich, document-based queries.

7. Fast In-Place Updates »

Atomic modifiers for contention-free performance.

8. Map/Reduce »

Flexible aggregation and data processing.

Aggregation

MapReduce can be used for batch processing of data and aggregation operations. The aggregation framework enables users to obtain the kind of results for which the SQLGROUP BY clause is used.

Server-side JavaScript execution

JavaScript can be used in queries, aggregation functions (such as MapReduce), and sent directly to the database to be executed.

9. GridFS »

Store files of any size without complicating your stack.

 

14 thoughts on “MongoDB : introduction to MongoDB”

  1. Howdy just wanted to give you a quick heads up. The text
    in your article seem to be running off the screen in Firefox.
    I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I figured I’d
    post to let you know. The style and design look great
    though! Hope you get the issue fixed soon. Cheers

  2. You actually make it appear really easy together with your presentation but I find this matter to be
    actually one thing that I believe I’d by no means understand.
    It kind of feels too complex and extremely wide for me.
    I’m having a look ahead on your subsequent put up, I’ll attempt to get the hold of it!

  3. I was wondering if you ever considered changing the layout of your website?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so
    people could connect with it better. Youve got an awful lot of text
    for only having 1 or 2 images. Maybe you could space it out better?

  4. Hi! This is my 1st comment here so I just wanted to give a quick shout out and say
    I really enjoy reading through your posts. Can you suggest any other blogs/websites/forums that cover the same subjects?
    Many thanks!

    Also visit my blog: website (Arielle)

Leave a Comment