SQL Performance Tips

4.9K posts

SQL Performance Tips banner
SQL Performance Tips

SQL Performance Tips

@SQLPerfTips

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

Vienna, Austria शामिल हुए Nisan 2011
2 फ़ॉलोइंग54K फ़ॉलोवर्स
पिन किया गया ट्वीट
SQL Performance Tips
SQL Performance Tips@SQLPerfTips·
SQL Performance Explained — A Book For Developers It focuses on what developers need to know. Just 200 pages…yet covering all major databases. sql-performance-explained.com
English
8
56
148
0
SQL Performance Tips
SQL Performance Tips@SQLPerfTips·
A B-tree is not a binary tree. A B-tree does not go out of balance. A B-tree is self-balancing: it does *not* require expensive operations to keep the balance.
English
1
0
9
1.5K
SQL Performance Tips रीट्वीट किया
Markus Winand
Markus Winand@MarkusWinand·
My favorite change is that MariaDB got an improved "WHERE year(...) = ?" rewriting. use-the-index-luke.com/blog/2024-12/d… 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
Markus Winand tweet media
English
0
1
5
1.4K
SQL Performance Tips
SQL Performance Tips@SQLPerfTips·
Improved RCSI Ghost Cleanup in SQL Server 2022 — by Paul White As always, Paul provides deep insight into the SQL Server implementation. sql.kiwi/2024/12/improv…
English
0
0
7
1.6K
SQL Performance Tips
SQL Performance Tips@SQLPerfTips·
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: thebuild.com/blog/2024/11/2…
English
2
6
23
2.5K
SQL Performance Tips रीट्वीट किया
Markus Winand
Markus Winand@MarkusWinand·
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. #sql-performance-ks" target="_blank" rel="nofollow noopener">winand.at/sql-training/o…
English
0
3
9
2.1K
Softilium
Softilium@softilium·
@SQLPerfTips I think "LIKE" doesn't use indexes. Because of this index for subsidiary_id is enough.
English
1
0
0
87
David Rowley
David Rowley@davidrowley_pg·
@SQLPerfTips It would be great to see this updated PostgreSQL 17 now that it's out.
English
1
0
1
126
SQL Performance Tips
SQL Performance Tips@SQLPerfTips·
Finding for the most recent, best matching, highest ranking rows (“Top-N”) is a common problem. The window functions ROW_NUMBER, RANK and DENSE_RANK can be used for such queries. Not all systems optimize these queries well—PostgreSQL 15 just learned it. use-the-index-luke.com/sql/partial-re…
English
1
16
50
17.2K
SQL Performance Tips रीट्वीट किया
Markus Winand
Markus Winand@MarkusWinand·
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.com (but valid for all languages — see language selection at the top).
English
0
5
15
2.3K