- 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.
initial testing with
ab(I know, old school)
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.