Add MongoDB performance optimization

This commit is contained in:
allegroai
2020-04-01 19:20:53 +03:00
parent 427322a424
commit cbcaa7c789
5 changed files with 49 additions and 39 deletions

View File

@@ -110,6 +110,12 @@ class Task(AttributedDocument):
"created",
"started",
"completed",
"parent",
"project",
("company", "name"),
("company", "type", "system_tags", "status"),
("company", "project", "type", "system_tags", "status"),
("status", "last_update"), # for maintenance tasks
{
"name": "%s.task.main_text_index" % Database.backend,
"fields": [