fix: 允许使用磁盘空间进行排序

This commit is contained in:
chenwenjian 2024-12-02 13:48:55 +08:00
parent a06ac5fb55
commit 59b1e3a05e

View File

@ -203,6 +203,7 @@ public class LogServiceImpl implements LogService {
log.info("findLogs filter: {}, skip: {}, limit: {}, sort: {}", filterDoc.toString(), skip, limit, sortDoc.toString());
ArrayList<LogEntity> logEntityList = new ArrayList<>();
try (MongoCursor<Document> cursor = logCollection.find(filterDoc)
.allowDiskUse(true)
.sort(sortDoc)
.skip(skip)
.limit(limit)