Remove c
article thumbnail

Fundamentals of table expressions, Part 7 – CTEs, optimization considerations

SQL Performance

In my examples I’ll continue using the sample databases TSQLV5 and PerformanceV5. Then, you will probably want to continue reading this section and test the code that I use as I revisit key unnesting examples that I previously demonstrated with derived tables and convert them to use CTEs. ( SELECT *. FROM Sales. OrderDetails.

C++ 140
article thumbnail

RSA Guide 2023: Cloud application security remains core challenge for organizations

Dynatrace

As digital transformation escalates, vulnerabilities are increasing as well, by more than 290% since 2016. For example, the open source Java library at the heart of the Log4Shell crisis in 2021 was patched within days given the pervasiveness of the code.

Cloud 192
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

The DBCC_OBJECT_METADATA Latch

SQL Performance

Continuing my series of articles on latches, this time I’m going to discuss the DBCC_OBJECT_METADATA latch and show how it can be a major bottleneck for consistency checks prior to SQL Server 2016 under certain circumstances. But remember, this bottleneck only happens for versions of SQL Server earlier than SQL Server 2016.

C++ 54
article thumbnail

The challenge is on! Community call for creating the fastest number series generator

SQL Performance

You can create supporting tables in the user database if needed. Use the following code to run a test with base CTE cardinality of 2 (requires 5 additional levels of CTEs): DECLARE @low AS BIGINT = 1 , @high AS BIGINT = 100000000 ; WITH. As an example, see the ones I submit at the end of this article. You can add hints as needed.

C++ 114
article thumbnail

"0 to 60" : Switching to indirect checkpoints

SQL Performance

In a recent tip , I described a scenario where a SQL Server 2016 instance seemed to be struggling with checkpoint times. Still, if you stack a bunch of high-transaction databases on there, checkpoint processing can get pretty sluggish. Change the Target Recovery Time of a Database. writes/sec average throughput: 46.96

C++ 58
article thumbnail

Fundamentals of table expressions, Part 7 – CTEs, optimization considerations

SQL Performance

In my examples I’ll continue using the sample databases TSQLV5 and PerformanceV5. Then, you will probably want to continue reading this section and test the code that I use as I revisit key unnesting examples that I previously demonstrated with derived tables and convert them to use CTEs. ( SELECT *. FROM Sales. OrderDetails.

C++ 52
article thumbnail

Please help with STRING_SPLIT improvements

SQL Performance

In SQL Server 2016, STRING_SPLIT solved a long-missing gap in a language that, admittedly, was not intended for complicated string processing. For years before SQL Server 2016 (and for years since), we've written our own versions, improved them over time, and even argued about whose was fastest. Thanks for listening!

Database 109