<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Application Menu take 7 seconds to be able to open.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122688198" />
  <subtitle>Application Menu take 7 seconds to be able to open.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122688198</id>
  <updated>2026-04-06T22:56:16Z</updated>
  <dc:date>2026-04-06T22:56:16Z</dc:date>
  <entry>
    <title>RE: Application Menu take 7 seconds to be able to open.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122707514" />
    <author>
      <name>Alberto Chaparro</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122707514</id>
    <updated>2024-06-07T16:50:04Z</updated>
    <published>2024-06-07T16:50:04Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;br&gt;
  &lt;br&gt; Due to some refactors to improve how database build the b-trees,
  some indexes were missed. The right indexes will be regenerated when
  upgrading to the version 7.4 U120 and higher (see &lt;a class="c-link c-mrkdwn__identity_trigger" href="https://liferay.atlassian.net/browse/LPD-24730" rel="noopener noreferrer" style="text-decoration: none;cursor: pointer;font-family: Slack-Lato , Slack-Fractions , appleLogo , sans-serif;font-size: 15.0px;font-style: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0.0px;text-transform: none;widows: 2;word-spacing: 0.0px;white-space: normal;background-color: rgb(248,248,248);" target="_blank"&gt;https://liferay.atlassian.net/browse/LPD-24730)&lt;/a&gt;.
  If you are between 112 and 119 (both included) you can use the script
  provided by Sebastian (thanks!) but remember to remove then when
  upgrading to newer Liferay versions since you will get sql exceptions
  trying to create the liferay ones that will collide with them.&lt;br&gt;
  &lt;br&gt; ​​​​​​​Cheers!&lt;/p&gt;</summary>
    <dc:creator>Alberto Chaparro</dc:creator>
    <dc:date>2024-06-07T16:50:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Application Menu take 7 seconds to be able to open.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122706248" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122706248</id>
    <updated>2024-06-07T06:07:54Z</updated>
    <published>2024-06-07T06:02:47Z</published>
    <summary type="html">&lt;p&gt;I´ve found the solution to my problems. Do backup everything before
  trying these, for me it did not cause any trouble, but one can never
  be sure.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;I created new database table indexes for slow sql queries to
    speed up everything:&amp;nbsp;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CREATE INDEX idx_portletPreferencesId ON PortletPreferenceValue (portletPreferencesId);&amp;nbsp;
CREATE INDEX idx_portlet_ctCollection ON PortletPreferenceValue (portletPreferencesId, ctCollectionId);&amp;nbsp;
CREATE INDEX idx_company_name_scope ON ResourcePermission (companyId, name, scope);&amp;nbsp;
CREATE INDEX idx_primKey_roleId ON ResourcePermission (primKey, roleId);
CREATE INDEX idx_liveGroupId ON Group_ (liveGroupId);&amp;nbsp;
CREATE INDEX idx_userId ON Users_Groups (userId);&amp;nbsp;
CREATE INDEX idx_classNameId ON Group_ (classNameId);&amp;nbsp;
CREATE INDEX idx_companyId ON Group_ (companyId);&amp;nbsp;
CREATE INDEX idx_parentGroupId ON Group_ (parentGroupId);&amp;nbsp;
CREATE INDEX idx_groupKey ON Group_ (groupKey);&amp;nbsp;
CREATE INDEX idx_ownerType ON PortletPreferences (ownerType);&amp;nbsp;
CREATE INDEX idx_plid ON PortletPreferences (plid);&amp;nbsp;
CREATE INDEX idx_portletId ON PortletPreferences (portletId);
CREATE INDEX idx_owner_plid_portletId ON PortletPreferences (ownerType, plid, portletId);&amp;nbsp;
CREATE INDEX idx_configUuid ON AMImageEntry (configurationUuid);&amp;nbsp;
CREATE INDEX idx_fileVersionId ON AMImageEntry (fileVersionId);&amp;nbsp;
CREATE INDEX idx_ctCollectionId ON AMImageEntry (ctCollectionId);&amp;nbsp;
CREATE INDEX idx_config_fileVersion_ctCollection ON AMImageEntry (configurationUuid, fileVersionId, ctCollectionId);&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The last ones with amimageentry probably has the least impact, but i
  have a pretty image heavy site, so that seemed to have speed up some pages.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;I had two test pages with my custom portlets on them:&lt;/strong&gt;
  &lt;br&gt;
  &lt;br&gt; Before creating indexes:&lt;br&gt; page 1: ~1500ms&lt;br&gt; page 2: ~3000ms&lt;br&gt;
  &lt;br&gt; After creating indexes:&lt;br&gt; page 1: ~240ms&lt;br&gt; page 2: ~530ms&lt;br&gt;
  &lt;br&gt; It would be an understatement to say that the improvment was
  massive, hope this helps you too!&lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2024-06-07T06:02:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Application Menu take 7 seconds to be able to open.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122702495" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122702495</id>
    <updated>2024-06-06T04:59:07Z</updated>
    <published>2024-06-05T10:54:26Z</published>
    <summary type="html">&lt;p&gt;I´m experiencing the same thing. I upgraded from liferay 7.4.3.43 to
  7.4.3.112. Loading the control-panel is slow the first time but as
  long as it is in cache its fast as it should be.&lt;br&gt;
  &lt;br&gt; I´ve developed a good amount of portlets for our need, and under
  the older version loading times were between 150ms to 450ms for a
  page, no matter if it had been loaded lately or not.&lt;br&gt;
  &lt;br&gt; Now with version 7.4.3.112 the loading times are usually 1500 -
  3000ms and in bad cases even 5900ms when loading a page with a couple
  of instances of a portlet. The page is then put in some kind of cache,
  which means that the page loading times are normal after that ie
  150-450ms, but they are cached only for like minutes.&lt;br&gt;
  &lt;br&gt; I´ve been working for over a week trying to figure out what is
  wrong. I´ve used glowroot that recognizes that there are slow traces,
  and that it is jdbc queries primarily that are causing these. There
  are database queries that take 2800ms which have never before done
  this. Im feeling quite helpless at the moment as this seems to be
  impossible for me to debug.&lt;/p&gt;
&lt;p&gt;If you find any solution to this problem, please do share!&lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2024-06-05T10:54:26Z</dc:date>
  </entry>
  <entry>
    <title>Application Menu take 7 seconds to be able to open.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122688197" />
    <author>
      <name>Jorge Figueroa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122688197</id>
    <updated>2024-06-05T08:46:02Z</updated>
    <published>2024-05-30T23:18:20Z</published>
    <summary type="html">&lt;p&gt;Hi all, we have been migrated from Liferay 7.2 to Liferay 7.4, and
  once we did this upgrade, we noticed that once admin user is logged,
  the application menu takes between 5 and 10 seconds in being able to
  click and see the control panel.&lt;/p&gt;
&lt;p&gt;We also noticed on browser console, that when this url is
  called&amp;nbsp;https://hostname/c/portal/session_click the function start to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any way to improve the time that takes to open application menu?&lt;/p&gt;</summary>
    <dc:creator>Jorge Figueroa</dc:creator>
    <dc:date>2024-05-30T23:18:20Z</dc:date>
  </entry>
</feed>
