Tag: query performance

Implementing a Common MS SQL Server Performance Indicator

Database administration, Performance Tuning

Introduction There is often a need to create a performance indicator that would show database...
Read More

Missing Indexes in MS SQL or Optimization in no Time

Database administration, Database development, Database Optimization & Structure, Indexes • One Comment

When executing a query, the SQL Server optimizer tries to find the best query plan based on existing indexes and available latest...
Read More

Performance of Table Variables in SQL Server

Database administration, Database development, Performance Tuning, Tables

In this article, we are going to touch upon the topic of performance of table variables. In SQL Server, we can create variables that will...
Read More

Query Optimization in PostgreSQL. EXPLAIN Basics – Part 3

Database administration, Performance Tuning, PostgreSQL

I continue a series of articles on the basics of EXPLAIN in PostgreSQL, which is a short review of...
Read More

Query Optimization in PostgreSQL. EXPLAIN Basics – Part 2

Database development, PostgreSQL, Statements

In my previous article, we started to describe the basics of the EXPLAIN command and analyzed what happens in PostgreSQL when executing a...
Read More

Query Optimization in PostgreSQL. EXPLAIN Basics – Part 1

Database development, PostgreSQL, Statements

Why does it take so much time to execute a query? Why are there no indexes? Chances are you’ve heard about EXPLAIN in PostgreSQL....
Read More

Why Multiple JOINs are bad for Query or Do Not Get in the Way of Optimizer

Database administration, Performance Tuning, SQL Server

Recently, I came across an application that generated DB queries. I understand that there is...
Read More

USE HINT and DISABLE_OPTIMIZED_NESTED_LOOP

Database administration, Performance Tuning

One of the available algorithms to join two tables together in SQL Server is Nested Loops. The nested loops join uses one join input as the...
Read More

What Can Query Plan Tell?

Database development, Statements

Introduction SQL query describes the expected result, not the way to get the result. The set of specific steps the server must take to...
Read More

Optimizing Overlapping Queries Part 1: Introduction & Enhanced T-SQL Solution

Database administration, Performance Tuning, Statements

Databases that serve business applications should often support temporal data. For example, suppose...
Read More
Close