Skip to content
Snippets Groups Projects
Commit abdb0c52 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 090d5d13
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment