A tool that automatically identifies anti-patterns in SQL queries, covering logical design, physical design, and query anti-patterns, targeting all major SQL dialects.
- v1.3
- Published at
- Mar 20, 2022
- 2,525
- Stars
- 248,119
- Download
- Synced at
- Oct 4, 2026
Latest release
v1.3Mar 20, 2022, 12:24 AMDownloads slow? Switch the source anytime above
README
Project Overview
SQLCheck automatically detects common SQL anti-patterns that often slow down queries. Addressing them helps accelerate queries. It targets all major SQL dialects.
Key Features
- Logical Database Design Anti-Patterns: Multi-valued attribute, recursive dependency, primary key does not exist, generic primary key, foreign key does not exist, EAV pattern, metadata tribbles, etc.
- Physical Database Design Anti-Patterns: Imprecise data type, values in definition, files are not SQL data types, too many indexes, index attribute order, etc.
- Query Anti-Patterns: SELECT *, NULL usage, NOT NULL usage, string concatenation, GROUP BY usage, ORDER BY RAND, pattern matching usage, spaghetti query, reduce JOINs, eliminate unnecessary DISTINCT, implicit column usage, etc.
Target Audience
- Database developers and DBAs
- Engineers who need to optimize SQL query performance
- SQL reviewers
Quick Start
- Install SQLCheck following the project documentation
- Run SQLCheck to analyze SQL queries
- Review the detected anti-patterns report
- Optimize queries based on recommendations
Core Advantages
- Automatically detects 20+ SQL anti-patterns
- Covers logical design, physical design, and query levels
- Supports all major SQL dialects
- Open-source and free
System Requirements
- OS: Cross-platform
- Architectures: x86_64, arm64
Release history
Sort