incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <>
Subject Re: Splitting the data of a single blog into 2 CFs (to implement effective caching) according to views.
Date Tue, 08 Mar 2011 08:55:07 GMT
You could duplicate the data from CF1 in CF2 as well (use a batch_mutation through whatever
client you have). So when serving the second page you only need to read one row from CF2.


On 8/03/2011, at 8:13 PM, Norman Maurer wrote:

> Yeah this make sense as far as I can tell.
> Bye,
> Norman
> 2011/3/8 Aditya Narayan <>
> My application  displays list of several blogs' overview data (like blogTitle/ nameOfBlogger/
shortDescrption for each blog) on 1st page (in very much similar manner like Digg's newsfeed)
and when the user selects a particular blog to see., the application takes him to that specific
blog's full page view which displays entire data of the blog. 
> Thus I am trying to split a blog's data in *two rows*, in two **different CFs ** (one
CF is row-cached(with less amount of data in each row) and another(with each row having entire
remaining blog data) without caching).
> Data for 1st page view (like titles and other overview data of a blog) are put in a row
in 1st CF. This CF is cached so as to improve the performance of heavily read data. Only the
data from cached CF is read for 1st page. The other remaining data(bulk amount of text of
blog and entire comments data)  are stored as another row in 2nd CF. For 2nd page, **rows
from both of the two CFs have to be read**. This will take two read operations.
> Does this seem to be a good design ?

View raw message