diff --git a/data-store/src/main/java/org/lucares/pdb/datastore/internal/DataStore.java b/data-store/src/main/java/org/lucares/pdb/datastore/internal/DataStore.java index 8a517f4..a0ad9a4 100644 --- a/data-store/src/main/java/org/lucares/pdb/datastore/internal/DataStore.java +++ b/data-store/src/main/java/org/lucares/pdb/datastore/internal/DataStore.java @@ -111,7 +111,7 @@ public class DataStore implements AutoCloseable { // A Doc will never be changed once it is created. Therefore we can cache them // easily. - private final HotEntryCache docIdToDocCache = new HotEntryCache<>(Duration.ofMinutes(30), 100_000); + private final HotEntryCache docIdToDocCache = new HotEntryCache<>(Duration.ofMinutes(10), 50_000); private final HotEntryCache writerCache; @@ -154,7 +154,7 @@ public class DataStore implements AutoCloseable { final long start = System.nanoTime(); writer.write(dateAsEpochMilli, value); final double duration = (System.nanoTime() - start) / 1_000_000.0; - if (duration > 10) { + if (duration > 100) { System.out.println(" write took: " + duration + " ms " + tags); } } @@ -422,7 +422,7 @@ public class DataStore implements AutoCloseable { final PdbWriter result = new PdbWriter(pdbFile, diskStorage.getExisting(partitionId)); final double duration = (System.nanoTime() - start) / 1_000_000.0; - if (duration > 10) { + if (duration > 100) { METRICS_LOGGER_NEW_WRITER.info("newPdbWriter took {}ms tags: {}", duration, tags); } return result;