Buying Options
CouchDB: The Definitive Guide
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?
Description

Three of CouchDB's creators show you how to use this document-oriented database as a standalone application framework or with high-volume, distributed applications. With its simple model for storing, processing, and accessing data, CouchDB is ideal for web applications that handle huge amounts of loosely structured data. You'll learn how to work with CouchDB through its RESTful web interface, and become familiar with key features such as simple document CRUD (create, read, update, delete), advanced MapReduce, deployment tuning, and more.

Full Description
Table of Contents
  1. Introduction

    1. Chapter 1 Why CouchDB?

      1. Relax
      2. A Different Way to Model Your Data
      3. A Better Fit for Common Applications
      4. Building Blocks for Larger Systems
      5. Local Data Is King
      6. Wrapping Up
    2. Chapter 2 Eventual Consistency

      1. Working with the Grain
      2. The CAP Theorem
      3. Local Consistency
      4. Distributed Consistency
      5. Wrapping Up
    3. Chapter 3 Getting Started

      1. All Systems Are Go!
      2. Welcome to Futon
      3. Your First Database and Document
      4. Running a Query Using MapReduce
      5. Triggering Replication
      6. Wrapping Up
    4. Chapter 4 The Core API

      1. Server
      2. Databases
      3. Documents
      4. Replication
      5. Wrapping Up
  2. Developing with CouchDB

    1. Chapter 5 Design Documents

      1. Document Modeling
      2. The Query Server
      3. Applications Are Documents
      4. A Basic Design Document
      5. Looking to the Future
    2. Chapter 6 Finding Your Data with Views

      1. What Is a View?
      2. Efficient Lookups
      3. The View to Get Comments for Posts
      4. Reduce/Rereduce
      5. Wrapping Up
    3. Chapter 7 Validation Functions

      1. Document Validation Functions
      2. Validation’s Context
      3. Writing One
      4. Wrapping Up
    4. Chapter 8 Show Functions

      1. The Show Function API
      2. Side Effect–Free
      3. Design Documents
      4. Querying Show Functions
      5. Etags
      6. Functions and Templates
      7. Learning Shows
      8. Using Templates
      9. Writing Templates
    5. Chapter 9 Transforming Views with List Functions

      1. Arguments to the List Function
      2. An Example List Function
      3. List Theory
      4. Querying Lists
      5. Lists, Etags, and Caching
  3. Example Application

    1. Chapter 10 Standalone Applications

      1. Use the Correct Version
      2. Portable JavaScript
      3. Applications Are Documents
      4. Standalone
      5. In the Wild
      6. Wrapping Up
    2. Chapter 11 Managing Design Documents

      1. Working with the Example Application
      2. Installing CouchApp
      3. Using CouchApp
      4. Download the Sofa Source Code
      5. Deploying Sofa
      6. Set Up Your Admin Account
      7. Configuring CouchApp with .couchapprc
    3. Chapter 12 Storing Documents

      1. JSON Document Format
      2. Beyond _id and _rev: Your Document Data
      3. The Edit Page
      4. Saving a Document
      5. Wrapping Up
    4. Chapter 13 Showing Documents in Custom Formats

      1. Rendering Documents with Show Functions
      2. Dynamic Dates
    5. Chapter 14 Viewing Lists of Blog Posts

      1. Map of Recent Blog Posts
      2. Rendering the View as HTML Using a List Function
  4. Deploying CouchDB

    1. Chapter 15 Scaling Basics

      1. Scaling Read Requests
      2. Scaling Write Requests
      3. Scaling Data
      4. Basics First
    2. Chapter 16 Replication

      1. The Magic
      2. Simple Replication with the Admin Interface
      3. Replication in Detail
      4. Continuous Replication
      5. That’s It?
    3. Chapter 17 Conflict Management

      1. The Split Brain
      2. Conflict Resolution by Example
      3. Working with Conflicts
      4. Deterministic Revision IDs
      5. Wrapping Up
    4. Chapter 18 Load Balancing

      1. Having a Backup
    5. Chapter 19 Clustering

      1. Introducing CouchDB Lounge
      2. Consistent Hashing
      3. Growing the Cluster
  5. Reference

    1. Chapter 20 Change Notifications

      1. Polling for Changes
      2. Long Polling
      3. Continuous Changes
      4. Filters
      5. Wrapping Up
    2. Chapter 21 View Cookbook for SQL Jockeys

      1. Using Views
      2. Look Up by Key
      3. Look Up by Prefix
      4. Aggregate Functions
      5. Get Unique Values
      6. Enforcing Uniqueness
    3. Chapter 22 Security

      1. The Admin Party
      2. Basic Authentication
      3. Cookie Authentication
      4. Network Server Security
    4. Chapter 23 High Performance

      1. Good Benchmarks Are Non-Trivial
      2. High Performance CouchDB
      3. Bulk Inserts and Mostly Monotonic DocIDs
      4. Bulk Document Inserts
      5. Batch Mode
      6. Single Document Inserts
      7. Hovercraft
      8. Trade-Offs
    5. Chapter 24 Recipes

      1. Banking
      2. Ordering Lists
      3. Pagination
  6. Appendixes

    1. Appendix Installing on Unix-like Systems

      1. Debian GNU/Linux
      2. Ubuntu
      3. Gentoo Linux
      4. Problems
    2. Appendix Installing on Mac OS X

      1. CouchDBX
      2. Homebrew
      3. MacPorts
    3. Appendix Installing on Windows

    4. Appendix Installing from Source

      1. Dependencies
      2. Installing
      3. Security Considerations
      4. Running Manually
      5. Running As a Daemon
      6. Troubleshooting
    5. Appendix JSON Primer

      1. Data Types
    6. Appendix The Power of B-trees

  1. Colophon

View Full Table of Contents
Product Details
Title:
CouchDB: The Definitive Guide
By:
J. Chris Anderson, Jan Lehnardt, Noah Slater
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
January 2010
Ebook Release:
January 2010
Pages:
272
Print ISBN:
978-0-596-15589-6
| ISBN 10:
0-596-15589-1
Ebook ISBN:
978-1-4493-7968-1
| ISBN 10:
1-4493-7968-0
Customer Reviews
About the Authors
  1. J. Chris Anderson

    J. Chris Anderson is co-founder of Grabb.it, a Portland-based web startup which provides Web scale analytics for the music industry. He specialises in web search and large scale CouchDB deployment, both for Grabb.it and as an independent consultant.

    View J. Chris Anderson's full profile page.

  2. Jan Lehnardt

    Jan Lehnardt is also an Apache CouchDB committer and co-founder of Relaxed Technologies. Jan hacks on all parts of the web technology stack and focuses on making developers' lives easier.

    View Jan Lehnardt's full profile page.

  3. Noah Slater

    Noah Slater is an Apache CouchDB committer and release manager. He works with the community to get CouchDB running in as many places as possible.

    View Noah Slater's full profile page.

Colophon

The animal on the cover of CouchDB: The Definitive Guide is a Pomeranian dog (Canis familiaris), a small variety of the generally larger German Spitz breed, named for the Baltic region of Pomerania (today spilt between northeastern Germany and northern Poland) where it was first bred.

Originally, Pomeranians were closer in size to their German Spitz relatives-weighing 30-50 pounds-and were bred as herding dogs because of their intelligence, energy, and loyalty. From the late 19th century, however, breeders began to favor increasingly smaller dogs, a move caused in large part by Queen Victoria's affinity for that variety.

Today, Pomeranians are classed as "toy dogs," weighing only 4-7 pounds, and are particularly kept as small pets and show dogs. The Pomeranian exhibits many of the physical and behavioral characteristics of its larger ancestors and relatives. It has a short, pointed muzzle, upright and pointed ears, a large bushy tail carried curled over the back, and is especially spirited and friendly. Pomeranians are also particularly noted for their double coat-a soft and dense undercoat and a long, straight and harshly textured outer coat-and come in a wide variety of colors, including white, black, brown, red, orange, sable, spotted, or any combination thereof. Because of their small size, Pomeranians are able to exercise sufficiently in small indoor spaces if taken for a daily walk, and consequently make excellent apartment pets.

The cover image is from Lydekker's Royal Natural History. The cover font is Adobe ITC Garamond. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSansMonoCondensed.

  • Book cover of CouchDB: The Definitive Guide