Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perform db query on /organization 1% of the time #351

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

ndmanvar
Copy link
Collaborator

@ndmanvar ndmanvar commented Nov 28, 2023

Add a call to db.get_product in flask’s /organization endpoint so that we can get another “found in” endpoint on the query-summary page? Executes ~1% of the time /organization is hit.
https://github.com/sentry-demos/empower/blob/master/flask/src/main.py#L219-L221
https://github.com/sentry-demos/empower/blob/master/flask/src/db.py#L44

image

@ndmanvar ndmanvar requested a review from realkosty November 28, 2023 01:17
@ndmanvar ndmanvar requested a review from a team as a code owner November 28, 2023 01:17
@ndmanvar ndmanvar self-assigned this Nov 28, 2023
@ndmanvar ndmanvar merged commit 79bed0b into master Nov 28, 2023
7 checks passed
@ndmanvar ndmanvar deleted the feat/one_percent_db_query_org_endpoint branch November 28, 2023 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants