diff --git a/code/features-index/index-journal/src/main/java/nu.marginalia.index/journal/writer/IndexJournalWriterPagingImpl.java b/code/features-index/index-journal/src/main/java/nu.marginalia.index/journal/writer/IndexJournalWriterPagingImpl.java index 9fd62a66..be134be1 100644 --- a/code/features-index/index-journal/src/main/java/nu.marginalia.index/journal/writer/IndexJournalWriterPagingImpl.java +++ b/code/features-index/index-journal/src/main/java/nu.marginalia.index/journal/writer/IndexJournalWriterPagingImpl.java @@ -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());