Try the request tracing in 1.2 
http://www.datastax.com/dev/blog/tracing-in-cassandra-1-2 it may point to the 
different. 

> In our model the secondary index in also unique, as the primary key is. Is it 
> better, in this case, to create another CF mapping the secondary index to the 
> key?
IMHO if you have a request that is frequently used as part of a hot code path 
it is still a good idea to support that with a custom CF. 

Cheers

-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 27/04/2013, at 12:27 AM, Francisco Nogueira Calmon Sobral 
<fsob...@igcorp.com.br> wrote:

> Hi all!
> 
> We are using Cassandra 1.2.1 with a 8 node cluster running at Amazon. We 
> started with 6 nodes and added the 2 later. When performing some reads in 
> Cassandra, we observed a high difference between gets using the primary key 
> and gets using secondary indexes:
> 
> 
> [default@Sessions] get Users where mahoutUserid = 30127944399716352;
> -------------------
> RowKey: STQ0TTNII2LS211YYJI4GEV80M1SE8
> => (column=mahoutUserid, value=30127944399716352, timestamp=1366820944696000)
> 
> 1 Row Returned.
> Elapsed time: 3508 msec(s).
> 
> [default@Sessions] get Users['STQ0TTNII2LS211YYJI4GEV80M1SE8'];
> => (column=mahoutUserid, value=30127944399716352, timestamp=1366820944696000)
> Returned 1 results.
> 
> Elapsed time: 3.06 msec(s).
> 
> 
> In our model the secondary index in also unique, as the primary key is. Is it 
> better, in this case, to create another CF mapping the secondary index to the 
> key?
> 
> Best regards,
> Francisco Sobral.

Reply via email to