Reference docMembers
sql-optimization-patterns - detailed patterns and worked examples
sql-optimization-patterns - detailed patterns and worked examples is a reference document for Claude Code, from the wshobson agents and plugins collection by wshobson. The full text is about 987 words in 10 sections, with 14 code blocks. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in Data and analytics and Product and engineering who use Claude Code.
What it covers
- Optimization Patterns
- Pattern 1: Eliminate N+1 Queries
- Pattern 2: Optimize Pagination
- Pattern 3: Aggregate Efficiently
- Pattern 4: Subquery Optimization
- Pattern 5: Batch Operations
- Advanced Techniques
- Materialized Views
- Partitioning
- Query Hints and Optimization
The full text is in the members library
Book a call and we will give you access to the full Claude Code library: every entry in full, search by meaning, copy and download.
Author: wshobson, wshobson agents and plugins. License: MIT.