Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] CK 查询接口速度优化 #7816

Open
2 of 3 tasks
WongLoKat opened this issue Aug 15, 2024 · 5 comments
Open
2 of 3 tasks

[FR] CK 查询接口速度优化 #7816

WongLoKat opened this issue Aug 15, 2024 · 5 comments
Assignees
Labels

Comments

@WongLoKat
Copy link

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

针对简单的 SQL 语句查询,希望直接提供一个 simple_query 接口,不再针对简单 sql 执行完整的 sql 解析流程

Use case

CK 查询时,针对 select 所需要查询的字段,会遍历所有字段都执行 GetTagDescriptions() 方法,而 GetTagDescriptions() 方法本身又会进行多次 CK 查询,导致速度很慢
1

尤其在火焰图场景下,因为火焰图查询所有相关联的 l7_flow_log 时允许循环 30 次,导致进行大量 CK 查询

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@yujianweilai
Copy link

我这边遇到的现象是:点击一个traceid,展示火焰图时,要等待一段时间,才能出图。是你说的这个原因吗

@WongLoKat
Copy link
Author

我这边遇到的现象是:点击一个traceid,展示火焰图时,要等待一段时间,才能出图。是你说的这个原因吗

是的,除了这个,还有 deepflow-app 查询也不是很快的原因,这 2 个 issue 他们都已经在处理了

@yujianweilai
Copy link

我这边遇到的现象是:点击一个traceid,展示火焰图时,要等待一段时间,才能出图。是你说的这个原因吗

是的,除了这个,还有 deepflow-app 查询也不是很快的原因,这 2 个 issue 他们都已经在处理了

收到。多谢。

@yujianweilai
Copy link

另外,请问一下,火焰图中,有空行,类似下图这样,你那边有吗? 这是什么原因了解吗
image

@WongLoKat
Copy link
Author

另外,请问一下,火焰图中,有空行,类似下图这样,你那边有吗? 这是什么原因了解吗 image

也有,可能是没采集到,或者采集到但传输到 server 端数据丢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants