Просмотр исходного кода

chore(starfish): Remove the count if query (#49097)

Remove the count_if, it's much slower than I anticipated,
will add it back as a "regression" in a few hours
Shruthi 1 год назад
Родитель
Сommit
a75d82696c
1 измененных файлов с 8 добавлено и 8 удалено
  1. 8 8
      src/sentry/api/endpoints/organization_events_starfish.py

+ 8 - 8
src/sentry/api/endpoints/organization_events_starfish.py

@@ -46,14 +46,14 @@ class OrganizationEventsStarfishEndpoint(OrganizationEventsV2EndpointBase):
                     referrer=referrer,
                 )
 
-                metrics_enhanced_performance.query(
-                    selected_columns=["title", "count_if(mechanism,equals,ANR)"],
-                    query="event.type:transaction",
-                    params=params,
-                    snuba_params=snuba_params,
-                    limit=10000,
-                    referrer=referrer,
-                )
+                # metrics_enhanced_performance.query(
+                #     selected_columns=["title", "count_if(mechanism,equals,ANR)"],
+                #     query="event.type:transaction",
+                #     params=params,
+                #     snuba_params=snuba_params,
+                #     limit=10000,
+                #     referrer=referrer,
+                # )
         except Exception:
             return Response(status=200)