开发者

Getting the last timestamp from Cassandra

开发者 https://www.devze.com 2023-02-19 03:21 出处:网络
Is there a way to get the last (ie. gre开发者_开发百科atest) timestamp value provided to Cassandra?It\'s possible, but not sensible (!), to do this by retrieving all columns in the system and keeping

Is there a way to get the last (ie. gre开发者_开发百科atest) timestamp value provided to Cassandra?


It's possible, but not sensible (!), to do this by retrieving all columns in the system and keeping track of the latest timestamp.

Why do you want to do this? You could perhaps write a special column containing the latest timestamp, and update it every time you insert/update/delete anything else...


this is possible, and is exposed through the Thrift interface. This was provided by thobbs in phpcassa through the following patch:

https://github.com/thobbs/phpcassa/commit/05830b0c275905e30b504813a838370cad40c2a1

public $include_timestamp = false;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号