legacy-knowledge-base
公開されました Sep. 10, 2025

時間がかかるセグメントAPI

written-by

Apsara Raheja

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 約230のユーザーセグメントがある場合、ユーザーがログインすると、セグメントに基づいたコンテンツが表示される。 セグメント数が多いので、セグメント API はユーザーセグメントを取得するのに時間がかかる。
    long[] segmentsEntryIds = _segmentEntryProviderRegistry.getSegmentsEntryIds(siteGroupId,
    name, userId, context);
    この問題はパフォーマンスの問題に関連している。 このページのロード時間が2分以上になっているため、APIに時間がかかりすぎている。

環境

  • Liferay DXP 7.2 with fix-pack-20

解像度

追加情報

  • DXP アップデートを最新のものにアップグレードして、期待される動作を実現してください。 アップグレードの基本
  • patching-toolコマンドはすべて、 {liferay_home}/patching-toolディレクトリから実行する必要があります。
    Ubuntu の場合:./patching-tool.sh
    Windows の場合: patching-tool.bat
did-this-article-resolve-your-issue

legacy-knowledge-base