execution time is too long for use the function "addFileEntry"execution time is too long for use the function "addFileEntry"https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1214007432024-03-29T08:02:12Z2024-03-29T08:02:12Zexecution time is too long for use the function "addFileEntry"Shi zhhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1214007422022-04-18T15:34:20Z2022-04-18T06:59:01Z<p>Hi all,</p>
<p> in our project,use the function "addFileEntry" to write
file to document repository,The waiting time is about 30 seconds。This
method is a wrapper method,How to solve it ,or How to check,thanks :)</p>
<pre>
<code class="language-java">_log.info("addFileEntry start-->"+System.currentTimeMillis());
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(
originalFileEntry.getUserId(),originalFileEntry.getRepositoryId(),
groupImageFolder.getFolderId(), title,
getContentType(imageRule.getMimeTYpe(), tempFile.getName()),
title, "", "", tempFile, new ServiceContext());
_log.info("addFileEntry end-->"+System.currentTimeMillis());
</code></pre>
<