-
Notifications
You must be signed in to change notification settings - Fork 87
Optimize topics/list
#777
Comments
As always with issues like this, would you be able to post a specific API call, complete with the host that you're calling (is it the frontend cache or the backend directly), arguments, limits, expected result (e.g. "should return in x / in x s") and actual result ("doesn't return at all") to make it easier for us to look into it? Alternatively, a link for us to click on to observe the call's behavior would be tremendously useful and speed up debugging. More details would potentially reduce the number of "dunno, works for me" responses from us :) |
Here's the code on the frontend that's in questions, https://github.com/mediacloud/web-tools/blob/45422d7be1f5e766fe0f865982c70014932451ed/server/views/topics/topiclist.py#L69. What's happening is that the |
So which user ( If I read it correctly, A natural solution would be to add some sort of a filtering capability on the backend, for example, one should be able to do Also maybe it's worth it reviewing what |
The frontend calls
topics/list
until the list of topics is exhausted and then checks to see if any topics are running or in queue in order to inform non-admin users whether they can create topics (non-admins can only create one topic at a time). This can take a long time, resulting in a timeout.Are there optimizations that can be made to this call? One idea is that perhaps it would be more efficient to filter via a param so that only topics that matched "in progress" or "running" are returned.
Any ideas?
The text was updated successfully, but these errors were encountered: