incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wangpei (Peter)" <>
Subject Re: managing a limited-length list as a value
Date Sat, 19 Feb 2011 14:27:17 GMT
Maybe you can try this: use MAX-time as your column name, then get the first limit columns.

发件人: Benson Margulies [] 
发送时间: 2011年2月19日 2:11
主题: managing a limited-length list as a value

The following is derived from the redis list operations.

The data model is that a key maps to an list of items. The operation
is to push a new item into the front, and discard any items from the
end above a threshold number of items.

of course, this can be done by reading a value, fiddling with it, and
writing it back. I write this email to wonder if there's any native
trickery to avoid having to read the value, but rather permitting some
sort of 'push' operation.
View raw message