? Success

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
19 Feb 2016

A little speed up backend -> com_content -> articles view when you have set page 1 (means start=0).

How to test:

  • enable joomla debug (list of sql queries)
  • test without patch number queries
  • test with patch number of queries (one count less)
avatar csthomas csthomas - open - 19 Feb 2016
avatar csthomas csthomas - change - 19 Feb 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 19 Feb 2016
Category SQL
avatar brianteeman brianteeman - test_item - 19 Feb 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 19 Feb 2016

I have tested this item :white_check_mark: successfully on 881f44e

I can confirm with this patch there is one less query BUT I really dont know enough about this to understand if there can be other consequences


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

avatar csthomas
csthomas - comment - 19 Feb 2016

Thanks,

I created that patch some time ago, probably for 3.4.4 and
today I try to show this duplicated query but it missing now.

After joomla 3.4.5 this patch do not change too much.
Anyway can be useful to not run getTotal() if not needed.

avatar grhcj grhcj - test_item - 19 Feb 2016 - Tested successfully
avatar grhcj
grhcj - comment - 19 Feb 2016

I have tested this item :white_check_mark: successfully on 881f44e


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 7 Mar 2016

This PR has received new commits.

CC: @brianteeman, @grhcj


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

avatar csthomas
csthomas - comment - 9 Mar 2016

New commit have not change anything, I only rebase to newer stagging branch.

  • Method getStart() always run getTotal(), but when $start is 0 then calculating $start won't change anything, because $start can not be less than 0.

  • I think that the patch will be useful for sort queries in order (select from table, select count)
    when start=0 (first page)

  • In the future - joomla should not run getTotal() at all if number of fetched rows is less than limit from query and $start is 0. Specially when there is a lots of filters and result contains only a few rows.

avatar brianteeman brianteeman - change - 11 May 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 11 May 2016

RTC (maintainer the tests were before a rebase so it should be ok)


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

avatar joomla-cms-bot joomla-cms-bot - change - 11 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 11 May 2016
Milestone Added:
avatar roland-d roland-d - change - 16 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-16 21:49:56
Closed_By roland-d
avatar roland-d roland-d - close - 16 May 2016
avatar roland-d roland-d - merge - 16 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 16 May 2016
avatar roland-d roland-d - reference | 56068d5 - 16 May 16
avatar roland-d roland-d - merge - 16 May 2016
avatar roland-d roland-d - close - 16 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 16 May 2016
Labels Removed: ?
avatar roland-d
roland-d - comment - 16 May 2016

Thanks everybody

Add a Comment

Login with GitHub to post a comment