Apache Doris 中文技术论坛
Questions Tags Users Badges

[查询问题] 长sql导致表查询缓慢

Asked Jan 2, 2025 Modified Jan 6, 2025
Viewed 87
2.1 query

当业务程序发送一条长sql (21w字符)查询时, 查询表进行的其他查询会耗时会显著增加,主要表现在profile中Analysis Time 时间 从ms 到s级 版本2.1.7 arm环境

  1. 长sql 包含两个in条件 每个in中值项在1000个文本
  2. 执行长sql过程中的普通查询
    image.png

此时栈日志 中阻塞的查询线程
image.png

edited Jan 6, 2025
maple10
asked Jan 2, 2025
1 Answers

设置这个参数之后再查询试试

set max_scan_key_num = 96

edited Jan 1, 1970
黄海军@SelectDB5218
answered Jan 3, 2025
Related Questions
AUTO LIST PARTITION 分区名长度为何限制 50?能否配置放宽/取消?
我们通过hive catalog外表同步数据,有时候hive表会很大导致内存占满了会杀掉其他任务,限制内存又会导致同步任务失败,有什么方法可以稳定一下呢,同步效率慢一点什么的也没问题
1 answers
doris2.1.11重复建表报错内容异常,不会提示表已经存在
1 answers
doris be启动报错
2 answers
使用docker-compose配置doris FE启动成功 但BE启动失败
1 answers
Doris的json解析问题
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.