Skip to content

Commit 63241b6

Browse files
authored
BFD-4831: Add ORDER BY clause to phase 1 prune query (#3231)
1 parent 471fc93 commit 63241b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

apps/bfd-pipeline-idr/model/base_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ def stale_phase_1_claims_query(
861861
WHERE clm.clm_uniq_id = item.clm_uniq_id
862862
AND item.bfd_updated_ts >= %s
863863
)
864+
ORDER BY clm.clm_uniq_id
864865
LIMIT {PHASE_1_PRUNE_BATCH_LIMIT}
865866
""",
866867
(cutoff_date, cutoff_date),

0 commit comments

Comments
 (0)