Skip to content

Commit

Permalink
Add an index on build to speed it up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hitchman committed Jul 14, 2017
1 parent 92cf5b9 commit 1d7f254
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kettle/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, path):
create table if not exists build(gcs_path primary key, started_json, finished_json, finished_time);
create table if not exists file(path string primary key, data);
create table if not exists build_junit_grabbed(build_id integer primary key);
create index if not exists build_finished_time_idx on build(finished_time)
''')

def commit(self):
Expand Down

0 comments on commit 1d7f254

Please sign in to comment.