-
Notifications
You must be signed in to change notification settings - Fork 27
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
Requesting non-existent item property causes performance degradation instead of an error #61
Comments
Yes, queryables. Try hitting
I don't know the answer to this ... what would you want pgstac to do in the case where someone requets a non-existent property? |
Thank you for the prompt reply! Please correct me if I'm wrong, but the "queriables" mechanism simply advertises properties that can be queried and doesn't serve to restrict queries for non-existent properties. |
From the extension:
So, unless |
I discovered today that there is a related ticket in the PgSTAC repository, indicating that this would be the appropriate place to implement this functionality. |
I'm going to transfer this issue to the stac-fastapi-pgstac repo as it's specific to pgstac (thought it might exist in *-sqlalchemy as well 🤷🏼. |
Strict mode for search has been implemented in stac-utils/pgstac#216 |
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?The text was updated successfully, but these errors were encountered: