Michael Gallivan
07/02/2025, 8:16 PMJay Jetley
07/15/2025, 12:33 PMselect min(id) as min_id, max(id) as max_id
from transaction
..... rest of query here
and then create batches of say 100000 ids and add that to the main query. It can make a huge difference to the time to run