当前位置: 动力学知识库 > 问答 > 编程问答 >

database - Cassandra timestamp Sort order

问题描述:

I have a Cassandra table with clustering by timestamp sorted ascending and am doing queries of events in the last 24 hours. I'd like the result set to be sorted by 24 hours ago first with the data first (which is why the column was sorted by timestamp ascending), but am wondering if there are any performance impacts I'm missing since I am always querying by the most recent data, and any timeseries posts I see always suggest sorting by timestamp desc.

分享给朋友:
您可能感兴趣的文章:
随机阅读: