New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sql optimise new index merged branch #10284
Closed
alikon
wants to merge
45
commits into
joomla:staging
from
alikon:SqlOptimise_new_index_merged_branch
Closed
Changes from 43 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
7c8bc5b
Added two sub string indexes to the session table
nadeeshaan 4f14432
Added index idx_published_ordering to language table
nadeeshaan c6d76a4
idx_client_id Index added to template_styles table
nadeeshaan 963b6bc
Added index to contentitem_tag_map table
nadeeshaan db025d5
index2 added to extensions table
nadeeshaan ff2487a
index added to the menu table
nadeeshaan 8a21186
removed select *
nadeeshaan ede8fb3
Removed the select star and included the relevant fields
nadeeshaan 60a4f53
improved readability for the table fields
nadeeshaan 1f31c0d
removed group by clause instead added select distinct
nadeeshaan 9e9d8e0
index added to viewlevels table
nadeeshaan a49c9f0
removed distinct and added the where clause
nadeeshaan 19c56b7
bug fixed for the index not using
nadeeshaan 8beb13a
changed the primary key size to 32
nadeeshaan b5d7dbb
bug fixed for the in equality check
nadeeshaan 7125aa1
Adding SQL update file of ALTER Queries
50652b3
Review code style
a237e2f
query changed to work with the index
nadeeshaan 7e0ed08
Resolve Conflict and update code style suggestions
gunjanpatel 310641c
merge
zero-24 1476977
fix conflicts 1) #__contentitem_tag_map
alikon 3e104df
fix conflicts 2) #__extensions
alikon 6adfe62
Merge pull request #5 from alikon/patch-63
zero-24 08e3f51
Merge pull request #4 from alikon/patch-61
zero-24 c87ebfa
fix conflicts 3) #__languages
alikon ceddaff
fix conflicts 4) #__menu
alikon 9d1b889
Merge pull request #7 from alikon/patch-64
zero-24 5481af2
Merge pull request #8 from alikon/patch-65
zero-24 48862f3
fix conflicts 5) #__session
alikon 95ac0fc
fix conflicts 6) #__template_styles
alikon 2e5b48a
Merge pull request #10 from alikon/patch-67
zero-24 cf2599c
Merge pull request #9 from alikon/patch-66
zero-24 93efc9d
fix conflicts 7) #__viewlevels
alikon 773fe42
Merge pull request #11 from alikon/patch-68
zero-24 95e4f02
change the update sql filename
zero-24 d42bb63
change the update sql filename
zero-24 2514cdb
added postgresql for #4115
alikon a1ebfc0
typo fix
alikon 7d54ec0
added mssql for #4115
alikon a27d18e
added postgresql index for #4115
alikon 035358f
added postgresql for #4115
alikon f8d65b5
added mssql for #4115
alikon 145d286
code style
alikon 9b1afc8
Correct idx_alias_item_id for mysql utf8mb4
richard67 c0595d8
Merge pull request #20 from richard67/patch-1
alikon File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
administrator/components/com_admin/sql/updates/mysql/3.6.0-2016-05-07.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ALTER TABLE `#__languages` ADD INDEX `idx_published_ordering` (`published`,`ordering`); | ||
ALTER TABLE `#__session` DROP PRIMARY KEY, ADD PRIMARY KEY (session_id(32)); | ||
ALTER TABLE `#__session` DROP INDEX `time`, ADD INDEX `time` (time(10)); | ||
ALTER TABLE `#__template_styles` ADD INDEX `idx_client_id` (`client_id`); | ||
ALTER TABLE `#__contentitem_tag_map` ADD INDEX `idx_alias_item_id` (`type_alias`,`content_item_id`); | ||
ALTER TABLE `#__extensions` ADD INDEX `idx_type_ordering` (`type`,`ordering`); | ||
ALTER TABLE `#__menu` ADD INDEX `idx_client_id_published_lft` (`client_id`,`published`,`lft`); | ||
ALTER TABLE `#__viewlevels` ADD INDEX `idx_ordering_title` (`ordering`,`title`); |
6 changes: 6 additions & 0 deletions
6
administrator/components/com_admin/sql/updates/postgresql/3.6.0-2016-05-07.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE INDEX "#__languages_idx_published_ordering" ON "#__languages" ("published","ordering"); | ||
CREATE INDEX "#__template_styles_idx_client_id" ON "#__template_styles" ("client_id"); | ||
CREATE INDEX "#__contentitem_tag_map_idx_alias_item_id" ON "#__contentitem_tag_map" ("type_alias","content_item_id"); | ||
CREATE INDEX "#__extensions_idx_type_ordering" ON "#__extensions" ("type","ordering"); | ||
CREATE INDEX "#__menu_idx_client_id_published_lft" ON "#__menu" ("client_id","published","lft"); | ||
CREATE INDEX "#__viewlevels_idx_ordering_title" ON "#__viewlevels" ("ordering","title"); |
36 changes: 36 additions & 0 deletions
36
administrator/components/com_admin/sql/updates/sqlazure/3.6.0-2016-05-07.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
CREATE NONCLUSTERED INDEX [idx_published_ordering] ON [#__languages] | ||
( | ||
[published] ASC, | ||
[ordering] ASC | ||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_client_id] ON [#__template_styles] | ||
( | ||
[client_id] ASC | ||
) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_alias_item_id] ON [#__contentitem_tag_map] | ||
( | ||
[type_alias] ASC, | ||
[content_item_id] ASC | ||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_type_ordering] ON [#__extensions] | ||
( | ||
[type] ASC, | ||
[ordering] ASC | ||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_client_id_published_lft] ON [#__menu] | ||
( | ||
[client_id] ASC, | ||
[published] ASC, | ||
[lft] ASC | ||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_ordering_title] ON [#__viewlevels] | ||
( | ||
[ordering] ASC, | ||
[title] ASC | ||
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be