You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

需求

当一条查询sql涉及的列数过多,如: select * from root;服务器端内存无法容纳这么多列的查询结果集,就会抛出OOM异常。这条异常查询还会影响到其他正常查询。


解决方案

总体思想

限制每条查询能够涉及的总列数上限(由配置文件中的max_deduplicated_path_num参数决定,默认值为1000),单次查询结果集的行数与指定的fetch_size有关,

  • No labels