Skip to content

Commit 9fc23cc

Browse files
authored
perf(similarity): in backfill lower time bounds (#73345)
lower time bounds to 1 minute, as we'll scan less data, and i think this should be plenty of range for it to find the last event sent.
1 parent 6f4485e commit 9fc23cc

File tree

1 file changed

+2
-2
lines changed
  • src/sentry/tasks/embeddings_grouping

1 file changed

+2
-2
lines changed

src/sentry/tasks/embeddings_grouping/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,12 @@ def get_data_from_snuba(project, groups_to_backfill_with_no_embedding):
215215
Condition(
216216
Column("timestamp", entity=events_entity),
217217
Op.GTE,
218-
group.last_seen - timedelta(minutes=5),
218+
group.last_seen - timedelta(minutes=1),
219219
),
220220
Condition(
221221
Column("timestamp", entity=events_entity),
222222
Op.LT,
223-
group.last_seen + timedelta(minutes=5),
223+
group.last_seen + timedelta(minutes=1),
224224
),
225225
],
226226
limit=Limit(1),

0 commit comments

Comments
 (0)