@Test
    void testStreamEntries() {
        final int count = 5;
        populateDb(count);

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

        assertThat(entries)
                .hasSize(count);
        assertThat(entries)
                .extracting(Entry::getKey)
                .containsExactly(
                        "01",
                        "02",
                        "03",
                        "04",
                        "05");
    }
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