? Success

User tests: Successful: Unsuccessful:

avatar tonypartridge
tonypartridge
16 Oct 2018

Pull Request for Issue #22632 .

Summary of Changes

Adds a new index 'client_guest' against client and guest columns

Testing Instructions

Have a large sessions table i.e. 14,000 rows. You can use a script I created to add these;
https://gist.github.com/tonypartridge/43c3d6f2f47d566fa8f7a28c9c4089a8

Expected result

as it is now but faster

Actual result

as it is now

Documentation Changes Required

The index will improve session query performance on MySQL databases. Omn average I am seeing a 30ms session query brought down to around 8ms saving 22ms.

Note, testing should be done on non-cached queries.

avatar tonypartridge tonypartridge - open - 16 Oct 2018
avatar tonypartridge tonypartridge - change - 16 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2018
Category SQL Administration com_admin Installation
avatar PhilETaylor
PhilETaylor - comment - 16 Oct 2018

see #22632

I cant close it due to the personal attacks and thread drift locking the issue

avatar alikon
alikon - comment - 16 Oct 2018

don't forget postgresql , mssql

avatar tonypartridge tonypartridge - change - 17 Oct 2018
Labels Added: ?
avatar tonypartridge
tonypartridge - comment - 17 Oct 2018

don't forget postgresql , mssql

@alikon I don't have a postgresql or mssql, or azuresql instance to test against, it's not 100% needed for those databases. This is just a PR against the mysql one to further improve performance.

Feel free to submit a PR for those too as well.

avatar mbabker
mbabker - comment - 17 Oct 2018

The database schema should be consistent across platforms, including indexes. So if we're changing MySQL, the others should be changed at the same time.

avatar tonypartridge
tonypartridge - comment - 17 Oct 2018

@mbabker so you want me to do the schemes without being able to test?
On 17 Oct 2018, 16:53 +0100, Michael Babker notifications@github.com, wrote:

The database schema should be consistent across platforms, including indexes. So if we're changing MySQL, the others should be changed at the same time.

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

avatar brianteeman brianteeman - change - 19 Oct 2018
Title
Improve performance off #__session with a large session count - New Index
Improve performance of #__session with a large session count - New Index
avatar brianteeman brianteeman - edited - 19 Oct 2018
avatar alikon
alikon - comment - 23 Jan 2019

@tonypartridge sorry, but unable to sumbit a pr to your branch
see #23650

avatar joomla-cms-bot joomla-cms-bot - change - 22 Feb 2019
Closed_Date 2019-02-22 19:10:33 2019-02-22 19:10:34
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 22 Feb 2019
avatar Quy Quy - change - 22 Feb 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-02-22 19:10:33
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Feb 2019

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/22668

avatar Quy
Quy - comment - 22 Feb 2019

Please test PR #23650


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22668.

Add a Comment

Login with GitHub to post a comment