Skip to content

Commit 657553f

Browse files
author
James Cunningham
authored
perf(snuba): Limit SnubaEvent.get_event to return the first result only. (#13644)
1 parent ebe8c76 commit 657553f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sentry/models/event.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ def get_event(cls, project_id, event_id, snuba_cols=selected_columns):
457457
'project_id': [project_id],
458458
},
459459
referrer='SnubaEvent.get_event',
460+
limit=1,
460461
)
461462
if 'error' not in result and len(result['data']) == 1:
462463
return SnubaEvent(result['data'][0])

0 commit comments

Comments
 (0)