Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13932

commit() is slow due to spellchecker [patch]

    XMLWordPrintable

Details

    Description

      Hi

      In my case I have indexed about 60 000 objects and it takes 70 seconds! to re-index an object (while publish a new version of an object).

      About 40 seconds is spend on rebuilding the spellchecker index which is configured to be recreated on commits. I suggest that it instead are only built on optimize():

      Index: solrconfig.xml
      ===================================================================
      --- solrconfig.xml      (revision 37804)
      +++ solrconfig.xml      (working copy)
      @@ -539,7 +539,8 @@
             <str name="name">default</str>
             <str name="field">ezf_sp_words</str>
             <str name="spellcheckIndexDir">./ezfspellchecker</str>
      -      <str name="buildOnCommit">true</str>
      +      <str name="buildOnOptimize">true</str>
      
           </lst>
      

      fyi:
      The remaining 30 sec (70s-40s) is spent on optimize(), ref http://issues.ez.no/IssueView.php?Id=13930

      Attachments

        Activity

          People

            pborgerm pborgerm
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: