GitHub
10/26/2026, 2:55 AMgp_appendonly_insert_files is not set), and one big file is always read by a single worker.
The idea
Split each segment file into many small chunks of rows, and let workers take chunks one at a time from a shared counter. Every worker stays busy until the scan ends, however many segment files the table has. No index or extra metadata is needed.
Status
• AOCS: implemented. Results match serial scans, the related regression tests pass, and large tables scan several times faster in my tests. The planner can now choose a parallel plan for AOCS tables with only one segment file.
• AO row: planned next, using the same approach.
Questions for the community
• Does this direction make sense to you?
• Anything else I should cover or test?
Thanks!
Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
• Yes I am willing to submit a PR!
apache/cloudberry