Meituan-Dianping / Meituan-Dianping/SQLAdvisor
修复了一些安装问题和代码bug
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 5.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
可以参考这个仓库的代码,修复了这个项目里发现的一些问题
https://github.com/iwanghc/SQLAdvisor
安装问题:
- CentOS7安装时下载不了Percona56问题(最后一步make时报错问题)
代码bug:
- 修复了推荐的索引列使用了别名问题,代码在处理GROUP BY和ORDER BY字段时存在的bug。
- 修复了驱动表选择错误问题,原逻辑仅根据explain select * from xxx 来获取结果集大小,但是实际上可能受原始sql中where条件的影响。
- 修复嵌套子查询中忽略了子查询未推荐子查询表的索引问题。
- 修复 MySQL5.7 从执行计划中获取影响行数时报错问题(Segmentation fault)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the referenced SQLAdvisor repository and reproducing the CentOS 7 installation failure involving Percona 5.6. Then trace the index recommendation logic for GROUP BY, ORDER BY, driver-table selection, nested subqueries, and MySQL 5.7 execution-plan row counts. Done means the installation succeeds and each listed bug is fixed without the reported incorrect recommendations or segmentation fault.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, mysql
- Domain
- databases, operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100