wellcomecollection.org icon indicating copy to clipboard operation
wellcomecollection.org copied to clipboard

Get aggregations off the hot path of search

Open gestchild opened this issue 1 year ago • 2 comments

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

gestchild avatar Oct 30 '23 11:10 gestchild

Is this still relevant? @gestchild

LaurenFBaily avatar Feb 28 '24 10:02 LaurenFBaily

I think it's still something worth doing, but probably not high priority

gestchild avatar Feb 28 '24 10:02 gestchild