Contents
Preface
IntroductionConventions Used in This BookUsing Code ExamplesSafari® Books OnlineHow to Contact UsAcknowledgements1. Why CouchDB?
Learning to RelaxA Different Data ModelReplicationEventual ConsistencyData: Local, Remote, EverywhereCouchDB Deployment and Peformance2. Installation
Installation on LinuxInstallation on Mac OS XUsing HomebrewUsing MacPortsInstallation on WindowsInstallation from SourceConfiguring and Building CouchDBRunning CouchDBNext Steps3. CouchDB Basics
Using FutonManaging Databases and DocumentsConfiguring ReplicationPopulating a Simple DatabaseCreating DatabasesCreating DocumentsUpdating DocumentsDeleting DocumentsDeleting DatabasesCommon OperationsHTTP OperationsErrorsHTTP HeadersRequest HeadersResponse HeadersHTTP URL PathsJSONDocumentsDocument StructureDocument TypesStructure and Consistency4. Design Documents
Creating Design DocumentsShowsViewsView BasicsQuerying a ViewQuerying on Complex DataQuerying Compound DataReduce FunctionsBuilt-in _countBuilt-in _sumBuilt-in _statsCustom reduce functionsError handling in viewsTemporary viewsQuerying View ResultsLists
Overview
CouchDB is a new breed of database for the Internet, geared to meet the needs of today’s dynamic web applications. With this concise introduction, you’ll learn how CouchDB’s simple model for storing, processing, and accessing data makes it ideal for the type of data and rapid response users now demand from your applications—and how easy CouchDB is to set up, deploy, maintain, and scale.
The code-packed examples in this book will help you learn how to work with documents, populate a simple database, replicate data from one database to another, and a host of other tasks.
- Install CouchDB on Linux, Mac OS X, Windows, or (if you must) from the source code
- Interact with data through CouchDB’s RESTful API, and use standard HTTP operations, such as PUT, GET, POST, and DELETE
- Use Futon—CouchDB’s web-based interface— to manage databases and documents, and to configure replications
- Learn how to create, update, and delete documents in JSON format, and how to create and delete databases
- Work with design documents to get the formatting and indexing your application requires
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access