【发布时间】:2016-11-17 11:30:15
【问题描述】:
我正在使用 SqlFieldsQuery 缓存约 1_000_000 行。
QueryCursor<List<?>> cursor = cache.query(new SqlFieldsQuery("select num from some_cache"))
我已经阅读了有关查询游标惰性的内容 (http://apacheignite.gridgain.org/docs/cache-queries#section-querycursor)。但似乎缓存中的所有数据都是一次加载的。因为我的查询需要很长时间,并且 cursor.getAll() 会立即返回包含所有数据的集合。
这是缺少某些配置还是预期的行为?
【问题讨论】: