getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
37.08k stars 3.98k forks source link

🤖 Optimize Snuba Query Conditions #68087

Closed sentry-autofix-experimental[bot] closed 2 weeks ago

sentry-autofix-experimental[bot] commented 1 month ago

👋 Hi there! This PR was automatically generated 🤖

Triggered by vlad.kluev@sentry.io

Fixes SENTRY-32M1

The issue is caused by a Snuba query with an excessively large number of OR conditions, which should be replaced with an IN condition for like terms to optimize query performance and prevent maximum recursion depth errors.

The steps that were performed:

  1. Refactor query construction to use IN condition

📣 Instructions for the reviewer which is you, yes you:

This will greatly help us improve the autofix system. Thank you! 🙏

If there are any questions, please reach out to the AI/ML Team on #proj-autofix

🤓 Stats for the nerds:

Prompt tokens: 51860 Completion tokens: 1863 Total tokens: 53723

getsantry[bot] commented 3 weeks ago

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀