Commit abdb0c52 authored by alexpott's avatar alexpott

Issue #1790298 by nagba, pwolanin: Unindexed query in aggregator module.

parent 090d5d13
......@@ -180,6 +180,7 @@ function aggregator_schema() {
'primary key' => array('iid'),
'indexes' => array(
'fid' => array('fid'),
'timestamp' => array('timestamp'),
),
'foreign keys' => array(
'aggregator_feed' => array(
......@@ -231,3 +232,12 @@ function aggregator_update_8001() {
'initial' => Language::LANGCODE_NOT_SPECIFIED,
));
}
/**
* Add index on timestamp.
*/
function aggregator_update_8002() {
if (!db_index_exists('aggregator_item', 'timestamp')) {
db_add_index('aggregator_item', 'timestamp', array('timestamp'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment