123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- //ArchivedImage
- db.getCollection("ArchivedImages").createIndex({ "IsDeleted": -1,"OrganizationId": 1,"HashCode": 1})
- //UltrasoundFile
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.IsLabeled": 1,"Labeled": -1,"IsAdoptable": 1,"GoldStandardLabeledFileId": 1})
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.IsLabeled": 1,"Labeled": -1,"Source.FileName": 1, "HasQuestioned": 1,"HasPendingConfirmed": 1,"CreateTime": -1})
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.HasSeen": 1,"HasSeen": 1,"Source.FileName": 1 })
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.IsSkipped": 1,"IsSkipped": 1,"Source.FileName": 1 })
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.IsLabeled": 1,"GoldStandardLabeledFileId": 1,"Source.FileName": 1, "CreateTime": -1})
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseInfos._id": 1,"ImageCaseInfos.IsLabeled": 1,"Assigned": 1,"GoldStandardLabeledFileId": 1, "CreateTime": 1})
- db.getCollection("UltrasoundFiles").createIndex({ "_id": 1,"GoldStandardLabeledFileId": 1})
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageBatchId": 1, "UpdateTime": -1})
- db.getCollection("UltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ArchivedImageId": 1})
- //LabeledUltrasoundFile
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseId": 1,"IsGoldStandard": -1,"Source.FileName": 1, "CreateTime": -1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseId": 1,"UltrasoundFileId": 1, "Labeler._id":1, "IsImportedFormOldData": -1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseId": 1,"IsRelabeled": 1,"UltrasoundFileId": 1,"Labeler._id": 1, "DeveloperItem.QuestionedState":1, "SourceLabeledUltrasoundFileId":1, "DeveloperItem.ConfirmedState":1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted":1, "ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseId": 1,"IsAdoptable": -1, "IsInvalid":1, "ReviewState":1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted":1, "Labeler._id": 1,"CreateTime": 1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "_id":1,"UltrasoundFileId":1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ArchivedImageId": 1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"UltrasoundFileId": 1,"IsAdoptable": -1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"UltrasoundGroupId": 1,"IsSkipped": -1})
- db.getCollection("LabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1,"ImageBatchId": 1,"ImageCaseId": 1,"UltrasoundGroupId": 1, "IsSkipped":-1, "IsAdoptable": -1, "IsGoldStandard": -1})
- //DeveloperFolderFile
- db.getCollection("DeveloperFolderFiles").createIndex({ "IsDeleted": -1,"DeveloperFolderId": 1,"Name": 1,"Index": 1})
- db.getCollection("DeveloperFolderFiles").createIndex({ "IsDeleted": -1,"DeveloperFolderId": 1,"HasQuestioned": 1,"Index": 1})
- db.getCollection("DeveloperFolderFiles").createIndex({ "IsDeleted": -1,"DeveloperFolderId": 1,"Name": 1,"HasQuestioned": 1,"Index": 1})
- db.getCollection("DeveloperFolderFiles").createIndex({ "IsDeleted": -1,"UltrasoundFileId": 1,"DeveloperFolderId": 1})
- db.getCollection("DeveloperFolderFiles").createIndex({ "IsDeleted": -1,"DeveloperLabeledUltrasoundInfoList.LabeledUltrasoundFileId": 1 })
- //DeveloperLabeledUltrasoundFile
- db.getCollection("DeveloperLabeledUltrasoundFiles").createIndex({ "IsDeleted": -1,"UltrasoundFileId": 1,"DeveloperFolderId": 1})
- //AssignedLabelCaseFile
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "HasSeen":-1, "IsLabeled":-1, "Index":1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "IsReviewFailed":1, "Index":1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "RelabelState":1, "QuestionedState":1, "Index":1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "LabeledUltrasoundFileIds.k":1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "MixedFileType":1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"LabeledUltrasoundFileIds.k": 1, "IsRelabeled":-1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"ImageCategoryId": 1, "UltrasoundFileId":1, "IsLabeled":-1 })
- db.getCollection("AssignedLabelCaseFiles").createIndex({ "IsDeleted": -1,"AssignedLabelCaseId": 1, "UltrasoundFileId":1, "IsLabeled":-1 })
- //AssignedReviewCaseFile
- db.getCollection("AssignedReviewCaseFiles").createIndex({ "IsDeleted": -1,"AssignedReviewCaseId": 1,"HasSeen": 1,"Index": 1 })
- db.getCollection("AssignedReviewCaseFiles").createIndex({ "IsDeleted": -1,"AssignedReviewCaseId": 1,"ReAuditState": 1, "QuestionedState":1, "Index": 1 })
- db.getCollection("AssignedReviewCaseFiles").createIndex({ "IsDeleted": -1,"LabeledItems.AssignedLabelCaseFileId": 1 })
- //SameBatchLabelCase
- db.getCollection("SameBatchLabelCases").createIndex({ "IsDeleted": -1,"Organization._id": 1,"ImageCategoryId": 1, "Name": 1,"CreateTime": 1, "UpdateTime":1 })
- db.getCollection("SameBatchLabelCases").createIndex({ "Labelers.AssignedLabelCaseId": 1 })
- db.getCollection("SameBatchLabelCases").createIndex({ "Name": 1,"Labelers._id": 1 })
- db.getCollection("SameBatchLabelCases").createIndex({ "IsDeleted": -1,"State": 1 })
- //AssignedLabelCase
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "ImageCaseId": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "ImageCategoryId": 1, "SeenCount":1, "LabeledCount":1, "Count":1, "CaseIndex": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "ImageCategoryId": 1, "RelabelState":1, "QuestionedState":1, "CaseIndex": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "SeenCount":1, "LabeledCount":1, "Count":1, "CaseIndex": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "CreateTime": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "LabelCaseStatisticsId": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "SameBatchLabelCaseId": 1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "SameBatchLabelCaseId": 1, "LabeledCount":1 })
- db.getCollection("AssignedLabelCases").createIndex({ "IsDeleted": -1, "SameBatchLabelCaseId": 1, "RelabelState":1 })
- //AssignedReviewCase
- db.getCollection("AssignedReviewCases").createIndex({ "IsDeleted": -1, "Reviewer._id": 1, "SameBatchLabelCaseId": 1 })
- db.getCollection("AssignedReviewCases").createIndex({ "IsDeleted": -1, "Reviewer._id": 1, "IsReviewFinished": 1, "CaseIndex": 1 })
- db.getCollection("AssignedReviewCases").createIndex({ "IsDeleted": -1, "Reviewer._id": 1, "ImageCategoryId": 1, "IsReviewFinished": 1, "CaseIndex": 1 })
- //ImageCategory
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "LabelPackageContentId": 1, "HasChildren": 1 })
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "Name": 1, "OrganizationId": 1 })
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "Developers": 1, "Sharers":1 })
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "Name": 1, "Parent._id": 1 })
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "Parent._id": 1, "Developers": 1 })
- db.getCollection("ImageCategories").createIndex({ "IsDeleted": -1, "SameBatchLabelCaseId": 1, "Level":1 })
- //LabelerGroup
- db.getCollection("LabelerGroups").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "ImageCategoryId": 1 })
- db.getCollection("LabelerGroups").createIndex({ "IsDeleted": -1, "OrganizationId": 1, "Labeler.Name": 1, "ImageCategoryId": 1, "UpdateTime":1 })
- //LabelerGroupItem
- db.getCollection("LabelerGroupItems").createIndex({ "IsDeleted": -1, "LabelerGroupId": 1, "AssignedLabelCaseId": 1, "AssignedReviewCaseId": 1, "CreateTime": -1 })
- //LabelCaseStatistic
- db.getCollection("LabelCaseStatistics").createIndex({ "IsDeleted": -1, "AssignedLabelCaseId": 1 })
- db.getCollection("LabelCaseStatistics").createIndex({ "IsDeleted": -1, "Labeler._id": 1, "CreateTime": -1 })
- db.getCollection("LabelCaseStatistics").createIndex({ "IsDeleted": -1, "SameBatchLabelCaseId": 1 })
- //GoldStandardAssignedFile
- db.getCollection("GoldStandardAssignedFiles").createIndex({ "UltrasoundFileId": 1 })
- db.getCollection("GoldStandardAssignedFiles").createIndex({ "IsDeleted": -1, "ImageCategoryId": 1, "LabelerAssignedInfos.Labeler._id": 1 })
- //SelfCheckAssignedFile
- db.getCollection("SelfCheckAssignedFiles").createIndex({ "UltrasoundFileId": 1 })
- db.getCollection("SelfCheckAssignedFiles").createIndex({ "IsDeleted": -1, "ImageCategoryId": 1, "LabelerAssignedInfos.Labeler._id": 1 })
- --------------------------系统日志 端口号10011----------------------------------------------------------------------------------------------------------------------------------------
- //LogItem
- db.getCollection("LogItems").createIndex({ "IsDeleted": -1, "Message": 1, "CreateTime": -1 })
- --------------------------以下暂不添加--------------------------------------------------------------------------------------------------------------------------------------------------
- //TrainTask
- db.getCollection("TrainTasks").createIndex({ "DeveloperId": 1})
- db.getCollection("TrainTasks").createIndex({ "TaskName": 1})
- db.getCollection("TrainTasks").createIndex({ "Result": 1})
- //TrainTaskStatus
- db.getCollection("TrainTaskStatus").createIndex({ "TrainTaskId": 1,"IsDeleted": -1,})
- //TrainScriptPackage
- db.getCollection("TrainScriptPackages").createIndex({ "DeveloperId": 1,"Name": 1,})
|