Skip to content

bug(perf-issues): hook up N+1 Query detection rate again#45380

Merged
mjq-sentry merged 2 commits into
masterfrom
mjq/np1-detection-project-opts
Mar 3, 2023
Merged

bug(perf-issues): hook up N+1 Query detection rate again#45380
mjq-sentry merged 2 commits into
masterfrom
mjq/np1-detection-project-opts

Conversation

@mjq-sentry

@mjq-sentry mjq-sentry commented Mar 3, 2023

Copy link
Copy Markdown
Contributor

The n_plus_one_db_detection_rate project option was being used to disable N+1 detection on projects with fingerprint issues. At some point the N+1 Query detector stopped respecting that option. Hook it back up, and hook up the MN+1 Query detector to it as well (as they create the same type of issue). If we have a reason in the future to split that option into two, we might, but for now they seem to share fingerprinting issues (typically dynamic custom parent span descriptions).

The `n_plus_one_db_detection_rate` project option was being used to disable N+1
detection on projects with fingerprint issues. At some point the N+1 Query
detector stopped respecting that option. Hook it back up, and hook up the MN+1
Query detector to it as well (as they create the same type of issue). If we
have a reason in the future to split that option into two, we might, but for
now they seem to share fingerprinting issues (typically dynamic custom parent
span descriptions).

The `n_plus_one_db_issue_rate` project option also disappeared at some point,
but we don't need it. This removes the last remnant of it (in project
performance settings).
@mjq-sentry mjq-sentry requested a review from a team March 3, 2023 18:57
@github-actions github-actions Bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Mar 3, 2023
@github-actions

github-actions Bot commented Mar 3, 2023

Copy link
Copy Markdown
Contributor

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@DominikB2014 DominikB2014 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

Comment thread static/app/views/settings/projectPerformance/projectPerformance.tsx
@mjq-sentry mjq-sentry enabled auto-merge (squash) March 3, 2023 19:26
@mjq-sentry mjq-sentry merged commit 0644ecf into master Mar 3, 2023
@mjq-sentry mjq-sentry deleted the mjq/np1-detection-project-opts branch March 3, 2023 19:35
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants