diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-12-18 12:59:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-12-18 12:59:22 +0000 |
commit | c8b1ddf26a299016c433c2901e519942d693430d (patch) | |
tree | 4ca56e42ce19ad706c98237248f60bed105aeb2f /modules/comment/comment.install | |
parent | 02539ac3f830101345cf5c715b0001aa1eb5a9c0 (diff) | |
download | brdo-c8b1ddf26a299016c433c2901e519942d693430d.tar.gz brdo-c8b1ddf26a299016c433c2901e519942d693430d.tar.bz2 |
- Patch #164532 by catch, pwolanin, David Strauss, et al.: improve table indicies for common queries.
Diffstat (limited to 'modules/comment/comment.install')
-rw-r--r-- | modules/comment/comment.install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 0cfc026db..d944f3b71 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -156,7 +156,7 @@ function comment_schema() { ), 'indexes' => array( 'nid' => array('nid'), - 'status' => array('status') + 'status' => array('status'), // This index is probably unused ), 'primary key' => array('cid'), ); @@ -197,8 +197,10 @@ function comment_schema() { 'description' => t('The total number of comments on this node.'), ), ), - 'indexes' => array('node_comment_timestamp' => array('last_comment_timestamp')), 'primary key' => array('nid'), + 'indexes' => array( + 'node_comment_timestamp' => array('last_comment_timestamp') + ), ); return $schema; |