PHP Database Index Auditor

•
45
•

Identifies missing database indexes and optimizes query performance within PHP and Doctrine-based applications.

This skill performs a deep static analysis of PHP code to uncover database performance bottlenecks caused by suboptimal indexing. It scans repository files and entities to detect unindexed WHERE or JOIN clauses, incorrect composite index ordering, and patterns that defeat index usage like leading wildcards or functions on columns. By auditing foreign key constraints and ORDER BY clauses, it provides actionable SQL recommendations to transform slow full-table scans into high-performance index seeks, ensuring your PHP architecture remains scalable and efficient.

主要功能

01Provides recommended SQL snippets for creating missing indexes
02Identifies index-defeating patterns like functions or leading wildcards
0345 GitHub stars
04Detects unindexed columns in WHERE and JOIN clauses
05Analyzes composite index ordering for optimal query matching
06Audits foreign key indexes specifically for PostgreSQL and MySQL

使用场景

01Auditing Doctrine ORM entities for missing index annotations
02Performance tuning of legacy PHP applications with slow database queries
03Pre-deployment code reviews to ensure new database schemas are properly indexed