record() and upsert() use partition_point on the path-sorted file list and reconcile_inventory appends records in order instead of upserting each one, dropping full rescans from O(n^2) to O(n log n).
record() and upsert() use partition_point on the path-sorted file list and reconcile_inventory appends records in order instead of upserting each one, dropping full rescans from O(n^2) to O(n log n).