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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 約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