Laravel package for database query optimization
Top 77.8% on sourcepulse
This package helps Laravel developers optimize slow database queries by leveraging AI to suggest indexing strategies and other performance improvements. It targets developers seeking to debug and monitor application performance, offering actionable insights for streamlined database interactions.
How It Works
The package logs slow queries exceeding a configurable threshold. It then utilizes OpenAI's GPT-4 (or a specified model) to analyze the query's EXPLAIN ANALYZE
output and schema information. The AI provides recommendations, such as composite index creation or data type corrections, to enhance query efficiency.
Quick Start & Requirements
composer require halilcosdu/laravel-slower
php artisan vendor:publish --tag="slower-config"
and php artisan vendor:publish --tag="slower-migrations" && php artisan migrate
slower:clean
and slower:analyze
can be registered in the application's scheduler.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
EXPLAIN ANALYZE
output.1 month ago
1 day