Re: indexing rows ordered by int

2010-08-17 Thread Benjamin Black
http://code.google.com/p/redis/wiki/SortedSets On Tue, Aug 17, 2010 at 12:33 PM, S Ahmed wrote: > So when using Redis, how do you go about updating the index? > Do you serialize changes to the index i.e. when someone votes, you then > update the index? > Little confused as to how to go about upda

Re: indexing rows ordered by int

2010-08-17 Thread S Ahmed
So when using Redis, how do you go about updating the index? Do you serialize changes to the index i.e. when someone votes, you then update the index? Little confused as to how to go about updating a huge index. Say you have 1 million stores, and you want to order by the top votes, how would you

Re: indexing rows ordered by int

2010-08-15 Thread Chris Goffinet
Digg is using redis for such a feature as well. We use it on the MyNews - Top in 24 hours. Since we need timestamp ordering + sorting by how many friends touch a story. -Chris On Aug 15, 2010, at 7:34 PM, Benjamin Black wrote: > http://code.google.com/p/redis/ > > On Sat, Aug 14, 2010 at 11:

Re: indexing rows ordered by int

2010-08-15 Thread Benjamin Black
http://code.google.com/p/redis/ On Sat, Aug 14, 2010 at 11:51 PM, S Ahmed wrote: > For CF that I need to perform range scans on, I create separate CF that have > custom ordering. > Say a CF holds comments on a story (like comments on a reddit or digg story > post) > So if I need to order comments

Re: indexing rows ordered by int

2010-08-15 Thread Edward Capriolo
On Sunday, August 15, 2010, S Ahmed wrote: > For CF that I need to perform range scans on, I create separate CF that have > custom ordering. > Say a CF holds comments on a story (like comments on a reddit or digg story > post) > So if I need to order comments by votes, it seems I have to re-inde

indexing rows ordered by int

2010-08-14 Thread S Ahmed
For CF that I need to perform range scans on, I create separate CF that have custom ordering. Say a CF holds comments on a story (like comments on a reddit or digg story post) So if I need to order comments by votes, it seems I have to re-index every time someone votes on a comment (or batch it e