refactor: optimize dump partition iteration and add progress tracking #20
Reference in New Issue
Block a user
Delete Branch "push-xqswlxlvmyrq"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refactor partition iteration to support a generic
on_partitioncallback executed after each parallel partition completes. Split the logic into bounded and unbounded paths; the bounded path uses anAtomicUsizeto enforce row limits, while the unbounded path eliminates atomic contention to improve throughput. Additionally, integrate a progress bar into the dump command by passing an increment callback toidx.dump(), ensuring proper initialization and cleanup.