Search:

Search all manuals
Search this manual
Manual
Couchbase Developer's Guide 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Server 2.0 Manual
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
1.1 Understanding Couchbase Concepts
Chapter Sections
Chapters

1.1.1. Couchbase as Document Store

The primary unit of data storage in Couchbase Server 2.0 is a JSON document, which is a data structure capable of holding arrays and other complex information. JSON documents are information-rich, flexible structures that enable you to model objects as individual documents. By using JSON documents to model your data, you can construct your application data as individual documents which would otherwise require rigidly-defined relational database tables. This provides storage for your web application which is well suited to serialized objects and the programming languages that use them. Notably in Couchbase Server 2.0, as in previous versions of the server, you can also store binary objects, such as integers and strings.

Because you model your application objects as documents, you do not need to perform schema migrations. The documents you use and the fields they store will indicate any relationships between application objects; therefore to update the structure of objects you store, you merely change the document structure that you write to Couchbase Server.

When you use Couchbase Server as a store for JSON documents, you also get the ability to index and query your records. Couchbase Server 2.0 provides a JavaScript-based query engine you use to find records based on field values. For more information, see Chapter 4, Finding Data with Views.

For more information about working with JSON documents and Couchbase, see, Chapter 2, Modeling Documents.