(index-journal) Make index journal page size configurable
Adds a new system property loader.journal-page-size to configure this setting.
This commit is contained in:
parent
fa145f632b
commit
6dcc20038c
@ -26,7 +26,7 @@ public class IndexJournalWriterPagingImpl implements IndexJournalWriter {
|
||||
*
|
||||
* The limit is set to 1,000,000, which amounts to about 1 GB on disk.
|
||||
*/
|
||||
private static final int SWITCH_LIMIT = 1_000_000;
|
||||
private static final int SWITCH_LIMIT = Integer.getInteger("loader.journal-page-size", 1_000_000);
|
||||
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
Loading…
Reference in New Issue
Block a user