diff --git a/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java b/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java index 14de17c..0eaf4d8 100644 --- a/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java +++ b/src/main/java/it/cavallium/dbengine/database/collections/DatabaseMapDictionary.java @@ -571,10 +571,9 @@ public class DatabaseMapDictionary extends DatabaseMapDictionaryDeep Stream>> getAllEntriesFastUnsafe(DatabaseMapDictionary dict, BiConsumer, Throwable> deserializationErrorHandler) { try { - Comparator comparator = Comparator.comparingInt(x -> x.getMetadata().level()).reversed(); return ((LLLocalDictionary) dict.dictionary) .getAllLiveFiles() - .sorted(comparator) + .sequential() .map(file -> file.iterate(new SSTRangeFull()).map(state -> switch (state) { case RocksDBFileIterationStateBegin rocksDBFileIterationStateBegin: yield null;