Remove using-the-sql-execution-plan-for-query-performance-tuning
article thumbnail

MySQL Interview Questions: Wrong Answers Only

Percona

Q: How will you improve a slow query? A: Let’s not execute it at all. A query avoided is a query improved. While this is a fact, we should carefully consider whether a query is necessary before executing it. Let the “MySQL Interview” begin. A: Well, it is our delayed disaster recovery.

article thumbnail

One Index, Three Different PostgreSQL Scan Types: Bitmap, Index, and Index Only

Percona

Performance is one of the essential aspects of a database management system. Very little can be more annoying and frustrating for users than poor performance, meaning long-running queries and high response times at the front end. Next is the table definition. is_active.

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

An approach to index tuning – Part 2

SQL Performance

In my last post , I started to outline the process I go through when tuning queries – specifically when I discover that I need to add a new index, or modify an existing one. Step 5: What Uses an Index. Fortunately, Jonathan Kehayias has already written a query to help identify which plans use a specific index.

Tuning 137
article thumbnail

MySQL Performance Tuning 101: Key Tips to Improve MySQL Database Performance

Percona

While there is no magic bullet for MySQL performance tuning, there are a few areas that can be focused on upfront that can dramatically improve the performance of your MySQL installation. What are the Benefits of MySQL Performance Tuning? Experiencing database performance issues?

Tuning 52
article thumbnail

Finding Distinct Values Quickly

SQL Performance

Back in 2014, I wrote an article called Performance Tuning the Whole Query Plan. This follow-up post revisits the question for SQL Server 2019, using a larger number of rows. I will be using the 50GB Stack Overflow 2013 database , but any large table with a low number of distinct values would do.

Servers 86
article thumbnail

Understanding Execution Plan Operator Timings

SQL Performance

SQL Server 2014 SP2 and later produce runtime (“actual”) execution plans that can include elapsed time and CPU usage for each execution plan operator (see KB3170113 and this blog post by Pedro Lopes). This can make it difficult to draw sound performance-tuning conclusions. Batch Mode Serial Execution.

Servers 95
article thumbnail

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

SQL Performance

In Part 5 of my series on table expressions I provided the following solution for generating a series of numbers using CTEs, a table value constructor and cross joins: DECLARE @low AS BIGINT = 1001 , @high AS BIGINT = 1010 ; WITH. I’ll present the performance tests that I’ve done with my solution. There could be many others.

C++ 114