Description of problem:
The search bar typeahead becomes too slow as the data in Postgres grows.
Version-Release number of selected component (if applicable): 2.7.7+
How reproducible: Always
Steps to Reproduce:
- From the search-indexer project run `make test-scale-ui` to load mocked data for 50 managed clusters with 100k resources each.
- Go to the Search console and type in the search bar.
Actual results:
Typeahead results take over 10 seconds to show.
Expected results:
Typeahead results show quickly.
Additional info:
There's 2 parts to this problem:
- The postgres query is slow. (ACM-7830)
- The UI can be optimized by caching the results of previous queries. (covered by this issue).
We are planning to use the GraphQL Apollo client cache feature with a cache policy of cache-and-network.
https://www.apollographql.com/docs/react/data/queries/#setting-a-fetch-policy
- is cloned by
-
ACM-7830 Search typeahead too slow (search-api portion)
- Backlog