Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
abdb0c52
Commit
abdb0c52
authored
Dec 14, 2013
by
alexpott
Browse files
Issue
#1790298
by nagba, pwolanin: Unindexed query in aggregator module.
parent
090d5d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/aggregator/aggregator.install
View file @
abdb0c52
...
...
@@ -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'
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment