From: Silvio Rhatto Date: Sat, 5 Dec 2020 20:07:09 +0000 (-0300) Subject: Fix: create an index at sc_bookmarks2tags table X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=56c2cc72b9e4f65d94edab5f4c58633322dc43f8;p=semanticscuttle.git Fix: create an index at sc_bookmarks2tags table This index increases the performance of queries that selects tags from a given bookmark. --- diff --git a/data/schema/7.sql b/data/schema/7.sql new file mode 100644 index 0000000..28694fa --- /dev/null +++ b/data/schema/7.sql @@ -0,0 +1 @@ +CREATE INDEX sc_bookmarks2tags_index ON sc_bookmarks2tags(tag); diff --git a/data/tables.sql b/data/tables.sql index de1bb8d..86779c2 100644 --- a/data/tables.sql +++ b/data/tables.sql @@ -59,6 +59,8 @@ CREATE TABLE `sc_bookmarks2tags` ( KEY `sc_bookmarks2tags_bId` (`bId`) ) CHARACTER SET utf8 COLLATE utf8_general_ci ; +CREATE INDEX sc_bookmarks2tags_index ON sc_bookmarks2tags(tag); + -- -------------------------------------------------------- --