Skip to content

override: use static query for override search#3317

Merged
mastercactapus merged 4 commits into
masterfrom
override-search-static
Oct 4, 2023
Merged

override: use static query for override search#3317
mastercactapus merged 4 commits into
masterfrom
override-search-static

Conversation

@mastercactapus
Copy link
Copy Markdown
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.

Comment thread override/queries.sql Outdated
@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