Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3265

Optimize search page loading time (including the Filter counters feature).

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Should have Should have
    • 1.47
    • 4
    • Search
    • Sprint #78, Sprint #79

      Further optimization of the search page performance (without removing the Filter counters feature).

      1. Currently we are not limiting results down to a page number (e.g. 5) so that we can get the total number of results (or max 300) and at the same time get how many of those results belong to each Filter. Then we cache these results in object cache (but we cache the whole WP_Post object. We should use the P4_Post class to store in cache only the necessary data instead of the whole WP_Post object which can be quite larger).
      2. Currently when searching for specific term/phrase we are sending back to the client the HTML for all results found which can cause delay. So basically, this means that the Load more functionality is not working in this case. It only works when searching for everything (aka no search term/phrase given). We should apply the Load More functionality also when searching for specific term/phrase and send back to client results in chunks of 5 items each time.

       

      I believe we should try these 2 optimizations and perhaps we can then go on without removing the Filter counters feature.

      kkokkoro

      rawalker

        1. production-search-time.png
          20 kB
          Konstantinos Kokkorogiannis
        2. Screenshot from 2019-03-15 13-05-20.png
          81 kB
          Angelos Theodorakopoulos
        3. Screenshot from 2019-03-15 13-06-16.png
          61 kB
          Angelos Theodorakopoulos
        4. staging-search-time.png
          22 kB
          Konstantinos Kokkorogiannis

            atheodor Angelos Theodorakopoulos (Inactive)
            kkokkoro Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: