r/SQL • u/Emotional-Rhubarb725 • Mar 26 '26
Discussion best text book for query optimization ?
I need a text book for query optimization
16
Upvotes
r/SQL • u/Emotional-Rhubarb725 • Mar 26 '26
I need a text book for query optimization
17
u/BrupieD Mar 26 '26
If you are using SQL Server, T-SQL Querying by Itzik Ben-Gan et al has a substantial section (>140 pages) on query tuning.
8
u/dbxp Mar 26 '26
Depends on which DBMS you're using, SQL is just the external interface it doesn't specify how the query optimiser works
4
u/mu_SQL Mar 26 '26
If you havn’t already, check out Brent Ozar and Erik Darling. Their courses, Vlog’s and blogs are gold. Sorry for the ”not” book relation.
7
u/gumnos Mar 26 '26
I've found SQL Performance Explained one of the better ones discussing indexing theory. Much of the core content is also available on the author's https://use-the-index-luke.com/ site, so you can start there for free.
1
u/pacopac25 Mar 26 '26
The Art of SQL by Stephane Faroult
-8
u/czervik_coding Mar 26 '26
Just use Claude.ai