Company
Date Published
Author
Shana Matthews
Word count
426
Language
English
Hacker News points
None

Summary

Sentry recently launched its Performance Issues feature, which helped discover and fix common performance problems in projects. The team tested the feature internally and with alpha users before turning it on for all Sentry users. When they did, they found an N+1 issue in the code of djangoproject.com's docs version switcher that was causing duplicate issues. The issue was fixed by changing a line of code to use `select_related` instead of `filter`. This change simplified the query and resolved the problem. The feature can currently detect N+1 issues in all Sentry-supported backend languages, including Python, and automatically detects slow transactions and spans that could be bottlenecks in an application. Developers can learn more about performance monitoring with Sentry by checking out its documentation.