Couchbase Server 4.0 is both a document and a key-value data store. In this talk, I detail the steps for designing an efficient data model for Couchbase Server with examples that demonstrate when referencing vs embedding is the right choice. I also walk through how N1QL, the new SQL-like query language for JSON data, makes it easy to reshape the data into the format your application excepts without friction.