Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asset_per_band: improve partitioner #330

Open
jdries opened this issue Oct 9, 2024 · 0 comments
Open

asset_per_band: improve partitioner #330

jdries opened this issue Oct 9, 2024 · 0 comments
Assignees

Comments

@jdries
Copy link
Contributor

jdries commented Oct 9, 2024

The final stage of asset_per_band jobs has bad partitioning, leading to a large amount of useless tasks.
The fix is to change to a different partitioner when doing 'groupbykey'. A good partitioner for this kind of operation, is probably assigning one key to one partition.
Here's a partitioner that does exactly that, based on an array of keys:

class ByKeyPartitioner[K](splits: Array[K]) extends Partitioner {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants