From d0eaa855748d8ba986973d12e2763eb5927db6a8 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Tue, 18 Feb 2025 16:29:06 +0100 Subject: [PATCH] [IMP] runbot: faster main page Looks like bu.database_ids[1:].sorted('name') was breaking the prefech set leading to one query per build. Fiwing it by sorting without slicing the ignoring the first record. ~230 ms improvement over 1.7 second --- runbot/templates/utils.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runbot/templates/utils.xml b/runbot/templates/utils.xml index bedd528a..7207abf1 100644 --- a/runbot/templates/utils.xml +++ b/runbot/templates/utils.xml @@ -304,8 +304,8 @@ Force Build - - + +