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
At the moment PFE and the mobile app have to iterate over all the user's projects to sum their classifications. For users who have taken part in a lot of projects that can mean quite a few requests to the API.
The text was updated successfully, but these errors were encountered:
we store this value in the db and update the user classifications_count value with a counter on classification submission (high db contention on this update, i.e. counter caches but could be helped by worker limiting)
I'd prefer the straight lookup option 1 but it comes with the issue of ensuring the counters run properly and without locking contention on the user record.
PFE and the mobile app both show you your classification counts per project, along with a total over all projects, so the counts they request are going to need to be broken down per project anyway. We can change the page size on the project preference requests to make this faster.
Maybe also a filter on the UPP request to ignore UPP with a zero count? The code for your project stats ribbon spends a lot of time filtering out the preferences with zero classifications ie. projects you’ve visited but not classified on. Stats would be a lot faster if those UPPs were not included in the response.
At the moment PFE and the mobile app have to iterate over all the user's projects to sum their classifications. For users who have taken part in a lot of projects that can mean quite a few requests to the API.
The text was updated successfully, but these errors were encountered: