Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Apache CouchDB: Introduction and Installation

DZone's Guide to

Apache CouchDB: Introduction and Installation

· Database Zone
Free Resource

Download the Guide to Open Source Database Selection: MySQL vs. MariaDB and see how the side-by-side comparison of must-have features will ease the journey. Brought to you in partnership with MariaDB.

 

  • This is another database on "NOSQL" concept.
  • NOSQL's are schema less database.
  • The data is stored in a JSON format.
  • It supports distributed configuration .
  • Couch DB supports replication of data across distributed platform, It has many framework for this supporting master replication, slave replication, filtered replication, incremental/bidirectional replication.
  • "Erlang" is a language to customize these feature to deliver new solutions.
  • Couch Db can be downloaded from the link :-
          http://www.apache.org/dyn/closer.cgi?path=/couchdb/packages/win32/1.2.1/setup-couchdb-1.2.1_otp_R14B04.exe
  • After the installation  server start menu,
  •     The Server start up screen,
 
  • The utils are installed in,
          http://127.0.0.1:5984/_utils/

          screenshot,


  •  verify installation,
  •  Creating a new database "student". The database name should be in small letter.
  • After creating the "student" db , the browser will look like,
  • Now time to create a document in the table, these documents are similar like rows in relational database. A new Document can be created by clicking "New Document" link.Then it will create a unique id for this document.
  • Now Save the document,
  • Documents can be created using source tab , where we can modify the java script code to build a document.It provides a editor to manipulate the JSON document.
 
  • Four documents are created similarly for type of student ,

  • Now "student" db is listed with other system databases,

Interested in reducing database costs by moving from Oracle Enterprise to open source subscription?  Read the total cost of ownership (TCO) analysis. Brought to you in partnership with MariaDB.

Topics:

Published at DZone with permission of Sandeep Patel, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}