summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-12-18 12:59:22 +0000
committerDries Buytaert <dries@buytaert.net>2007-12-18 12:59:22 +0000
commitc8b1ddf26a299016c433c2901e519942d693430d (patch)
tree4ca56e42ce19ad706c98237248f60bed105aeb2f /modules/aggregator/aggregator.install
parent02539ac3f830101345cf5c715b0001aa1eb5a9c0 (diff)
downloadbrdo-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/aggregator/aggregator.install')
-rw-r--r--modules/aggregator/aggregator.install12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install
index b49a4c96b..73d2c273c 100644
--- a/modules/aggregator/aggregator.install
+++ b/modules/aggregator/aggregator.install
@@ -75,7 +75,8 @@ function aggregator_schema() {
'description' => t('The {aggregator_category}.cid to which the feed is being assigned.'),
)
),
- 'primary key' => array('fid', 'cid'),
+ 'primary key' => array('cid', 'fid'),
+ 'indexes' => array('fid' => array('fid')),
);
$schema['aggregator_category_item'] = array(
@@ -94,7 +95,8 @@ function aggregator_schema() {
'description' => t('The {aggregator_category}.cid to which the feed item is being assigned.'),
)
),
- 'primary key' => array('iid', 'cid'),
+ 'primary key' => array('cid', 'iid'),
+ 'indexes' => array('iid' => array('iid')),
);
$schema['aggregator_feed'] = array(
@@ -171,11 +173,11 @@ function aggregator_schema() {
'description' => t("Number of items to display in the feed's block."),
)
),
+ 'primary key' => array('fid'),
'unique keys' => array(
'url' => array('url'),
- 'title' => array('title')
+ 'title' => array('title'),
),
- 'primary key' => array('fid'),
);
$schema['aggregator_item'] = array(
@@ -231,8 +233,8 @@ function aggregator_schema() {
'description' => t('Unique identifier for the feed item.'),
)
),
- 'indexes' => array('fid' => array('fid')),
'primary key' => array('iid'),
+ 'indexes' => array('fid' => array('fid')),
);
return $schema;