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

Explore partitioning the objects table #4

Open
inian opened this issue Mar 22, 2021 · 0 comments
Open

Explore partitioning the objects table #4

inian opened this issue Mar 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@inian
Copy link
Member

inian commented Mar 22, 2021

Postgres native partitioning might be useful when there are millions of rows in the object table. If we partition by bucket_id, all API operations can just operate on a single partition.

Another advantage is one huge bucket shouldn't affect the query performance of another bucket.

I think we can use the list partition. New partitions can be dynamically created when new buckets are created (in the API code or via triggers). Dropping a bucket becomes simple since we can just delete the object partition table belonging to that bucket_id.

Query planning takes longer and more memory if there are more partitions. Will this be a problem if there are 1000s of buckets?

This is probably worth exploring after we have a proper benchmark in place.

@inian inian added the bug Something isn't working label Mar 22, 2021
@inian inian added enhancement New feature or request and removed bug Something isn't working labels May 18, 2021
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