From 0ee2903196e69bdc73f6498182d5911f79739eb6 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 3 Dec 2024 13:05:41 +0100 Subject: [PATCH] increase queue size of import thread --- src/main/java/de/komoot/photon/nominatim/ImportThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/komoot/photon/nominatim/ImportThread.java b/src/main/java/de/komoot/photon/nominatim/ImportThread.java index 86e941e5..5ad2c8e6 100644 --- a/src/main/java/de/komoot/photon/nominatim/ImportThread.java +++ b/src/main/java/de/komoot/photon/nominatim/ImportThread.java @@ -16,7 +16,7 @@ class ImportThread { private static final int PROGRESS_INTERVAL = 50000; private static final NominatimResult FINAL_DOCUMENT = new NominatimResult(new PhotonDoc(0, null, 0, null, null)); - private final BlockingQueue documents = new LinkedBlockingDeque<>(20); + private final BlockingQueue documents = new LinkedBlockingDeque<>(10000); private final AtomicLong counter = new AtomicLong(); private final Importer importer; private final Thread thread;