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.3. Views and Stored Data

9.3.1. JSON Basics
9.3.2. Document Metadata
9.3.3. Non-JSON Data
9.3.4. Document Storage and Indexing Sequence

The view system relies on the information stored within your cluster being formatted as a JSON document. The formatting of the data in this form allows the individual fields of the data to be identified and used at the components of the index.

Information is stored into your Couchbase database the data stored is parsed, if the information can be identified as valid JSON then the information is tagged and identified in the database as valid JSON. If the information cannot be parsed as valid JSON then it is stored as a verbatim binary copy of the submitted data.

Figure 9.6. Views — Data Storage

Views — Data Storage

When retrieving the stored data, the format of the information depends on whether the data was tagged as valid JSON or not:

The significance of the returned structure can be seen when editing the view within the Web Console.