Hi,

Currently, Haihang and Yuan Tian added an improvement to fetch the results of 
show timeseries iteratively to avoid OOM [1].


For data queries, we use the QueryDataSet which provides the hasNext & next 
iterator. Then the client could fetch result by fetchSize.


However, for most metadata queries, the ListDataSet is used, which caches all 
results at server. This may cause OOM.
"show timeseries" query is just one case whose results may be very large and 
use the ListDataSet. 


We'd better check other metadata queries, and when you add a new query type, 
please consider its memory consumption.


[1] https://github.com/apache/incubator-iotdb/pull/1470

Thanks,
--
Jialin Qiao
School of Software, Tsinghua University

乔嘉林
清华大学 软件学院

Reply via email to