XiaoMi/soar

SQL Optimizer And Rewriter

Owned by Xiaomi

View on GitHub ↗Jump to charts ↓

XiaoMi/soar has 8.5k+ stars and 1k+ forks on GitHub, is written in Go, and was last pushed on Dec 15, 2023. Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 40 minutes ago
Added to GitGenius on October 12th, 2026
Created on October 8th, 2018
Open Issues & Pull Requests: 76 (+0)
GitHub issues: Enabled
Number of forks: 1,317
Total Stargazers: 8,753 (+0)
Total Subscribers: 279 (+0)

Repository Insights (GitGenius)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 411 days
Stale 30+ days: 6
Stale 90+ days: 6

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

SOAR is a command-line SQL optimizer and rewriter that automatically analyzes and improves SQL queries for MySQL-compatible databases.

SOAR addresses the problem of suboptimal SQL performance by parsing queries and applying heuristic-based optimization algorithms to suggest improvements. It can rewrite queries to use better indexes, including multi-column indexes for complex operations like UPDATE, INSERT, DELETE, and SELECT statements. The tool also interprets EXPLAIN output in detail, generates SQL fingerprints, compresses and beautifies queries, and merges multiple ALTER requests on the same table. It supports custom rule-based SQL rewriting, allowing teams to enforce their own optimization standards.

Teams should adopt SOAR if they run MySQL-compatible databases and want automated SQL analysis integrated into their development or review workflows. It works well for organizations seeking to standardize query optimization practices without manual review of every statement. The tool runs cross-platform on Linux and Mac environments. The README includes a comparison document that positions SOAR against other SQL optimization tools, which can help determine fit relative to existing solutions.

The project maintains active issue tracking and community engagement through multiple channels. Development follows a structured roadmap with documented architecture and configuration guidance. The tool receives updates reflected in a detailed changelog, indicating ongoing maintenance and refinement of its optimization rules and capabilities.