Skip to content

Commit

Permalink
fix: perf
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-sentry committed Sep 17, 2024
1 parent 9dbbe20 commit 28be6b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion snuba/web/rpc/trace_item_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ def _build_query(request: AttributeValuesRequest) -> Query:
),
groupby=[column("attr_value", alias="attr_value")],
order_by=[
OrderBy(direction=OrderByDirection.ASC, expression=column("attr_value"))
OrderBy(
direction=OrderByDirection.ASC, expression=column("organization_id")
),
OrderBy(direction=OrderByDirection.ASC, expression=column("attr_key")),
OrderBy(direction=OrderByDirection.ASC, expression=column("attr_value")),
],
limit=request.limit,
offset=request.offset,
Expand Down

0 comments on commit 28be6b1

Please sign in to comment.