Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Update data model to store messages in reverse order on disk #16

Open
rstml opened this issue May 8, 2012 · 0 comments
Open

Update data model to store messages in reverse order on disk #16

rstml opened this issue May 8, 2012 · 0 comments

Comments

@rstml
Copy link
Member

rstml commented May 8, 2012

From: http://www.datastax.com/dev/blog/advanced-time-series-with-cassandra

Since Cassandra 0.8, column comparators can easily be reversed. This means that if you’re using timestamps or TimeUUIDs as column names, you can choose to have them sorted in reverse chronological order.

If the majority of your queries ask for the N most recent events in a timeline or N events immediately before a point in time, using a reversed comparator will give you a small performance boost over always setting reversed=True when fetching row slices from the timeline.

This should be useful for MessageMetadata and IndexLabels CFs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant