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

Cache results of search filter field values #3181

Closed
bjester opened this issue Jun 1, 2021 · 0 comments · Fixed by #3343
Closed

Cache results of search filter field values #3181

bjester opened this issue Jun 1, 2021 · 0 comments · Fixed by #3343

Comments

@bjester
Copy link
Member

bjester commented Jun 1, 2021

Observed behavior

Queries for search filter field values, such as the choices for filtering licenses or content kinds, are queried often and tend to take some time to complete.

Examples:
ContentKinds
Licenses

Expected behavior

Since the results of these queries are unlikely to change with great frequency, we should cache them. For instance, the ContentKinds query returns 8 rows on average-- the entirety of the currently defined content kinds.

User-facing consequences

Slower experience loading the search page. Perhaps slower experience overall if search is actively used

Errors and logs

Screenshot from 2021-06-01 09-32-58

Additional information

Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants