r/SQLOptimization • u/AbdullahMohammadKhan • Jan 29 '22
Suggest me book(s) on SQL query optimization...
I am beginning to learn things from scratch and I feel like knowing about the optimizations and why they work better would give me a clearer concepts of the fundamentals.
You can suggest any other resources as well.
TIA
9
Upvotes
View all comments
Show parent comment
4
u/mikeblas Jan 29 '22
Use the Index Luke is one place to start. Indexes are key (LOL, get it?) to enabling good performance. Knowing how to create indexes that help queries without introducing too much overhead is fundamental.
Understanding how to read execution plans is also important. The
EXPLAINdocumentation for PostgreSQL is readily available.It's not hard to find other resources. For example, here's a presentation about holistic performance tuning on PostgreSQL.