Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
9 Views and Indexes
Chapter Sections
Chapters

9.9. View and Query Pattern Samples

9.9.1. General Advice
9.9.2. Validating Document Type
9.9.3. Document ID (Primary) Index
9.9.4. Secondary Index
9.9.5. Using Expiration Metadata
9.9.6. Emitting Multiple Rows
9.9.7. Date and Time Selection
9.9.8. Selective Record Output
9.9.9. Sorting on Reduce Values
9.9.10. Solutions for Simulating Joins
9.9.11. Simulating Transactions
9.9.12. Simulating Multi-phase Transactions

Building views and querying the indexes they generate is a combined process based both on the document structure and the view definition. Writing an effective view to query your data may require changing or altering your document structure, or creating a more complex view in order to allow the specific selection of the data through the querying mechanism.

For background and examples, the following selections provide a number of different scenarios and examples have been built to demonstrate the document structures, views and querying parameters required for different situations.