Beginning CouchDB

By Joe Lennon

Beginning CouchDB Cover Image

This book teaches the fundamentals of one of the most powerful database engines ever created for the price of a good lunch. After reading this book and working through the examples, you'll be able to write your own applications for CouchDB quickly and easily.

Full Description

  • ISBN13: 978-1-4302-7237-3
  • User Level: Beginner to Intermediate
  • Publication Date: December 15, 2009
  • Available eBook Formats: PDF
  • Print Book Price: $44.99
  • eBook Price: $31.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

The new world of cloud computing needs data storage. CouchDB is the scalable, portable, simple database engine that is helping open source cloud architects put their data stores onto a firm foundation. Beginning CouchDB provides the tools to begin using this very powerful database engine without having to pay license fees for the software, or worry about administrator’s certifications or vast hardware requirements. This book teaches the fundamentals of one of the most powerful database engines ever created for the price of a good lunch. After reading this book and working through the examples, you’ll be able to write your own applications for CouchDB quickly and easily.

  • In-depth, non-intimidating guide to CouchDB and how it differs from similar offerings such as SimpleDB and BigTable, and also how it differs from traditional relational and object-oriented databases such as Oracle, SQL Server, and MySQL.
  • Detailed explanation of how CouchDB works, its suitability for use in distributed environments, the role of Erlang, and other technical topics in a manner that does not obfuscate methods or results. JavaScript is extremely popular as a development language for CouchDB. No Erlang is required, but a little bit can’t hurt either.
  • A tutorial-oriented approach to teaching readers how to use CouchDB, featuring many code examples and listings, as well as screenshots where relevant.

What you’ll learn

  • How to install CouchDB on Linux, Unix, Mac OS X, or Windows and enjoy its portability
  • How to use the CouchDB database and document-oriented databases, and the differences between document-oriented and traditional database management systems
  • How to use Futon, the administration interface for CouchDB
  • How to create and manage a basic CouchDB database
  • Intermediate CouchDB concepts, including views, the REST API, JSON, map/reduce, load balancing, replication, and scalability
  • How to develop full CouchDB applications to get the reader up and running with CouchDB development as quickly as possible

Who this book is for

This book will enlighten anyone who’s curious about the post–Web 2.0 database landscape. If you’re a software developer fluent in JavaScript or a database administrator who wants to learn about CouchDB and document-oriented databases, you’ll enjoy this book. Although the book doesn’t assume anything about your level of experience with database management systems, you’ll get the most out of it if you have some experience using or administering databases.

Table of Contents

Table of Contents

  1. Introduction to CouchDB
  2. Installing CouchDB on Linux
  3. Installing CouchDB on Mac OS X
  4. Creating Your First CouchDB Database
  5. Using Futon: The CouchDB Administration Interface
  6. Introduction to JSON
  7. Introduction to CouchDB Views
  8. Map/Reduce
  9. Advanced CouchDB Views
  10. Developing CouchDB Applications with CouchApp
  11. Developing Applications with CouchDB
  12. Advanced CouchDB Topics
  13. Mechanics of CouchDB Deployment
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 13 -14:
Page 13 shows downloading and unpacking the
apache-couchdb-0.10.0.tar.gz.
However on page 14, the screen shot shows a response that is from CouchDB server version 0.9.1.

On page 166:
The screen shot is not showing the CouchDB Version 0.10.0. However that is the version was shown on page 13 to be installed.

On page 168 - 177:
The listing 10-3 clrealy shows the CouchDB version 0.9.0. Which again does not support the version 0.10.0 version.

Why is it this book asking to install the version 0.10.0 and yet it uses the older version? This makes part 3 of this book useless.!!! Code-listing 10-4 on page 171 shows version 0.9.0. Same is true for listing 10-7 on page 177.

I stop reading after that. I am very disappointed for this and would like to see all the correction email to me please.

Book is nice and easy to read and CouchDB subject been some what new and powerful this book does a very good job at it. Yet failed to do the same thing as it ask us to do.

On page 171:
<script src="vendor/couchapp/jquery.couchapp.js"></script> is wrong...

it should state:

<script src="vendor/couchapp/jquery.couch.app.js"></script>


On page 176:
var task_count = parseInt('#task_count span').html(),10);

It should say:

var task_count = parseInt($('#task_count span').html(), 10);

On page 176:
var task_count = parseInt('#task_count span').html(),10);

It should say:

var task_count = parseInt($('#task_count span').html(), 10);

On page 233:
Top of the page line two of the code,

":" should be changed to ","
Book shows:
{"_id": "sarah": "name"

it should be:
{"_id": "sarah", "name"