我使用分页通过大量的数据收集(大约50万行)使用PagingState,并在此过程中执行一些商业智能。为了能够恢复我创建的这个表的过程..。
/**
* This table stores temporary paging state
*/
CREATE TABLE IF NOT EXISTS lp_operations.paging_state (
id text, // ID of process
pos bigint, // current position
page text, // paging state
info text, // info json
finished tinyint, // finished
PRIMARY KEY (id)
) WITH default_time_to_live = 28800; // 8 hours
..in,我存储当前页面(PagingState的字符串表示)和与计算相关的JSON元数据。
问题
发布于 2017-04-21 09:28:24
不,卡桑德拉驾驶员的寻呼状态不会过期。
因为每次使用分页状态进行查询时,cassandra实际上每次都执行查询。它不会存储你的结果。分页状态只需告诉cassandra,驱动程序从哪个索引中需要数据。
由于内部实现的详细信息,PagingState实例不能跨本机协议版本进行移植。在以下情况下,这可能成为一个问题:
来源:http://docs.datastax.com/en/developer/java-driver/3.2/manual/paging/
https://stackoverflow.com/questions/43537371
复制相似问题