cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuankui <>
Subject limit the size of data type LIST
Date Thu, 13 Aug 2015 13:05:54 GMT
hi, friends

I am design a message history table

CREATE TABLE message_history (
    user_name text PRIMARY KEY,
    time timestamp,
    message_details list<text>, 

so that I can query a user's message via primary key `user_name` at once.

but the item in `message_details` list may be very long so that I want to limit the list size
of the message_details list.

is there a way to solve this?

like a redis operation `LTRIM` - <>

View raw message