From eb643abaa60b10c6645511172723d65e9758349e Mon Sep 17 00:00:00 2001 From: Charles Lindsay Date: Mon, 11 Mar 2013 14:34:33 -0700 Subject: [PATCH] Add index to in_reply_to column; fix #6504 Since we're searching on the column, we should have an index on it. --- sql/CMakeLists.txt | 1 + sql/version-008.sql | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 sql/version-008.sql diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index c52b2ae6..86490129 100644 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -7,3 +7,4 @@ install(FILES version-004.sql DESTINATION ${SQL_DEST}) install(FILES version-005.sql DESTINATION ${SQL_DEST}) install(FILES version-006.sql DESTINATION ${SQL_DEST}) install(FILES version-007.sql DESTINATION ${SQL_DEST}) +install(FILES version-008.sql DESTINATION ${SQL_DEST}) diff --git a/sql/version-008.sql b/sql/version-008.sql new file mode 100644 index 00000000..7e2ee90c --- /dev/null +++ b/sql/version-008.sql @@ -0,0 +1,5 @@ +-- +-- Index the in_reply_to column, since we're searching on it now. +-- + +CREATE INDEX MessageTableInReplyToIndex ON MessageTable(in_reply_to);