When: Mon February 25, 2013 8:00 am
Location: Bocoup Loft, 355 Congress Street, Boston, MA
Cover the primary features of Couchbase 2.0: JSON support, Indexing (Map/Reduce), Elastic Search, XDCR, Basic Architecture.
Get Setup with Couchbase 2.0 on laptop with beer-sample
Understand the Setup options in the Wizard (slides)
Tour of the Admin Console (slides)
Cover the anatomy of a Document, metadata and document data. Cover all the basic operations of storing a JSON document, and creating atomic counters. Operations: connect, get, set, add, replace, cas, incr, decr, and get into a few specifics like get with lock and cas.
Install/Setup your preferred Language SDK on your laptop
Make a Connection to Couchbase Server 2.0
Do basic operations: get, set, add, replace, incr, decr
Do advanced operations: get with lock, cas
Create a Class and save to JSON, and then retrieve and load the Class from the JSON, make changes to the object model and update the schema
12:40 - 1:30 pm LUNCH
Cover why Views are used, the basic use cases for Views. Cover the anatomy of map/reduce functions, simple and compound keys using beer-sample database/views. Cover the differences between an Indexer (Design Document) and an Index (View) in terms of resources, updates, etc. Cover development subset, full cluster data, and publishing a Design Doc as well as best practices. Cover querying features: group, group level, startkey, endkey, startkey_docid, endkey_docid, stale, reduce, descending. Show variantions on the examples, how you would change them to achieve other things.
Create a View object in your preferred language
Query a beer-sample view in your preferred language
Vary the query on beer-sample view to get different results (startkey, endkey)
Vary the query on beer-sample view to get different results (group, reduce)
Create a new view using the beer-sample
Query the newly created view
We will go through a real world use case that uses a plethora of Couchbase features including Document Design, Modeling,
Statistics Gathering, View Querying, and Elastic Search integration. The project was a dynamic Learning Portal as a collaboration between McGraw Hill and Couchbase and is completely open sourced.