What is MongoDB?

Posted on Posted in Hadoop, MongoDB

MongoDB Overview: MongoDB is an open source database Developed by 10gen and now named as MongoDB It is an agile database and allows schemas to change quickly with very less impact on application.no DDL and the changes can be done from application layer. Scalable,High performance and always available Allow Caching Handle failover automatically  and easy […]

Install MongoDB

Posted on Posted in Hadoop, MongoDB

Installing MongoDB in your system: Go to MongoDB site and download the MongoDB package for your OS and extract it in your local system you will see a bin folder and inside bin lot of binaries. you will see binary called mongod and that is the actual daemon runs MongoDB mongo binary gives you a client […]

NoSQL and Advantages of NOSQL

Posted on Posted in Cassandra, Hadoop, MongoDB

Why NoSQL?  – Bigger data handling capability   To handle Volume of data it allows data to be spread across commodity hardware  – Elastic scaling   Scale out the storage  – Flexible Schema/fixed data model    It does not need a organized schema. The schema is dynamic or fixed schema  – Integrated caching facility   To Increase performance, NOSQL […]

CAP Theorem

Posted on Posted in Cassandra, Hadoop, Hadoop, HBase, MongoDB

CAP Theorem for a distributed architecture: Consistency: The data in database remains consistent after the execution of an operation.Example: After an insert operation all clients will see the same data Availability:The System is always On/Available. Partition Tolerance:The system continues to function even if the servers are not able to communicate with each other CAP provides […]

Cassandra vs MongoDB

Posted on Posted in Cassandra, Hadoop, MongoDB

Cassandra MongoDB High availability and Incremental scalability Auto sharding for easy scalability Eventually consistent Full index support for high performance Trade – offs between consistency and latency Schemas to change as application evolve and easy readability No single point of failure and Minimal administration Replication and failover for high availability AP on CAP Theorem CP […]

MongoDB Tutorial

Posted on 1 CommentPosted in Hadoop, MongoDB

Why NoSQL?  – Bigger data handling capability   To handle Volume of data it allows data to be spread across commodity hardware  – Elastic scaling   Scale out the storage  – Flexible Schema/fixed data model    It does not need a organized schema. The schema is dynamic or fixed schema  – Integrated caching facility   To Increase performance, NOSQL […]

Top 20 Mongo DB interview questions

Posted on Posted in Hadoop, Interview questions, MongoDB

How to create database in Mongo DB? use DATABASE_NAME 2.How to list all available database in Mongo DB? show dbs How to drop database in Mongo DB? db.dropDatabase() How to create collection in Mongo DB? db.createCollection(name, options) Desc: Name:String:Name of the collection to be created Options:Document (Optional): Specify options about memory size and indexing Options […]