-
Notifications
You must be signed in to change notification settings - Fork 571
Closed
Labels
Description
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.14.0
Steps to Reproduce
- Use sentry-sdk with Django integration.
- Profile a view with doing several SQL queries.
- Notice there is
expandusershown on top of “Slowest Application Functions” in Sentry.
Expected Result
We don't invoke expanduser at all, so it should not be there. Definitely it should not be on top of the list, taking more time than template rendering.
Actual Result
expanduser being identified by Sentry as the slowest thing on this view:
Profile trace:
This seems to be invoked for each SQLCompiler.execute_sql invocation, so for every SQL query.
It is invoked from here:
| connection_params = cursor_or_db.connection.info.get_parameters() |
The expanduser then comes from psycopg3 via Path.home():
Metadata
Metadata
Assignees
Labels
Projects
Status
No status

