aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/app_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-10-17 14:52:17 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-10-23 12:07:54 +0000
commitaf8d2e46418eefb127e9fa9309a63fa60ef7fc66 (patch)
tree142d18038b84a3507742c94d84488d45c29d20e2 /dashboard/app/app_test.go
parent6346f51eb10624fc17701d3a24d9f35c902b29a1 (diff)
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.
Diffstat (limited to 'dashboard/app/app_test.go')
-rw-r--r--dashboard/app/app_test.go1
1 files changed, 1 insertions, 0 deletions
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,