← Back
Milan Jovanovic September 1, 2025 31s

How to Detect Slow Queries with EF Core

Summary

The transcript discusses using Entity Framework (EF) Core to detect and log slow database queries by implementing a database command interceptor that measures query execution time. By overriding the reader executed method, developers can capture the duration of queries and compare them against a performance threshold, such as 200 milliseconds. The practical approach involves using structured logging to filter and identify slow queries, ultimately enabling developers to analyze and optimize database performance for more efficient application execution.

View original episode ↗