Apache CouchDB Logo
2.3

Table of Contents

  • 1. Introduction
  • 2. Installation
  • 3. Setup
  • 4. Configuring CouchDB
  • 5. Replication
  • 6. CouchDB Maintenance
  • 7. Design Documents
    • 7.1. Design Documents
    • 7.2. Guide to Views
      • 7.2.1. Introduction to Views
      • 7.2.2. Views Collation
      • 7.2.3. Joins With Views
      • 7.2.4. View Cookbook for SQL Jockeys
      • 7.2.5. Pagination Recipe
  • 8. Query Server
  • 9. Fauxton
  • 10. Best Practices
  • 11. API Reference
  • 12. Cluster Reference
  • 13. JSON Structure Reference
  • 14. Experimental Features
  • 15. Contributing to this Documentation
  • 16. Release History
  • 17. Security Issues Information
  • 18. Reporting New Security Problems with Apache CouchDB
  • 19. About CouchDB Documentation

Quick Reference

  • HTTP API Reference
  • Configuration Reference

Local Links

  • Fauxton

More Help

  • CouchDB Homepage
  • Mailing Lists
  • IRC
  • Issue Tracker
  • Download Docs
Apache CouchDB
  • Docs »
  • 7. Design Documents »
  • 7.2. Guide to Views
  • Edit on GitHub

7.2. Guide to ViewsΒΆ

Views are the primary tool used for querying and reporting on CouchDB documents. There you’ll learn how they works and how to use them to build effective applications with CouchDB

  • 7.2.1. Introduction to Views
    • 7.2.1.1. What Is a View?
    • 7.2.1.2. Efficient Lookups
      • 7.2.1.2.1. Find One
      • 7.2.1.2.2. Find Many
      • 7.2.1.2.3. Reversed Results
    • 7.2.1.3. The View to Get Comments for Posts
    • 7.2.1.4. Reduce/Rereduce
    • 7.2.1.5. One vs. Multiple Design Documents
    • 7.2.1.6. Lessons Learned
    • 7.2.1.7. Wrapping Up
  • 7.2.2. Views Collation
    • 7.2.2.1. Basics
    • 7.2.2.2. Examples
    • 7.2.2.3. Sorting by Dates
    • 7.2.2.4. String Ranges
    • 7.2.2.5. Collation Specification
      • 7.2.2.5.1. Key ranges
      • 7.2.2.5.2. Complex keys
    • 7.2.2.6. _all_docs
    • 7.2.2.7. Raw collation
  • 7.2.3. Joins With Views
    • 7.2.3.1. Linked Documents
    • 7.2.3.2. Using View Collation
      • 7.2.3.2.1. Approach #1: Comments Inlined
      • 7.2.3.2.2. Approach #2: Comments Separate
      • 7.2.3.2.3. Optimization: Using the Power of View Collation
  • 7.2.4. View Cookbook for SQL Jockeys
    • 7.2.4.1. Using Views
      • 7.2.4.1.1. Defining a View
      • 7.2.4.1.2. Querying a View
      • 7.2.4.1.3. MapReduce Functions
      • 7.2.4.1.4. Map functions
    • 7.2.4.2. Look Up by Key
    • 7.2.4.3. Look Up by Prefix
    • 7.2.4.4. Aggregate Functions
    • 7.2.4.5. Get Unique Values
    • 7.2.4.6. Enforcing Uniqueness
  • 7.2.5. Pagination Recipe
    • 7.2.5.1. Example Data
    • 7.2.5.2. A View
    • 7.2.5.3. Setup
    • 7.2.5.4. Paging
    • 7.2.5.5. Paging (Alternate Method)
    • 7.2.5.6. Jump to Page
Next Previous

© Copyright 2018, Apache Software Foundation.

Built with Sphinx using a theme provided by Read the Docs.