Skip to content

Commit

Permalink
fix(history storage): add index on started_at to speed up get_task_li…
Browse files Browse the repository at this point in the history
…st_stats
  • Loading branch information
pistonsky committed Jun 26, 2016
1 parent 6d75c39 commit ba5ce65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fusion_history_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class FusionHistoryStorage():
pid INTEGER,
exit_code INTEGER );
CREATE INDEX IF NOT EXISTS task_id ON task_runs (task_id);
CREATE INDEX IF NOT EXISTS started_at ON task_runs (started_at);
'''

COLUMNS = ['task_run_id', 'started_at', 'finished_at', 'task_id',
Expand Down

0 comments on commit ba5ce65

Please sign in to comment.