Tag: queries

Caching queries in Couchbase for high performance
Starting from version 2.0, Couchbase server offers a powerful way of creating indexes for JSON documents through the concept of views. Using views, it is possible to define primary indexes, composite indexes and aggregations allowing to: . query documents...

Understanding group_level in View Queries with Compound Keys
Querying Views is what views are all about. Our documentation is great and can be found here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views.html Compound Keys Just to illustrate how group level works, let’s use a Map function that sorts users by the latest login timestamp, converting...

Understanding Letter Ordering in View Queries
Map/Reduce Views are an important part of Couchbase 2.0 and understanding how to query them is also important. Our documentation is great and can be found here: http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views.html One of the subtleties is understanding Unicode Collation ordering of letters which is...