As a user
When I search for a new topic
I want to see the results in less than 3 seconds
Problem
Currently, it can easily take more than 20 seconds which by modern standards seems hard to justify. It may put some users off.
Reasons
X5GON API returns paginated results, each page requiring a new request. We currently only request 24 resources (MAX_SEARCH_RESULTS = 24) so there is no actual reason to use pagination here.
X5GON API returns videos without duration information, requiring the dashboard to determine the duration on the fly for every new result that isn't already in the dashboard db. This takes about 1 second per video, so worst case 24 seconds per search.
There may be other reasons but these I've found to be the main culprits.
As a user When I search for a new topic I want to see the results in less than 3 seconds
Problem
Currently, it can easily take more than 20 seconds which by modern standards seems hard to justify. It may put some users off.
Reasons
There may be other reasons but these I've found to be the main culprits.
Solutions
to be discussed