diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-12 07:00:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-12 07:00:48 +0000 |
commit | 73f98066f5920045f9a83108f7410155564af486 (patch) | |
tree | 48849809ae7ee5f1e388317924e9400011935665 /modules/aggregator/aggregator.install | |
parent | e21ad98d92257a945e494a01741bcdb484e44f42 (diff) | |
download | brdo-73f98066f5920045f9a83108f7410155564af486.tar.gz brdo-73f98066f5920045f9a83108f7410155564af486.tar.bz2 |
- Patch #291064 by mustafau: improve performance of aggregator by storing an md5 hash for the feed.
Diffstat (limited to 'modules/aggregator/aggregator.install')
-rw-r--r-- | modules/aggregator/aggregator.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index 3b9c181b4..7f672d948 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -158,6 +158,13 @@ function aggregator_schema() { 'size' => 'big', 'description' => t('An image representing the feed.'), ), + 'hash' => array( + 'type' => 'varchar', + 'length' => 32, + 'not null' => TRUE, + 'default' => '', + 'description' => t('Calculated md5 hash of the feed data, used for validating cache.'), + ), 'etag' => array( 'type' => 'varchar', 'length' => 255, @@ -247,3 +254,12 @@ function aggregator_schema() { return $schema; } + +/** + * Add hash column to aggregator_feed table. + */ +function aggregator_update_7000() { + $ret = array(); + db_add_field($ret, 'aggregator_feed', 'hash', array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => '')); + return $ret; +} |