Showing posts with label mongoDB. Show all posts
Showing posts with label mongoDB. Show all posts

Thursday, 1 January 2015

Setup MongoDB ReplicaSet in Simple Steps


Why Replication?

  • To keep your data safe
  • High (24*7) availability of data
  • Disaster Recovery
  • No downtime for maintenance (like backups, index rebuilds, compaction)
  • Read scaling (extra copies to read from)
  • Replica set is transparent to the application

Wednesday, 31 December 2014

Basic Operations in MongoDB


Below are various MongoDB statements.

Three database commands you should know.
show dbs – List all databases.
use db_name – Switches to db_name.
show collections – List all tables in the current selected database.


MongoDB Installation On Windows

In this tutorial, we will show you how to install MongoDB on Windows7 step by step.
  1. MongoDB 2.2.7
  2. Windows 7
Download the binary for your operating system from official site.

            http://www.mongodb.org/downloads

MongoDB Introduction

MongoDB  is an open-source document database, and the leading NoSQL database. Written in C++, with many great features like map-reduce , auto sharding, replication, high availability and etc.

Thursday, 28 August 2014

Spring Data MongoDB Hello World Example

In this Post we will see how to Integrate Spring Data + MongoDB + Maven step by step.
To integrate Spring with MongoDB we require Spring Data and Mongo DB jars.

Java + MongoDB Hello World Examle

A simple Java + Maven  + MongoDB  hello world example.

In this Post we will see step by step how to connect MongoDB, create database, collection and document, save, update, remove, get and display document.