diff --git a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java index 0e007c04b9d..b04cebf4a7f 100644 --- a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java +++ b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/MemoryOverflowModel.java @@ -62,7 +62,7 @@ abstract class MemoryOverflowModel extends AbstractModel { private long maxBlockSize = 0; public MemoryOverflowModel() { - memory = new LinkedHashModel(); + memory = new LinkedHashModel(LARGE_BLOCK); } public MemoryOverflowModel(Model model) { @@ -76,7 +76,7 @@ public MemoryOverflowModel(Set namespaces, Collection namespaces) { - memory = new LinkedHashModel(namespaces); + memory = new LinkedHashModel(namespaces, LARGE_BLOCK); } @Override @@ -282,7 +282,7 @@ protected void finalize() throws Throwable { } }; disk.addAll(memory); - memory = new LinkedHashModel(memory.getNamespaces()); + memory = new LinkedHashModel(memory.getNamespaces(), LARGE_BLOCK); logger.debug("overflow synced to disk"); } catch (IOException | SailException e) { String path = dataDir != null ? dataDir.getAbsolutePath() : "(unknown)";