v1.27.0-a #10
@ -1,4 +1,5 @@
|
||||
/* Used for webui clusterMachineSummary */
|
||||
-- NOTE: This index is changed in 20240420-web-task-indexes.sql
|
||||
CREATE INDEX harmony_task_history_work_index
|
||||
ON harmony_task_history (completed_by_host_and_port ASC, name ASC, result ASC, work_end DESC);
|
||||
|
||||
|
9
lib/harmony/harmonydb/sql/20240420-web-task-indexes.sql
Normal file
9
lib/harmony/harmonydb/sql/20240420-web-task-indexes.sql
Normal file
@ -0,0 +1,9 @@
|
||||
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);
|
Loading…
Reference in New Issue
Block a user