Update ActivityStream UI query to order by id (#15346)

Timestamp for activity stream is not indexed result in slow query. switching to ID (which effectively will is order by created time) to improve performance
This commit is contained in:
Hao Liu
2024-07-09 14:38:07 -04:00
committed by GitHub
parent 4e055f46c4
commit 7fc3d5c7c7

View File

@@ -59,7 +59,7 @@ function ActivityStream() {
{
page: 1,
page_size: 20,
order_by: '-timestamp',
order_by: '-id',
},
['id', 'page', 'page_size']
);