Apache CouchDB® Logo
latest

Table of Contents

User Guides

  • 1. Introduction
  • 2. Replication
  • 3. Design Documents
  • 4. Best Practices
    • 4.1. Document Design Considerations
    • 4.2. Document submission using HTML Forms
    • 4.3. Using an ISO Formatted Date for Document IDs
    • 4.4. JavaScript development tips
    • 4.5. View recommendations
    • 4.6. Reverse Proxies

Administration Guides

  • 1. Installation
  • 2. Setup
  • 3. Configuration
  • 4. Cluster Management
  • 5. Maintenance
  • 6. Fauxton
  • 7. Experimental Features

Reference Guides

  • 1. API Reference
  • 2. JSON Structure Reference
  • 3. Query Server

Other

  • 1. Release Notes
  • 2. Security Issues / CVEs
  • 3. Reporting New Security Problems with Apache CouchDB
  • 4. License
  • 5. Contributing to this Documentation

Quick Reference Guides

  • API Quick Reference
  • Configuration Quick Reference

More Help

  • CouchDB Homepage
  • Mailing Lists
  • IRC
  • Issue Tracker
  • Download Docs
Apache CouchDB®
  • Docs »
  • 4. Best Practices
  • View page source

4. Best Practices¶

In this chapter, we present some of the best ways to use Apache CouchDB. These usage patterns reflect many years of real-world use. We hope that these will jump-start your next project, or improve the performance of your current system.

  • 4.1. Document Design Considerations
    • 4.1.1. Don’t rely on CouchDB’s auto-UUID generation
    • 4.1.2. Alternatives to auto-incrementing sequences
    • 4.1.3. Pre-aggregating your data
    • 4.1.4. Designing an application to work with replication
    • 4.1.5. Adding client-side security with a translucent database
  • 4.2. Document submission using HTML Forms
    • 4.2.1. The HTML form
    • 4.2.2. The update function
    • 4.2.3. Example output
  • 4.3. Using an ISO Formatted Date for Document IDs
  • 4.4. JavaScript development tips
  • 4.5. View recommendations
    • 4.5.1. Deploying a view change in a live environment
  • 4.6. Reverse Proxies
    • 4.6.1. Reverse proxying with HAProxy
    • 4.6.2. Reverse proxying with nginx
    • 4.6.3. Reverse Proxying with Caddy
    • 4.6.4. Reverse Proxying with Apache HTTP Server
Next Previous

© Copyright 2019, Apache Software Foundation. CouchDB® is a registered trademark of the Apache Software Foundation. Revision c3a23421.

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

Free document hosting provided by Read the Docs.