Apache CouchDB
2.1.1

Table of Contents

  • 1. Introduction
  • 2. Installation & First-Time Setup
  • 3. Configuring CouchDB
  • 4. Replication
  • 5. CouchDB Maintenance
  • 6. Design Documents
    • 6.1. Design Documents
    • 6.2. Guide to Views
      • 6.2.1. Introduction to Views
      • 6.2.2. Views Collation
      • 6.2.3. Joins With Views
      • 6.2.4. View Cookbook for SQL Jockeys
      • 6.2.5. Pagination Recipe
  • 7. CouchDB Externals API
  • 8. Query Server
  • 9. Fauxton
  • 10. API Reference
  • 11. Cluster Reference
  • 12. JSON Structure Reference
  • 13. Experimental Features
  • 14. Contributing to this Documentation
  • 15. Release History
  • 16. Security Issues Information
  • 17. Reporting New Security Problems with Apache CouchDB
  • 18. About CouchDB Documentation

Quick Reference

  • HTTP API Reference
  • Configuration Reference

More Help

  • CouchDB Homepage
  • Mailing Lists
  • IRC
  • Issue Tracker
  • Download Docs
Apache CouchDB
  • Docs »
  • 6. Design Documents »
  • 6.2. Guide to Views
  • View page source

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
Next Previous

© Copyright 2017, Apache Software Foundation. Revision 836ddf03.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: 2.1.1
Versions
latest
stable
2.1.1
2.1.0
1.6.1
master
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.