Query Lifecycle in MS SQL Server and Postgres
2022TL; DR
In this session, we will follow the path of a query from sending the query to the client to getting results back in MS SQL Server and Postgres RDBMS. During that, we will learn a lot of aspects of query execution which will help up to build more performant systems.
Session Details
We all know what a relational database and SQL language are and how to get or modify data in a database. The algorithm is straightforward:
1) Write an SQL query
2) Send it to the database
3) Get the result
It's all straightforward, but only until the moment when we get the result is not what we expected, or do not get it at all, or gave up to wait for the data, etc. It happens because, between the second and third steps, many things affect the result. When we face the issue related to query execution, it can be challenging to solve the problem without knowing what is happening inside. And in this session, we will go with you the same way that the query in SQL Server and Postgres goes from the moment you run it to the moment of receiving the result. Following this path will help us understand why we get such a result under certain conditions and work more efficiently with databases.
3 things you'll get out of this session
Speakers
Denis Reznik's other proposed sessions for 2026
Deadlocks in SQL Server: Understanding and Troubleshooting - 2026
True SQL Server Detective - 2026
Denis Reznik's previous sessions
What SQL Server database can tell us about application issues?
This session will be about database load patterns that show the application design issues and solutions to those issues.
Hidden Gems of SQL Server 2019
SQL Server 2019 is full of new features. Some of them are very interesting and useful, but unfortunately not well-known. So far.
Query Execution: Expectation-Reality
Sometimes this happens. What you expect not always what you received. In this session, we will look at a bunch of such situations.