Uploaded image for project: 'Solr Search Provider'
  1. Solr Search Provider
  2. MGNLEESOLR-64

FacetedSolrSearchProvider#removeOutdatedIndexes performs really slow for us resulting in dramatic search performance

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 3.0
    • Labels:
    • Environment:
      Solr 4.10, MacOS, Linux
    • Sprint:
      Sprint 6 (Kromeriz)
    • Story Points:
      2

      Description

      Hi,

      Since Magnolia Solr 2.2 the performance of our search functionality has becomes really slow (searches often take > 10 seconds and sometimes much more than that). Debugging reveals that the culprit is the new FacetedSolrSearchProvider#removeOutdatedIndexes method. For some queries this method takes an enormous amount of time. The Solr search query itself is always really fast.

      Our index is really quite small (443 documents, text only) and we use the default Magnolia Solr Module schema.xml and we use a crawler (not an indexer) in the content-indexer module.

      I am not sure what the issue is but for now I would really like the ability to disable the removeOutdatedIndexes functionality altogether. Why would you want to do this for every single query in any case? Can you as a start please make this functionality optional in the configuration of the Magnolia Solr Module?

      As a workaround for this issue we are now forced to write our own FacetedSolrSearchProvider but this is really painful since most of the methods in this class are private and therefore cannot be overridden.. We pretty much have to copy the entire class with is not something we want to do. Can you please make all methods protected at least so that we can extend this and other classes in the module?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rkovarik Roman Kovařík
                Reporter:
                edgar Edgar Vonk
                Visible to:
                Michaël van der Mark
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3d
                  3d
                  Remaining:
                  Remaining Estimate - 3d
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified