index page: Limit latest jobs display to 500 to prevent unecessarily lagging the browser

This commit is contained in:
Alexandre Aubin 2023-02-06 18:11:12 +01:00
parent 6eb3075d6b
commit aa2e196df6

1
run.py
View file

@ -898,6 +898,7 @@ async def ws_index(request, websocket):
Job.select(*selected_fields) Job.select(*selected_fields)
.join(subquery, on=(Job.id == subquery.c.max_id)) .join(subquery, on=(Job.id == subquery.c.max_id))
.order_by(-Job.id) .order_by(-Job.id)
.limit(500)
) )
subquery = ( subquery = (