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

SOAR工具给出的explain结果与直接在数据库中执行explain+SQL的结果有差异 #276

Open
OCod opened this issue Mar 10, 2021 · 1 comment

Comments

@OCod
Copy link

OCod commented Mar 10, 2021

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.

SELECT
a.table_name,
a.engine,
a.row_format AS format,
a.table_rows,
a.avg_row_length AS avg_row,
round(
(a.data_length + a.index_length) / 1024 / 1024,
2
) AS total_mb,
round(a.data_length / 1024 / 1024, 2) AS data_mb,
round(a.index_length / 1024 / 1024, 2) AS index_mb,
a.create_time,
b.last_update AS last_analyzed
FROM
information_schema.tables a,
mysql.innodb_table_stats b
WHERE
a.table_schema = b.database_name
AND a.table_name = b.table_name
AND a.table_schema = 'mysql'
AND a.table_name = 'user'

SOAR工具给出的explain结果与直接在数据库中执行explain+SQL的结果有差异

  1. What did you expect to see?

image

  1. What did you see instead?

image

  1. What version of are you using (soar -version)?

0.11.0

@zhukovaskychina
Copy link

有差异很正常,pingcap的实现的物理计划实现和强mysql版本有差异,这个很正常。

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

No branches or pull requests

2 participants