Skip to content

Requesting non-existent item property causes performance degradation instead of an error #61

Open
@drnextgis

Description

@drnextgis

I use stac-fastapi in conjunction with a PgSTAC backend. Today, I noticed a troublesome issue: when a client sends a request to the /search endpoint (with the filter extension activated) using a non-existent Item property, the backend initiates a comprehensive scan to locate the item. This significantly impairs the database's performance. Is there a way to specify which properties are eligible for filtering, thus preventing unnecessary requests from being forwarded to the database? Alternatively, can this be configured on the PgSTAC side in some way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions