summaryrefslogtreecommitdiff
path: root/modules/comment/comment.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-30 19:27:11 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-30 19:27:11 +0000
commitd455a8d9213962114d25bbade369cc7fe60239f6 (patch)
tree59eb165a592a7edf068d69a59c3e64a197335325 /modules/comment/comment.install
parent926606eeca106fb2e0eff20f3b1bff205924fd36 (diff)
downloadbrdo-d455a8d9213962114d25bbade369cc7fe60239f6.tar.gz
brdo-d455a8d9213962114d25bbade369cc7fe60239f6.tar.bz2
- Patch #336483 by brianV: SELECT MAX(comment_count) FROM node_comment_statistics did a full table scan so added an index.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r--modules/comment/comment.install1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install
index 45afd76bd..780753c75 100644
--- a/modules/comment/comment.install
+++ b/modules/comment/comment.install
@@ -287,6 +287,7 @@ function comment_schema() {
'primary key' => array('nid'),
'indexes' => array(
'node_comment_timestamp' => array('last_comment_timestamp'),
+ 'comment_count' => array('comment_count'),
),
'foreign keys' => array(
'nid' => array('node' => 'nid'),