Tips to get best SQL performance. Covering all major SQL databases. https://xitter.cf/t.co/pPX9UrXm8p is my book.

Vienna, Austria
Joined April 2011
SQL Performance Tips retweeted
€10 for a frontier AI subscription are gone in one workday €10 for my book SQL Performance Explained has a lasting impact on you* sql-performance-explained.co… Learning timeless fundamentals always has a lasting effect * you also need to read it, which takes about 1 day ;)
1
14
779
SQL Performance Tips retweeted
For this WHERE, what index to create? WHERE subsidiary_id = 42 AND last_name LIKE '%INA%' Is (subsidiary_id) enough or should it be (subsidiary_id, last_name)? use-the-index-luke.com/sql/c…
3
1
16
2,999
SQL Performance Tips retweeted
My favorite change is that MariaDB got an improved "WHERE year(...) = ?" rewriting. use-the-index-luke.com/blog/… In picture: the green check mark used to be yellow, with the "a" footnote: Unconditionally rewritten—even if only a matching function-based index exists
1
5
1,534
SQL Performance Tips retweeted
At about this time of the day, I run my open-to-everyone trainings. The last training this year is "SQL Performance Explained", for which I have one spot left. It starts Dec 2nd and is delivered in seven 2-hour long in-person sessions each Mon/Wed/Fri. winand.at/sql-training/open-…
3
9
2,088
SQL Performance Tips retweeted
In the meanwhile enjoy a discount for SQL Performance Explained if you don't have it yet: 15YrsAnniversary Only valid when purchasing directly from me (not on Amazon, ...): sql-performance-explained.co… (but valid for all languages — see language selection at the top).
5
15
2,289
SQL Performance Tips retweeted
Learn once, benefit forever. These SQL courses take experienced developers a leap forward. Starting on September 10th! winand.at/en/newsletter/2024…
1
8
1
21
5,171
SQL Performance Tips retweeted
Have finished reading the "SQL performance explained" book from @MarkusWinand (creator of the use-the-index-luke.com). Have already known about indexes and B-trees, but the book helped to understand how they affect SQL operations under the hood. Highly recommend!
1
3
18
2,387
SQL Performance Tips retweeted
Just announced new training dates. There are still seats left in my next performance training in April. The remaining courses take place in fall. winand.at/sql-training/open-…
4
7
2,586
SQL Performance Tips retweeted
The Oracle DB maintains some information either on block or on row level ([NO]ROWDEPENDENCIES). dbaora.com/ora_rowscn-norowd… The default (NOROWDEPENDENCIES) may cause ORA-08177: can't serialize access for this transaction even if there is no problem on row level.
1
1
5
4,211
SQL Performance Tips retweeted
I started a blog post on this a long time ago but never finished. A recent mention on #determinism in the context of query optimisation sort of hit the nerve. Determinism is so important but underrated and often ignored. So let's throw out a quick 🧵: xitter.cf/julianhyde/status/1760…
Replying to @MaineFrameworks
I just call it query planning. Your first and second obligations are to give the right results using reasonable resources. Deterninism third, efficiency fourth and optimality a distant fifth.
1
2
1
6
3,879
Recent blog post from @davidrowley_pg from the Postgres team at Microsoft, which developers & users loved 💟 All about what's new 🤯 in the #PostgreSQL 16 query planner As @SQLPerfTips says, it's "short, relevant, clear. A MUST read for everybody" techcommunity.microsoft.com/…
5
15
2,078
SQL Performance Tips retweeted
too many indexes
6
64
1
438
30,886
SQL Performance Tips retweeted
This is one of these very few articles: short, relevant, clear. A MUST read for everybody—whether using PostgreSQL or not. It is generally good to see how these things work. Thank you @davidrowley_pg — for the patches too, of course! citusdata.com/blog/2024/02/0…
1
12
53
6,381
SQL Performance Tips retweeted
New episode: "Modern SQL" Michael is joined by @MarkusWinand, creator of use-the-index-luke.com and modern-sql.com, to discuss @ModernSQL — what it means, why it matters, and a phrase that should be on a t-shirt. 🎧 postgres.fm/episodes/modern-… 📺 youtu.be/mGqqQg-dG-w
1
12
2
75
9,410
SQL Performance Tips retweeted
JSONB has landed in SQLite! You can try it in the pre-release snapshot or live in the playground codapi.org/sqlite sqlite.org/forum/forumpost/f…
1
92
8
423
38,803
SQL Performance Tips retweeted
Yesterday,  All those backups seemed a waste of pay.  Now my database has gone away.  Oh I believe in yesterday.  Suddenly,  There’s not half the files there used to be,  and there’s a millstone hanging over me.  … Take care of your backups! use-the-index-luke.com/yeste…
3
18
2
79
11,207