diff options
author | David Rothstein <drothstein@gmail.com> | 2014-05-05 19:14:59 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2014-05-05 19:14:59 -0400 |
commit | 00e500bbb1b487de635debd5aabd55d5f400b3d8 (patch) | |
tree | 4654a4bc3ebb6533c513bb28334048e1812c42ab /modules/aggregator | |
parent | 23d45a332e385165f1f7ba788b2a0d84f79492a2 (diff) | |
download | brdo-00e500bbb1b487de635debd5aabd55d5f400b3d8.tar.gz brdo-00e500bbb1b487de635debd5aabd55d5f400b3d8.tar.bz2 |
Issue #1790298 by nagba, pwolanin: Unindexed query in aggregator module.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.install | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index b84556a9d..d6cc0392b 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -260,6 +260,7 @@ function aggregator_schema() { 'primary key' => array('iid'), 'indexes' => array( 'fid' => array('fid'), + 'timestamp' => array('timestamp'), ), 'foreign keys' => array( 'aggregator_feed' => array( @@ -326,5 +327,14 @@ function aggregator_update_7003() { } /** + * Add index on timestamp. + */ +function aggregator_update_7004() { + if (!db_index_exists('aggregator_item', 'timestamp')) { + db_add_index('aggregator_item', 'timestamp', array('timestamp')); + } +} + +/** * @} End of "addtogroup updates-7.x-extra" */ |