]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix: create an index at sc_bookmarks2tags table
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 20:07:09 +0000 (17:07 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 20:07:09 +0000 (17:07 -0300)
This index increases the performance of queries that selects
tags from a given bookmark.

data/schema/7.sql [new file with mode: 0644]
data/tables.sql

diff --git a/data/schema/7.sql b/data/schema/7.sql
new file mode 100644 (file)
index 0000000..28694fa
--- /dev/null
@@ -0,0 +1 @@
+CREATE INDEX sc_bookmarks2tags_index ON sc_bookmarks2tags(tag);
index de1bb8d1ba3c81c81e6b555d070510d150c1da60..86779c2794adf1e7f4e3d5acd0ae8165d24f7ab7 100644 (file)
@@ -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);
+
 -- --------------------------------------------------------
 
 --