lotus/lib/harmony/harmonydb/sql/20240420-web-task-indexes.sql
2024-04-30 20:43:56 +02:00

10 lines
394 B
SQL

DROP INDEX harmony_task_history_work_index;
/*
This structure improves clusterMachineSummary query better than the old version,
while at the same time also being usable by clusterTaskHistorySummary (which wasn't
the case with the old index).
*/
create index harmony_task_history_work_index
on harmony_task_history (work_end desc, completed_by_host_and_port asc, name asc, result asc);