Laravel Database Expert

Optimize Laravel database queries with Query Builder, Redis caching, and read/write splitting.

51|6|Updated Mar 28, 2019
One-click install
npx skills add https://github.com/Mte90/dotfiles --skill laravel-database-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Laravel Database Expert
Source: https://github.com/Mte90/dotfiles/tree/main/.config/opencode/skills/laravel/database-expert
Command: npx skills add https://github.com/Mte90/dotfiles --skill laravel-database-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses complex database challenges in Laravel applications, optimizing query performance, implementing effective caching strategies, and ensuring scalability.

Core Features & Use Cases

  • Advanced Querying: Write efficient, complex SQL queries using Laravel's Query Builder and Eloquent.
  • Performance Optimization: Implement caching patterns like Cache-Aside and Redis Tagging to speed up data retrieval.
  • Scalability: Configure read/write splitting and vertical partitioning for high-traffic databases.
  • Use Case: Optimize a reporting dashboard by implementing efficient aggregate queries and caching frequently accessed data to reduce database load.

Quick Start

Use the Laravel Database Expert skill to optimize the performance of database queries for user authentication.

Frequently Asked Questions about Laravel Database Expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow Laravel database queries for reporting dashboards?

To optimize slow Laravel database queries, use advanced Query Builder methods and Eloquent to write efficient aggregate queries. This reduces database load by streamlining complex SQL operations for reporting dashboards.

What is the best way to implement Redis caching in Laravel?

The best way to implement Redis caching in Laravel is by using Cache-Aside and Redis Tagging patterns. These strategies speed up data retrieval by storing frequently accessed query results in Redis.

How do I configure read/write splitting for a high-traffic Laravel database?

Configure read/write splitting in Laravel by distributing database instances for high-traffic scalability. This approach separates read queries from write operations, balancing the load across multiple database servers.

When should I use vertical partitioning in a Laravel database?

Use vertical partitioning in a Laravel database when scaling high-traffic applications. It splits large tables into smaller, more manageable instances, improving query performance for specific data subsets.

Does this approach support advanced SQL queries using Laravel Eloquent?

Yes, this approach supports advanced SQL queries using Laravel Eloquent. It provides expert patterns for complex database interactions, allowing you to write efficient queries using both Eloquent and the Query Builder.

Why does my Laravel application experience high database load during user authentication?

High database load during user authentication often results from unoptimized queries. Implementing efficient query building and caching frequently accessed data reduces this load by minimizing direct database hits.