You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the "explore without an account" in the sign in page the catalog can be reached.
There, filter by subtitles: results must be visible in a reasonable time (a few seconds, not minutes or hours)
Implementation Notes (optional)
Several improvements have been done:
Subtitle filter has the kind="video" condition added, supposing all nodes with subtitles will be videos. This reduces in an order of magnitude the amount of rows to be joined with the File table, thus making the sql query be executed much faster.
Using the techniques applied in Annotate after paginate (and some more stuff) #2511 : Count of the results is cached, so it's not recalculated between pages, and annotations are applied after the page has been retrieved, affecting less records.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Solves some performance problems in the Catalog results and filters optimizing pagination and filter
Issue Addressed (if applicable)
Addresses #2072
Steps to Test
Using the "explore without an account" in the sign in page the catalog can be reached.
There, filter by subtitles: results must be visible in a reasonable time (a few seconds, not minutes or hours)
Implementation Notes (optional)
Several improvements have been done:
kind="video"condition added, supposing all nodes with subtitles will be videos. This reduces in an order of magnitude the amount of rows to be joined with the File table, thus making the sql query be executed much faster.