You are previewing Developing with Couchbase Server.
O'Reilly logo
Developing with Couchbase Server

Book Description

Today’s highly interactive websites pose a challenge for traditional SQL databases—the ability to scale rapidly and serve loads of concurrent users. With this concise guide, you’ll learn how to build web applications on top of Couchbase Server 2.0, a NoSQL database that can handle websites and social media where hundreds of thousands of users read and write large volumes of information.

Table of Contents

  1. Developing with Couchbase Server
  2. Preface
    1. Introduction
    2. Where to Get Help on Couchbase Server
    3. Conventions Used in This Book
    4. Using Code Examples
    5. Safari® Books Online
    6. How to Contact Us
    7. Acknowledgments
  3. 1. Couchbase Overview
    1. Architecture and Structure
    2. Buckets and vBuckets
    3. Data Storage and Retrieval
      1. Time to Live (TTL)
      2. Data Consistency
      3. Data Concurrency
    4. Views, Indexes, and Querying
    5. Comparing Couchbase to SQL Databases
    6. Use Cases
  4. 2. Getting Started
    1. Installing Couchbase Server
    2. Couchbase Client Libraries
      1. Java
      2. .NET
      3. Python
      4. Ruby
      5. PHP
    3. Buckets
    4. Connecting to a Cluster
  5. 3. Document-based Database Design
    1. JSON Overview
    2. Modeling Recipe Data
      1. Core Data
      2. Keywords or Tags
      3. Ingredients
      4. Methods
    3. Related Data
  6. 4. Getting Data In and Out
    1. Basic Interface
    2. Document Identifiers
    3. Time to Live (TTL)
    4. Storing Data
    5. Retrieving Data
      1. Retrieving in Bulk
    6. Updating Data
    7. Concurrent Updates
    8. Server-side Updates
    9. Asynchronous Operations
    10. Pessimistic Locking
    11. Deleting Data
  7. 5. Storing and Updating Recipes
    1. Initial Storage
    2. Editing
    3. Loading Recipe
    4. Storing Related Data
    5. Loading Related Data
    6. Documents Aren’t Everything
  8. 6. Views and Queries
    1. Creating Views on Your Data
      1. Maps, Reduce, Views, and Design Documents
      2. View Contents
    2. Accessing Views from a Client Library
    3. Querying and Selection
    4. Other Options
    5. Dealing with Different Document Formats
    6. View Values and Reduction
    7. Index Updates
      1. Stale Indexes and Updates
    8. Searching and Querying Examples
      1. Searching By Ingredient
      2. Searching by Recipe Time
      3. Searching by Ingredient and Time
    9. Reductions
      1. The Built-in _count Function
      2. The _sum Function
      3. The Built-in _stats Function
    10. Document Metadata
  9. 7. Next Steps
    1. Couchbase Server Resources
    2. Couchbase Developer Resources
  10. About the Author
  11. Colophon
  12. Copyright