This commit is contained in:
Archer
2025-03-18 11:01:58 +08:00
committed by archer
parent f842ad93ce
commit 5563c3a0e7
6 changed files with 73 additions and 45 deletions

View File

@@ -106,7 +106,7 @@ try {
DatasetDataSchema.index({ rebuilding: 1, teamId: 1, datasetId: 1 });
// 为查询 initJieba 字段不存在的数据添加索引
DatasetDataSchema.index({ initJieba: 1 }, { sparse: true });
DatasetDataSchema.index({ initJieba: 1, updateTime: 1 });
} catch (error) {
console.log(error);
}