6.2. Guide to Views — Apache CouchDB 2.1 Documentation

# 6.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

- 6.2.1. Introduction to Views
  - What Is a View?
  - Efficient Lookups
    - Find One
    - Find Many
    - Reversed Results
  - The View to Get Comments for Posts
  - Reduce/Rereduce
  - Lessons Learned
  - Wrapping Up
- 6.2.2. Views Collation
  - Basics
  - Examples
  - Sorting by Dates
  - String Ranges
  - Collation Specification
    - Key ranges
    - Complex keys
  - _all_docs
  - Raw collation
- 6.2.3. Joins With Views
  - Linked Documents
  - Using View Collation
    - Approach #1: Comments Inlined
    - Approach #2: Comments Separate
    - Optimization: Using the Power of View Collation
- 6.2.4. View Cookbook for SQL Jockeys
  - Using Views
    - Defining a View
    - Querying a View
    - MapReduce Functions
    - Map functions
  - Look Up by Key
  - Look Up by Prefix
  - Aggregate Functions
  - Get Unique Values
  - Enforcing Uniqueness
- 6.2.5. Pagination Recipe
  - Example Data
  - A View
  - Setup
  - Paging
  - Paging (Alternate Method)
  - Jump to Page