Improve api/activity/recent_items performance #43092
Labels
.Backend
.Performance
.Task
Not a part of any Epic, used by the Task Issue Template
.Team/AdminWebapp
Admin and Webapp team
On stats, it is ~500ms but hopefully should be ~200ms.
e.g.:
/api/activity/recent_views 200 452.1 ms (6 DB calls)
We should profile this endpoint to see what is actually taking so long, but there are some possible avenues that we suspect:
The 4 entity queries (
:card
,:dataset
,:collection
, and:table
) are done sequentially, but could be done in parallelRemoving runtime checks (costs: could return incorrect data in certain situations).
Allow filtering via params (either count of items, or count per model, or just specify which models to grab)
The text was updated successfully, but these errors were encountered: