Skip to content

Commit

Permalink
Add index for better performance of the SQLite3
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Feb 18, 2020
1 parent 6da0467 commit f215ea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infracheck/infracheck/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def _connect_to_db(self, db_path: str):
data TEXT,
date_added TEXT
);
CREATE INDEX check_name_index ON checks_cache(check_name);
'''
)
except sqlite3.OperationalError:
Expand Down

0 comments on commit f215ea2

Please sign in to comment.