Discover and explore top open-source AI tools and projects—updated daily.
halilcosduLaravel package for database query optimization
Top 73.7% 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-slowerphp artisan vendor:publish --tag="slower-config" and php artisan vendor:publish --tag="slower-migrations" && php artisan migrateslower:clean and slower:analyze can be registered in the application's scheduler.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
EXPLAIN ANALYZE output.1 day ago
1 day
timescale