slumberdb/slumberdb-leveldb/src/main/java/org/boon/slumberdb/leveldb/LevelDBKeyValueStore.java
@Override
    public void putAll(Map<byte[], byte[]> values) {

        WriteBatch batch = database.createWriteBatch();

        try {

            for (Map.Entry<byte[], byte[]> entry : values.entrySet()) {
                batch.put(entry.getKey(), entry.getValue());
            }


            if (putAllWriteCount.addAndGet(values.size()) > 10_000) {
                putAllWriteCount.set(0);
                database.write(batch, flush);
            } else {
                database.write(batch, writeOptions);
            }

        } finally {
            closeBatch(batch);
        }
    }
@Override
    public void putAll(Map<byte[], byte[]> values) {

        WriteBatch batch = database.createWriteBatch();

        try {

            for (Map.Entry<byte[], byte[]> entry : values.entrySet()) {
                batch.put(entry.getKey(), entry.getValue());
            }


            if (putAllWriteCount.addAndGet(values.size()) > 10_000) {
                putAllWriteCount.set(0);
                database.write(batch, flush);
            } else {
                database.write(batch, writeOptions);
            }

        } finally {
            closeBatch(batch);
        }
    }
Puts values into the key value store in batch mode

@param values values