瀏覽代碼

perf: qa清单指引数据入库很慢,增加相关索引

vian 3 年之前
父節點
當前提交
74143462e0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/all_models/std_billsGuidance_items.js

+ 1 - 1
modules/all_models/std_billsGuidance_items.js

@@ -13,7 +13,7 @@ const Schema = mongoose.Schema;
 
 const stdBillsGuidanceItems = new Schema({
     libID: String,
-    ID: String, //uuid
+    ID: { type: String, index: true }, //uuid
     ParentID: String,
     NextSiblingID: String,
     billsID: String, //关联清单的ID