cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: limit the size of data type LIST
Date Thu, 13 Aug 2015 16:55:49 GMT
This sounds like something you do on the client side BEFORE you insert. Or are you wanting
to limit the size of the list coming out to the client?

Sean Durity
Lead Cassandra Admin, Big Data Team

From: yuankui []
Sent: Thursday, August 13, 2015 9:06 AM
Subject: limit the size of data type LIST

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` -


The information in this Internet Email is confidential and may be legally privileged. It is
intended solely for the addressee. Access to this Email by anyone else is unauthorized. If
you are not the intended recipient, any disclosure, copying, distribution or any action taken
or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed
to our clients any opinions or advice contained in this Email are subject to the terms and
conditions expressed in any applicable governing The Home Depot terms of business or client
engagement letter. The Home Depot disclaims all responsibility and liability for the accuracy
and content of this attachment and for any damages or losses arising from any inaccuracies,
errors, viruses, e.g., worms, trojan horses, etc., or other items of a destructive nature,
which may be contained in this attachment and shall not be liable for direct, indirect, consequential
or special damages in connection with this e-mail message or its attachment.

View raw message