Repository Details
Shared by
HelloGitHub Rating
0 ratings
SQL 自动优化和改写的工具
Past 6 days Received -2 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周日 | 8,749 | — |
| 周一 | 8,749 | 0 |
| 周二 | 8,750 | +1 |
| 周三 | 8,748 | -2 |
| 周四 | 8,748 | 0 |
| 周五 | 8,747 | -1 |
8.7k
Stars
Yes
Chinese
Go
Language
No
Active
22
Contributors
76
Issues
Yes
Organization
None
Latest
1k
Forks
Apache-2.0
License
SQL 自动优化和改写的工具。可以自动优化 MySQL 语法族,并且给出为什么要这样优化的理由。功能特点:
- 跨平台支持
- 目前只支持 MySQL 语法族协议的 SQL 优化
- 支持基于启发式算法的语句优化
- 支持复杂查询的多列索引优化(UPDATE、INSERT、DELETE、SELECT)
- 等等
```
echo "select title from sakila.film" | ./soar
# Query: 25807E6B94BEA72C
★ ★ ★ ★ ☆ 80分
SELECT
title
FROM
sakila. film
## 最外层SELECT未指定WHERE条件
* **Item:** CLA.001
* **Severity:** L4
* **Content:** SELECT语句没有WHERE子句,可能检查比预期更多的行(全表扫描)。对于SELECT COUNT(\*)类型的请求如果不要求精度,建议使用SHOW TABLE STATUS或EXPLAIN替代。
```
Included in:
Vol.32
Comments
Rating:
No comments yet