From aa2e196df682cb912915df2d7655f3925727cb4a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 6 Feb 2023 18:11:12 +0100 Subject: [PATCH] index page: Limit latest jobs display to 500 to prevent unecessarily lagging the browser --- run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/run.py b/run.py index e061c6c..a9a25bd 100644 --- a/run.py +++ b/run.py @@ -898,6 +898,7 @@ async def ws_index(request, websocket): Job.select(*selected_fields) .join(subquery, on=(Job.id == subquery.c.max_id)) .order_by(-Job.id) + .limit(500) ) subquery = (