Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-7822

Search typeahead too slow (console portion)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • ACM 2.8.4
    • ACM 2.7.7
    • Search
    • None
    • 1
    • False
    • None
    • False
    • Search Sprint 2023-18
    • Critical
    • -
    • No

      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:

      1. From the search-indexer project run `make test-scale-ui` to load mocked data for 50 managed clusters with 100k resources each.
      2. 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:

      1. The postgres query is slow. (ACM-7830)
      2. 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

              zlayne@redhat.com Zackery Layne
              jpadilla@redhat.com Jorge Padilla
              Xiang Yin Xiang Yin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: