Skip to content
Justice Tech School

Avoiding Slow Query PatternsPremium

Avoid SELECT *, functions on indexed columns in WHERE, leading wildcards in LIKE, N+1 query loops and unneeded DISTINCT. Select only needed columns and let the database do set work.

This is a Premium lesson

All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.