legacy-knowledge-base
公開されました Jul. 2, 2025

DLFileRank クエリが長時間実行され、プールの使用量が占有されている

written-by

Katlyn Lee

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

問題

  • 長時間実行されているデータベース クエリが表示されており、環境への影響が心配です。
    insert into DLFileRank (groupId, companyId, userId, createDate, 
    fileEntryId, active_, fileRankId) values (:1 , :2 , :3 ,
    :4 , :5 , :6 , :7 )

Environment

  • ポータル 6.2

解決策

  • DLFileRank によりデッドロックまたは SQL 更新バッチ エラーが発生するで説明されている動作と同様に、ドキュメント ライブラリのアクティビティが増加すると、データベースへの更新クエリが急増する可能性があります。
  • データベース プールの使用を軽減するために、顧客は DLFileRank を完全に無効にするか、次のポータル プロパティを使用して各更新間の時間を短縮できます。
Set the interval in minutes on how often CheckFileRankMessageListener 
will run to check for and remove file ranks in excess of the maximum number
of file ranks to maintain per user per file.

Defaults:
dl.file.rank.check.interval=15


Set this to true to enable file rank for document library files.

Defaults:
dl.file.rank.enabled=true


Set the maximum number of file ranks to maintain per user per file.

Defaults:
dl.file.rank.max.size=5

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base