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

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              samuel.ziemer Sam Ziemer
              Participants of an Issue:
              Recent user:
              Marta Elicegui
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 24 weeks, 1 day ago

                  Packages

                  Version Package