Maybe you can build a index-table, like rowkey:[USER_ID/ProductID] = { rk => main-table's rowkey}
when view a product, check Index, find the rk, use the rk to get row from Main-talbe. delete this row, modify index-talbe's rk. of cause, use coprocessor to handle this may make it simple... 2012/2/9 Mark <static.void....@gmail.com> > We would like to maintain a history of all product views by a given user. > We are currently using a row key like USER_ID_ID/TIMESTAMP. This works > however we would like to maintain a unique list of these users to product > views. > > So if i have rows like: > > mark/1328731167014262 = { data => 'Product 123' } > mark/1328731162502304 = { data => 'Product 456' } > mark/1328731157711375 = { data => 'Product 789' } > > And I view Product 789 again I want it to be like: > > mark/1328731292355173 = { data => 'Product 789' } > mark/1328731167014262 = { data => 'Product 123' } > mark/1328731162502304 = { data => 'Product 456' } > > So it basically replaces the old value. How can this be accomplished? > > Thanks >