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

override: use static query for override search #3317

Merged
merged 4 commits into from
Oct 4, 2023

Conversation

mastercactapus
Copy link
Member

@mastercactapus mastercactapus commented Sep 28, 2023

Description:
This PR replaces the dynamic/rendered search query with a fixed one using sqlc.

Which issue(s) this PR fixes:
Part of #3235

Out of Scope:

  • The rest of the store was left as-is

Describe any introduced API changes:
The behavior should be identical to the prior implementation; however, the query is no longer dynamic, and at most 1 query will be prepared/cached/planned in the DB.

Additional Info:
Since the limit is now fixed to the max (150), it's no longer necessary to validate the limit argument as it is only used to return less than the max and is no longer part of rendering the actually executed query.

@mastercactapus mastercactapus merged commit 3319556 into master Oct 4, 2023
@mastercactapus mastercactapus deleted the override-search-static branch October 4, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants