多くのお客様がLiferay Document Libraryを使用して大量のドキュメントを保存しているため、データに関して当然の疑問が生じます。 これは特定の環境に大きく依存しますが、この記事では一般的な環境での質問に答えることを目的としています。 Liferayソフトウェアは、ドキュメントライブラリに制約をかけません。 パフォーマンス上の制約は、アプリケーションサーバーまたはデータベースにあります。 多くのLiferayのお客様は、Liferayプラットフォームから何のトラブルもなく、大規模なドキュメントライブラリを持っています。
ファイルのアップロード サイズと最大ファイル サイズは、UI および以下に説明するポータル プロパティを介して制御されます。 すべての構成とプロパティを確認して、予想されるユースケースに最も適切なものを決定してください。
決議
- 最大ファイルサイズを設定するには、portal.propertiesにある以下の値を変更します。
Set the maximum file size and valid file extensions for documents. A value # of 0 for the maximum file size can be used to indicate unlimited file # size. However, the maximum file size allowed is set in the property # "com.liferay.portal.upload.UploadServletRequestImpl.max.size". # #dl.file.max.size=307200 #dl.file.max.size=1024000 dl.file.max.size=3072000
- インデックス可能なコンテンツの最大ファイルサイズを設定するには、portal.properties にある以下の値を変更します。
Set the maximum size for a file's indexable content. Files larger than # this property will only have this amount of their content indexed. A value # of -1 indicates that all of a file's content will be indexed. A value of 0 # indicates that none of the file's content will be indexed. # dl.file.indexing.max.size=1048576
- プレビューとサムネイル生成の最大ファイルサイズを設定するには、portal.propertiesにある以下の値を変更します。
Set the maximum file size for preview and thumbnail generation. Files # larger than the value specified in this property will not result in the # execution of a processor that generates a preview. A value of -1 indicates # that all files will be processed. A value of 0 indicates that no files # will be processed. The default maximum size is 100 megabytes. # dl.file.entry.previewable.processor.max.size=104857600