Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79142

Poor Performance during JournalContentSearchLocalServiceImpl.checkContentSearches

    Details

    • Fix Priority:
      3

      Description

      The method JournalContentSearchLocalServiceImpl.checkContentSearches can cause poor performance when there are a large number of entries in the JournalContentSearch table as well as a large number of layouts.

      The following groovy script can be used to invoke the method.

      import com.liferay.journal.service.JournalContentSearchLocalServiceUtil
      import com.liferay.portal.kernel.util.PortalUtil
      import com.liferay.portal.kernel.util.StackTraceUtil
      
      try {
          println "Calling checkContentSearches - " + new Date();
          long companyId = PortalUtil.getDefaultCompanyId();
          JournalContentSearchLocalServiceUtil.checkContentSearches(companyId);
          println "Finished - " + new Date();
      }
      catch (Exception e) {
          println "Script failed: " + e.toString();
          println StackTraceUtil.getStackTrace(e);
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 12 weeks, 1 day ago

                  Packages

                  Version Package