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
{{ message }}
Repository navigation
Import from other channels - Constantly getting "Failed to load search results" #3186
I'm constantly getting a "Failed to load search results" regardless of the search term that I've entered. There's a 524 error in the console followed by other timeout errors.
Note the request is timing out due to the amount of data and our database performance in production and staging (hotfixes), so this isn't a "bug" per se but a need for optimization.
One initial suggestion I had given for this was to create a separate search endpoint purely for the public channels - this might help reduce the query complexity by removing some of the permissions checking logic from these searches. However, I have not validated whether removing those aspects of the queries would resolve this issue.
I and @vkWeb tried to look into this but got lost on our way looking into SearchContentNodeViewSet. Can you provide some pointers on how should we proceed? @bjester@rtibbles
Activity
radinamatic commentedon Jun 2, 2021
Experiencing the same issue consistently, search for resources to import into channels does not work.
Note that searching the Content Library directly works without issues.
pcenov commentedon Aug 11, 2021
Retested today and this issue is still happening at both hotfixes and https://studio.learningequality.org
https://learningequality.testquality.com defect D7.
bjester commentedon Mar 1, 2022
@vkWeb @d0sadata Another search related issue that's more actionable is #3181
bjester commentedon Mar 1, 2022
Note the request is timing out due to the amount of data and our database performance in production and staging (hotfixes), so this isn't a "bug" per se but a need for optimization.
vkWeb commentedon Mar 11, 2022
@bjester how do you suggest we should go about optimizing this?
bjester commentedon Mar 11, 2022
@vkWeb Please take a look at implementing #3181 first. I'm offline next week but we can collaborate on this afterwards.
rtibbles commentedon Mar 11, 2022
One initial suggestion I had given for this was to create a separate search endpoint purely for the public channels - this might help reduce the query complexity by removing some of the permissions checking logic from these searches. However, I have not validated whether removing those aspects of the queries would resolve this issue.
vkWeb commentedon Mar 13, 2022
@bjester okay, we'll look into this when you return.
@rtibbles we'll definitely try that as well to see if perf improves.
ozer550 commentedon Apr 29, 2022
I would like to help @vkWeb on this.
vkWeb commentedon Apr 29, 2022
I had a talk with @d0sadata about this, he's fine with me and @ozer550 handling this.
ozer550 commentedon May 6, 2022
I and @vkWeb tried to look into this but got lost on our way looking into
SearchContentNodeViewSet. Can you provide some pointers on how should we proceed? @bjester @rtibbles