Skip to content

Commit d01d67f

Browse files
committed
Changed index to be more useful.
1 parent 0b0077d commit d01d67f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schema.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ CREATE TABLE IF NOT EXISTS file_tag (
1111
name TEXT NOT NULL,
1212
val TEXT NOT NULL
1313
) STRICT;
14-
-- Useful for most queries operating on tags as they almost always go by name, and often go by value.
15-
CREATE INDEX IF NOT EXISTS file_tag_name_value_ix ON file_tag (name, val);
14+
-- Useful for most queries operating on tags as they almost always go by name.
15+
CREATE INDEX IF NOT EXISTS file_tag_name_ix ON file_tag (name, file_path);
1616
----------------
1717
-- Demo views --
1818
----------------

0 commit comments

Comments
 (0)