Performance Guide
Application Performance Optimization Strategies
Slow apps lose users. Optimization spans frontend, backend, database. Here are the strategies that move the needle.

Table of Contents
Frontend
Code split, lazy load, minify. Optimize images. See our Web App Performance guide.

Backend
Cache responses. Paginate. Avoid N+1. Use connection pooling. Async for non-blocking work.
Database
Index queries. Avoid SELECT *. Use EXPLAIN. Read replicas for read-heavy.
Measure First
Don't guess. Use Lighthouse, APM (Datadog, New Relic). Find bottlenecks before optimizing.
Frequently Asked Questions
What's the biggest performance win?
Usually database: add index, fix N+1. Or frontend: reduce bundle size. Measure to find your bottleneck.