{"enrichment":{"faq":[{"a":"laravel-database-optimization addresses N+1 query problems through eager loading techniques and relationship optimization. The skill provides rules for using Eloquent's `with()` and `load()` methods to fetch related data in single queries rather than iterating through results. It covers detecting N+1 issues with Laravel Debugbar, understanding lazy loading pitfalls, and implementing eager loading patterns across your application's query structure.","q":"How do I fix N+1 queries in Laravel?"},{"a":"laravel-database-optimization covers database indexing best practices including single-column indexes, composite indexes for multi-column queries, and full-text search indexes. The skill provides guidance on index selection during migrations, query execution plan analysis, and identifying which columns benefit most from indexing. It addresses zero-downtime migration patterns for adding indexes to large tables without locking production data.","q":"What indexing strategies does laravel-database-optimization recommend?"},{"a":"laravel-database-optimization teaches Redis caching integration for query results, including cache key strategies and invalidation patterns. The skill covers cache-aside patterns, setting appropriate TTLs, and invalidating cached data when records change. It provides rules for deciding which queries benefit from caching and how to avoid stale data issues in your Laravel application.","q":"How can I implement Redis caching for Laravel queries?"},{"a":"laravel-database-optimization covers pagination and memory-efficient processing for large datasets, including offset-based and cursor pagination approaches. The skill addresses chunking large tables with `chunk()` for batch processing, using `lazy()` collections, and selecting pagination strategies based on dataset size. It includes rules for preventing memory exhaustion when processing millions of records.","q":"How should I handle large datasets with pagination?"},{"a":"laravel-database-optimization provides guidance on using Laravel Debugbar for query analysis, identifying slow queries, and diagnosing database performance issues. The skill covers query profiling, execution plan interpretation, and systematic debugging approaches. It includes techniques for measuring query impact and prioritizing optimization efforts across your Eloquent application.","q":"What tools help debug slow queries in Laravel?"},{"a":"laravel-database-optimization organizes 33 optimization rules across 9 categories: eager loading, indexing strategies, Redis caching, pagination, transaction handling, query performance tuning, cursor pagination, cache invalidation, and lazy loading prevention. The skill applies to Laravel 13 applications and covers both query-level and database-level optimizations for comprehensive performance improvement.","q":"What are the key optimization categories in this skill?"}],"shadow_tags":["query-performance","database-indexing","caching-strategies","n-plus-one-prevention","eloquent-patterns","data-processing","transaction-safety","debugging-tools","schema-design"],"summary_rewrite":"This skill provides 33 optimization rules across 9 categories for Laravel 13 applications, covering eager loading, indexing strategies, Redis caching, pagination, and transaction handling. Use it when writing Eloquent queries, diagnosing N+1 issues, configuring indexes, or debugging slow queries with Laravel Debugbar."},"files":[{"bytes":7274,"path":"skills/laravel-database-optimization/SKILL.md","sha256":"bc5850c4e05b4035d79bb3ed7e93af56f11615e6f8bd9ea12e3484e1504f8d2c","url":"https://skillfed.io/files/AsyrafHussin/agent-skills/laravel-database-optimization/7f2a3580/SKILL.md"}],"id":"AsyrafHussin/agent-skills/laravel-database-optimization","links":{"html":"https://skillfed.io/AsyrafHussin/agent-skills/laravel-database-optimization","md":"https://skillfed.io/AsyrafHussin/agent-skills/laravel-database-optimization.md","repo":"https://github.com/AsyrafHussin/agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":9,"language":null,"last_updated":"2026-05-16","license":"MIT","name":"laravel-database-optimization","publisher":"AsyrafHussin","stars":58},"relations":{"similar":[{"id":"AsyrafHussin/agent-skills/laravel-queues"},{"id":"AsyrafHussin/agent-skills/laravel-best-practices"},{"id":"noartem/skills/laravel-prompting-patterns"},{"id":"personamanagmentlayer/pcl/php-expert"},{"id":"iSerter/laravel-claude-agents/eloquent-best-practices"},{"id":"rawveg/skillsforge-marketplace/laravel"},{"id":"affaan-m/ECC/laravel-patterns"},{"id":"iSerter/laravel-claude-agents/laravel-notification-patterns"},{"id":"noartem/skills/laravel-data-chunking-large-datasets"},{"id":"AsyrafHussin/agent-skills/laravel-testing"}]},"slug":{"owner":"AsyrafHussin","repo":"agent-skills","skill":"laravel-database-optimization"},"version":"7f2a3580"}
