Time to Relax

CouchDB: The Definitive Guide

About the Book

This is the home of a free O’Reilly Media book about Apache CouchDB.

The book is designed to guide you gently through using CouchDB with clear but practical scenarios. We progressively showcase key features, starting with simple document CRUD, working through to advanced MapReduce, and culminate with deployment tuning for performance and reliability.

Sign up to the mailing list to stay updated and discuss changes. Each paragraph has a handy Comment link that allows you to quote text and post a comment to the mailing list. Feel free to make liberal use of this feature.

This book is a work in progress. The number of chapters linked below reflect our progress.

We’re mainly looking for high level commentary on the topics covered and on our clarity, tone, and pacing. Our editor will take care of spelling and other nitpicks.



Part I. Introduction

01. Why CouchDB?

02. Eventual Consistency

03. Getting Started

04. The Core CouchDB API

Part II. Developing with CouchDB

05. Design Documents

06. Finding Your Data with Views

07. Validation Functions

08. Transforming Documents with Show Functions

09. Transforming Views with List Functions

Part III. Example Application

10. Standalone Applications

11. Managing Design Documents with CouchApp

12. Storing Blog Posts in Documents

13. Displaying Blog Posts with Shows

14. Viewing Lists of Blog Posts

15. Accepting Comments

Part IV. Deploying CouchDB

17. Scaling Basics

18. Data Synchronization with Replication

19. Managing Conflicts

20. Load Balancing

21. Clustering CouchDB

Part V. Receipts

22. Banking

23. Ordering Lists

24. Pagination

Part VI. Reference

25. High Performance

26. Testing

27. Views for SQL Jockeys

Part VI. Appendix

A. Installing on Unix-like systems

B. Installing on Mac OS X

C. Installing on Windows

D. Installing from Source

E. Configuring CouchDB

F. JSON Primer

G. The Power of B-Trees