@Test
    void testStreamEntriesWithKeyRange() {
        final int count = 15;
        populateDb(count);

        final KeyRange<String> keyRange = KeyRange.closed("06", "10");
        final List<Entry<String, String>> entries = lmdbEnv.getWithReadTxn(txn ->
                basicLmdbDb.streamEntries(txn, keyRange, stream ->
                        stream
                                .peek(entry -> LOGGER.info("key: '{}', value: '{}'",
                                        entry.getKey(), entry.getValue()))
                                .collect(Collectors.toList())));

        assertThat(entries)
                .hasSize(5);
        assertThat(entries)
                .extracting(Entry::getKey)
                .containsExactly(
                        "06",
                        "07",
                        "08",
                        "09",
                        "10");
    }
Comparing overwriting the same key N times vs putting N entries each with a different key
stroom-lmdb/src/test/java/stroom/lmdb/TestBasicLmdbDb.java