Remove c
article thumbnail

tempdb Enhancements in SQL Server 2019

SQL Performance

I have been making the same recommendations about tempdb since I started working with SQL Server over 15 years ago, when I was working with customers running version 2000. From the customer side, this has been the limit of what can be done*, until SQL Server 2019. Now that 2019 CTP 3.2 I have SQL Server 2019 CTP 3.2

Servers 95
article thumbnail

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

SQL Performance

I’ll present the performance tests that I’ve done with my solution. What’s the best performing solution that you can conjure? To evaluate the performance of your solution and compare it with others, I’ll test it with the range 1 through 100,000,000, with Discard results after execution enabled in SSMS. So, the challenge is on!

C++ 114
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

Islands T-SQL Challenge

SQL Performance

Finally, I’ll compare the performance of the different solutions. To test the performance of your solution, you’ll need to populate the table with larger volumes of sample data. L0 AS ( SELECT 1 AS c. My test machine has four logical CPUs, running SQL Server ® 2019 Enterprise. The challenge.

C++ 136
article thumbnail

T-SQL bugs, pitfalls, and best practices – Joins

SQL Performance

The natural thing to do in such a case is to perform a left outer join between Customers and Orders to preserve customers without orders. Customers AS C LEFT OUTER JOIN Sales. Orders AS O ON C. GROUP BY C. ORDER BY C. Here’s the solution query (call it Query 2) with the bug fixed: SELECT C. Orders AS O ON C.

article thumbnail

T-SQL bugs, pitfalls, and best practices – pivoting and unpivoting

SQL Performance

As an example with our task, suppose that you don't realize that the grouping element is determined implicitly, and you come up with the following query: SELECT shipperid , [ 2017 ] , [ 2018 ] , [ 2019 ] FROM Sales. So you're expecting to see only three rows in the result. 830 rows affected).

article thumbnail

Reducing High CPU on MySQL: a Case Study

Percona

I’ll show you how we approached the resolution of a MySQL performance issue and used Percona Monitoring and Management PMM to support troubleshooting. The server is a small instance: Models | 6xIntel(R) Xeon(R) CPU E5-2430 0 @ 2.20GHz 10GB RAM This symptom can be caused by various different reasons. Creating new table.

C++ 99
article thumbnail

Deprecated features to take out of your toolbox – Part 3

SQL Performance

There was the case where a colleague constantly promoted the deprecated backward compatibility view sys.sysprocesses instead of newer dynamic management views (DMVs), and another case where a different colleague took down a production server using SQL Server Profiler. The operation must be performed offline. CREATE TABLE dbo.

C++ 58