-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: curioweb: Improve task_history indexes
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |