Skip to content

Partitioning by datetime #347

Open
Open
@bjgiraudon

Description

@bjgiraudon

Hi, I am currently running a database with ~60000 STAC Collections.

By default, partitioning in done by "collection", which has worked well in the past but is causing problems in this instance.

I quickly run way too many partitions and queries get super slow, pretty fast.
I wanted to edit partitioning, for a datetime-based approach, for example having a partition per week.
However, it seems like it's not working because pgstac still tries to create _items_XXXXX partitions when loading items into the DB.

So my question is : how can I update the database parttioning to match my needs ?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions