incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Caprari <matteo.capr...@gmail.com>
Subject Re: schema design question
Date Tue, 09 Mar 2010 13:30:55 GMT
On Tue, Mar 9, 2010 at 1:23 PM, Jonathan Ellis <jbellis@gmail.com> wrote:
> One quad-core node can handle ~14000 inserts per second so you are in
> good shape.

Well, yeah!

>> instead of 'all users that liked N items'?
>
> That's true.  So you'd want to use a custom comparator where first 64
> bits is the Long and the rest is the userid, for instance.
>
> (Long + something else is common enough that we might want to add it
> to the defaults...)

What about using a SuperColumn for each like-count and then the list
of users that hit that level?

hits {
 '100': [ user_1, user_2 ],
'33': [ ... ]
}


Very helpful, thanks
--
:Matteo Caprari
matteo.caprari@gmail.com

Mime
View raw message