Monday, July 29, 2013

Caching queries in Couchbase for high performance

0 comments
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 on different JSON properties
  • create statistics and aggregates 

Views generate materialized indexes so provide a fast and efficient way for executing pre-defined queries. However in Couchbase 2.x, indexes are stored to disk and read from disk for each query, which has some performance implications. In the future Couchbase will allow caching indexes into the managed cache similar to what is done for JSON documents to speed up queries.

Read more here.

Leave a Reply

 
All Tech News IN © 2011 DheTemplate.com & Main Blogger .