private void populateDb(final int count) {
        final Random random = new Random(123);
        final List<Entry<String, String>> entryList = IntStream.rangeClosed(1, count)
                .boxed()
                .map(i ->
                        Map.entry(buildKey(i), buildValue(i)))
                .collect(Collectors.toList());
        // Consistent seeded shuffle
        Collections.shuffle(entryList, random);
        // pad the keys to a fixed length, so they are stored in number order
        entryList.forEach(entry -> {
            basicLmdbDb.put(entry.getKey(), entry.getValue(), false);
        });

        basicLmdbDb.logDatabaseContents(LOGGER::info);
    }
See the impact on disk space of doing writes with an open read txn
stroom-lmdb/src/test/java/stroom/lmdb/TestBasicLmdbDb.java