From a3fbf86b29a341382ed24cabaed0f0105b193183 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Sat, 14 Aug 2021 20:42:20 +0200 Subject: [PATCH] Default commit message, part of an automated flow. --- async search.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/async search.md b/async search.md index 14851663e..8f85995d8 100644 --- a/async search.md +++ b/async search.md @@ -1,6 +1,6 @@ # async search -- search currently happens in every node, and it's full text search. this is very costly, I knew when adding it but it was just too convenient. +- search currently happens in every node by default, and it's full text (regex even) search. this is very costly, I knew when adding it but it was just too convenient and useful to have it :) - today on [[2021-08-14]] I'll try to fix this by making search be an async action: search only triggers when users reach the bottom of the page or request searching explicitly. - this will have the nice side effect of making the agora cheap by default when servicing bot requests, which probably won't run the javascript that is needed to retrieve search. - initial testing with `ab` (I know, old school) @@ -10,4 +10,6 @@ - [[before and after cache]] - testing after disabling full text search: - on localhost (dev instance) the 99% goes down to 3-6s (!). as expected, but nice to see. +- this didn't end up being enough to fix significant spikes of latency in high percentiles, so added [[uwsgi caching]] also. + - see [[before and after cache]]