Add index on selected
on syncStatus to make queries and updates faster.
This commit is contained in:
parent
feb4bf3c48
commit
78d6a9409e
@ -84,5 +84,7 @@ private extension SyncDatabase {
|
||||
|
||||
static let tableCreationStatements = """
|
||||
CREATE TABLE if not EXISTS syncStatus (articleID TEXT NOT NULL, key TEXT NOT NULL, flag BOOL NOT NULL DEFAULT 0, selected BOOL NOT NULL DEFAULT 0, PRIMARY KEY (articleID, key));
|
||||
|
||||
CREATE INDEX if not EXISTS syncStatus_selected_index on syncStatus (selected);
|
||||
"""
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user