Showing posts with label mongodb installation. Show all posts
Showing posts with label mongodb installation. Show all posts

Thursday, April 18, 2013

MongoDB installation on Windows

1. Download MongoDB .

2. Extract the downloaded zip to a directory say, 

 C:\mongodb-win32-x86_64-2.4.2
3. set path  ( C:\mongodb-win32-x86_64-2.4.2\bin ) in environment variable ( Optional )
4. Mongo requires a data directory to store its files . Default location is  C:\data\db.  Create these  folders.
5. Start MongoDB in command prompt. mongod.exe is present in the bin directory of the distribution.



6.Connect to MongoDb using  Mongo shell in a new command prompt.


Now you can insert data in mongo db . Below is an example .



Wednesday, April 17, 2013

MongoDB introduction

MongoDB is a Non Relational JSON document store/database . Non relational means it does not supports relational algebra between the tables like SQL ( Does not support JOINs).

Benefits :

  • High performance.
  • High availability.
  • Highly  scalable.


MongoDB does not supports JOINs :
Joins scales poorly when we try to scale out to multiple nodes. 

No transaction support :
MongoDB doesn't provide any transaction support. Something that requires multiple updates within a relational system can be handled within a single atomic transaction within a single document in mongo.