MCPcopy Index your code
hub / github.com/XiaoMi/soar

github.com/XiaoMi/soar @0.11.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.11.0 ↗ · + Follow
693 symbols 2,170 edges 64 files 524 documented · 76% updated 2y ago0.11.0 · 2019-01-21★ 8,76672 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SOAR

Gitter License Go Report Card Build Status GoDoc

Docs | FAQ | 中文

SOAR

SOAR (SQL Optimizer And Rewriter) is a tool, which can help SQL optimization and rewrite. It's developed and maintained by the DBA Team of Xiaomi AI&Cloud.

Features

  • Cross-platform support, such as Linux, Mac, and Windows
  • Support Heuristic Rules Suggestion
  • Support Complicate SQL Indexing Optimize
  • Support EXPLAIN analyze for query plan
  • Support SQL fingerprint, compress and built-in pretty print
  • Support merge multi ALTER query into one SQL
  • Support self-config rewrite rules from SQL Rewrite
  • Suggestions were written in Chinese. But SOAR also gives many tools, which can be used without understanding Chinese.

QuickStart

Communication

  • GitHub issues: bug reports, usage issues, feature requests
  • Gitter
  • IM QQ Group: 779359816

License

Apache License 2.0.

Core symbols most depended-on inside this repo

NewQuery4Audit
called by 166
advisor/rules.go
RuleOK
called by 115
advisor/heuristic.go
t
called by 106
doc/js/pretty.js
GetFunctionName
called by 49
common/logger.go
Query
called by 41
database/mysql.go
n
called by 39
doc/js/pretty.js
Escape
called by 27
database/mysql.go
FindIndex
called by 24
database/show.go

Shape

Function 434
Method 206
Struct 46
TypeAlias 7

Languages

Go98%
TypeScript1%
Python1%

Modules by API surface

advisor/heuristic.go125 symbols
advisor/heuristic_test.go117 symbols
ast/rewrite.go43 symbols
database/explain.go31 symbols
database/show.go24 symbols
ast/meta.go23 symbols
ast/rewrite_test.go22 symbols
common/meta.go21 symbols
advisor/index.go19 symbols
common/config.go16 symbols
ast/meta_test.go16 symbols
database/mysql.go15 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add soar \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact