From af8d2e46418eefb127e9fa9309a63fa60ef7fc66 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 17 Oct 2023 14:52:17 +0200 Subject: dashboard: optionally cache displayed bug groups For upstream Linux namespace, it sometimes takes up to 5-10 seconds to load the main page. That is too much and the reason for this is datastore not being intended for frequent querying of thousands of entities from the database. Let's take a step forward and at least cache the bugs we display on the main page. Once in a minute, query them for all access levels, compress and save to the memcached. Only do it for non-filtered bugs, because otherwise it works fast enough. As the next step we could also take care of terminal pages. --- dashboard/app/app_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'dashboard/app/app_test.go') diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go index 1ebabe04f..1a9cc5150 100644 --- a/dashboard/app/app_test.go +++ b/dashboard/app/app_test.go @@ -275,6 +275,7 @@ var testConfig = &GlobalConfig{ }, }, FindBugOriginTrees: true, + CacheUIPages: true, }, "access-public-email": { AccessLevel: AccessPublic, -- cgit mrf-deployment