?
?
Pending
User tests:
Successful:
Unsuccessful:
Summary of Changes
- Usual mysql databese can only use one index in WHERE clause or use union.
- Newer version can merge indexes to speed up.
Current query contains OR parent_id = 0
which complicate query optimisation for database.
This PR replace above to use only name
column.
Testing Instructions - Old
Unit tests pass.
Code review.
On installed joomla with sample data, mysql may not use indexes because there is too less rows.
Testing Instructions - New
Install joomla without patch, turn off cache and go to front page.
Joomla works OK without any errors.
Apply patch and do the same.
Joomla works OK without any errors.
Documentation Changes Required
N/A
csthomas
-
open
-
9 Jan 2017
csthomas
-
change
-
9 Jan 2017
joomla-cms-bot
-
change
-
9 Jan 2017
csthomas
-
change
-
9 Jan 2017
The description was changed
csthomas
-
edited
-
9 Jan 2017
csthomas
-
edited
-
9 Jan 2017
csthomas
-
change
-
30 Jan 2017
The description was changed
csthomas
-
edited
-
30 Jan 2017
csthomas
-
edited
-
30 Jan 2017
csthomas
-
change
-
30 Jan 2017
The description was changed
csthomas
-
edited
-
30 Jan 2017
csthomas
-
change
-
30 Jan 2017
The description was changed
csthomas
-
edited
-
30 Jan 2017
csthomas
-
change
-
4 Feb 2017
The description was changed
csthomas
-
edited
-
4 Feb 2017
csthomas
-
change
-
4 Feb 2017
The description was changed
csthomas
-
edited
-
4 Feb 2017
csthomas
-
change
-
16 Feb 2017
Title |
… |
Do not generate sql error if there are no components loaded |
Speed up query by using only one indexed column in sql where clause |
|
csthomas
-
edited
-
16 Feb 2017
csthomas
-
change
-
16 Feb 2017
The description was changed
csthomas
-
edited
-
16 Feb 2017
csthomas
-
change
-
16 Feb 2017
The description was changed
csthomas
-
edited
-
16 Feb 2017
csthomas
-
change
-
16 Feb 2017
The description was changed
csthomas
-
edited
-
16 Feb 2017
franz-wohlkoenig
-
change
-
30 Jun 2017
Status |
Pending |
⇒ |
Ready to Commit |
csthomas
-
change
-
6 Jul 2017
The description was changed
csthomas
-
edited
-
6 Jul 2017
alikon
-
test_item
-
7 Jul 2017
-
Tested successfully
Status |
Ready to Commit |
⇒ |
Fixed in Code Base |
Closed_Date |
0000-00-00 00:00:00 |
⇒ |
2017-07-07 13:47:14 |
Closed_By |
|
⇒ |
rdeutz |
Labels |
Added:
?
|
rdeutz
-
close
-
7 Jul 2017
rdeutz
-
merge
-
7 Jul 2017
Add a Comment
Login with GitHub to post a comment
My explanation for mariadb is a little outdated (because mariadb can merge indexes) but new query is better that older.
EXPLAIN SELECT id, name, rules, parent_id FROM #__assets WHERE name IN ('root.1', 'com_users')
And older one:
EXPLAIN SELECT id, name, rules, parent_id FROM #__assets WHERE name IN ('com_users') or parent_id=0