Skip to content

Commit da022bd

Browse files
committed
Add ORDER BY clause to prune query
1 parent 471fc93 commit da022bd

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)