wellcomecollection.org
wellcomecollection.org copied to clipboard
Get aggregations off the hot path of search
This comes from a slack conversation
It would reduce the load on then cluster if we didn’t have to do all the aggregations on every search.
For users with JavaScript:
- ditch aggregations from the initial query, and run new queries when the user opens one of the filter menus.
For users without JavaScript:
- have a “Filters” button as the only entry in the filter bar
- when it's clicked, reload the page with some special query parameter (e.g. with_aggregations=true) that will:
- fetch the aggregations as part of the page load query
- render them using something like a so they don't take up too much space on the page
Is this still relevant? @gestchild
I think it's still something worth doing, but probably not high priority