Skip to content

Add lesson 31: Query optimization#91

Open
exekias wants to merge 1 commit into
mainfrom
lesson/31-query-optimization
Open

Add lesson 31: Query optimization#91
exekias wants to merge 1 commit into
mainfrom
lesson/31-query-optimization

Conversation

@exekias

@exekias exekias commented Jul 2, 2026

Copy link
Copy Markdown
Member

Adds Query optimization (roadmap item 04-query-optimization) — Module 7: Performance & indexing.

Summary

Give the cost-based planner good statistics and sargable predicates — and fix the anti-patterns that quietly disable your indexes.

Check

One query-returns check (extended-stats-created) — the learner creates extended statistics (CREATE STATISTICS) to fix a correlated-columns underestimate, verified via pg_statistic_ext.

Verified end-to-end against a non-superuser Postgres 16. npm run lessons:validate (34/34) and next build both pass.

Part of #6

🤖 Generated with Claude Code

Part of #6

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
learn-postgres Ready Ready Preview Jul 2, 2026 3:05pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant