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

Optimize Parquet files #66

Open
davidgasquez opened this issue Feb 21, 2024 · 1 comment
Open

Optimize Parquet files #66

davidgasquez opened this issue Feb 21, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@davidgasquez
Copy link
Owner

Compress and sort them!

Not sure if it can be done for the DuckDB database.

@davidgasquez davidgasquez added the enhancement New feature or request label Feb 21, 2024
@davidgasquez davidgasquez self-assigned this Feb 21, 2024
@davidgasquez
Copy link
Owner Author

copy(
    select * from 'data/allo_donations.parquet' 
    order by round_id, donor_address, project_id, token_address, recipient_address) 
to 'data/allo_comp_rs_sorted.parquet' (compression 'zstd', row_group_size 10000000)

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

No branches or pull requests

1 participant