SQLPerfTips Profile Banner
SQL Performance Tips Profile
SQL Performance Tips

@SQLPerfTips

Followers
54K
Following
267
Media
166
Statuses
5K

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

Vienna, Austria
Joined April 2011
Don't wanna be here? Send us removal request.
@SQLPerfTips
SQL Performance Tips
7 years
SQL Performance Explained — A Book For Developers It focuses on what developers need to know. Just 200 pages…yet covering all major databases. https://t.co/fkbYE74LQt
Tweet card summary image
sql-performance-explained.com
SQL Performance Explained: Everything developers need to know about database performance by Markus Winand
8
57
150
@SQLPerfTips
SQL Performance Tips
1 year
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)? https://t.co/Ax09WlDtOB
3
1
15
@MarkusWinand
Markus Winand
3 months
My favorite change is that MariaDB got an improved "WHERE year(...) = ?" rewriting. https://t.co/9liw4kyyp4 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
0
1
5
@SQLPerfTips
SQL Performance Tips
1 year
Improved RCSI Ghost Cleanup in SQL Server 2022 — by Paul White As always, Paul provides deep insight into the SQL Server implementation. https://t.co/Nc0dfTOnXW
Tweet card summary image
sql.kiwi
An example of poor update performance under RCSI as compared with locking read committed. Details of an improvement in SQL Server 2022 that can help avoid the worst effects.
0
0
7
@SQLPerfTips
SQL Performance Tips
1 year
Farm to TABLE: Local(e) Providers https://t.co/0HGYKYWrYC The Doom That Came To PostgreSQL: When Collations Change https://t.co/GmGHx3zwES
0
0
1
@SQLPerfTips
SQL Performance Tips
1 year
If you are not sure what collations are about, please read the entire series by Christophe Pettus: “Gentlemen, this is a 🏈”: Glyphs, Encodings, Collations, and Locales https://t.co/JDJ2Vm0hUs Speaking in Tongues: PostgreSQL and Character Encodings https://t.co/aLHuWPPM68
1
0
3
@SQLPerfTips
SQL Performance Tips
1 year
As sort-based indexes (such as B-Tree) also use collations to establish their row order, the speed of the collation affects the index build time, but not so much the search time as the number of comparisons for a search is very limited.
1
0
0
@SQLPerfTips
SQL Performance Tips
1 year
Collations are a wonderful feature. They solve problems way beyond case-insensitive search: ignoring accents and "numeric" sorting ('10' > '2') are just two more examples. However, they do have a performance impact as shown by this micro-benchmark: https://t.co/UOcEoQA38H
2
7
23
@MarkusWinand
Markus Winand
1 year
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. https://t.co/86X2Fp1igu
0
3
9
@SQLPerfTips
SQL Performance Tips
1 year
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)? https://t.co/Ax09WlDtOB
3
1
15
@AmelieBenoit33
Amélie Benoit 🦋
1 year
TIL about Index-Only Scan for databases ✨ Also I'm in love with this website
use-the-index-luke.com
The index-only scan is one of the most important SQL tuning techniques at all—often bringing factors!
0
1
10
@MarkusWinand
Markus Winand
1 year
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, ...): https://t.co/qE63UZfEEl (but valid for all languages — see language selection at the top).
Tweet card summary image
sql-performance-explained.com
SQL Performance Explained: Everything developers need to know about database performance by Markus Winand
0
5
14
@MarkusWinand
Markus Winand
1 year
Learn once, benefit forever. These SQL courses take experienced developers a leap forward. Starting on September 10th! https://t.co/EmwREhXHCU
Tweet card summary image
winand.at
The next round of online SQL trainings starts in September. Enroll now!
1
8
21
@SQLPerfTips
SQL Performance Tips
2 years
There is currently some fuzz about the performance of subqueries vs with clause. Here is my take on it: https://t.co/JvaBXlbxVF
Tweet card summary image
modern-sql.com
Generally the WITH clause performs like views.
0
7
38
@SQLPerfTips
SQL Performance Tips
2 years
This and much more is explained on Use The Index, Luke! https://t.co/Dyc3prEKbU
Tweet card summary image
use-the-index-luke.com
What every developer should know about SQL performance
0
0
6
@SQLPerfTips
SQL Performance Tips
2 years
What every developer should know about SQL performance - Index/Query (mis)match - The first power of indexing: finding data quickly - The second power of indexing: clustering data - The third power of indexing: sorting data
2
9
53