View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18473 | Bug reports | Survey editing | public | 2022-11-09 09:50 | 2024-04-16 13:55 |
Reporter | DenisChenu | Assigned To | DenisChenu | ||
Priority | none | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 6.4.x | ||||
Summary | 18473: Survey listing : multiple call of template | ||||
Description | When goes to survey listing with SQLdebug set : we see multiple call of same rquest | ||||
Steps To Reproduce | Steps to reproduceActivate debug + SQL debug Expected resultHave some SQL with 3 or 15 call Actual resultLot of SQL request with bunch of call | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 14 | ||||
Complete LimeSurvey version number (& build) | 6.X | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | firefox | ||||
Database type & version | mariadb | ||||
Server OS (if known) | debian | ||||
Webserver software & version (if known) | nginx | ||||
PHP Version | 7.4 | ||||
related to | 19371 | closed | lajosarpad | Bug reports | Survey list page extremely slow when having alot of surveys and inheritance is used for 'List publicly' |
related to | 19504 | closed | DenisChenu | Bug reports | Potential PHP Warning when get Survey listing |
Here : speed is OK because server are local |
|
I have 4 server on the same network, on public and one internal. 2 for production + 2 for prepoduction , proxy for high availability, SQL server on same network but another server. The 5.X is the preprod for testing version : the link to the DB server are same all other configuration are same. And BD is just some week old. For 5.X : i'm connected directly by internal VPN : less network Survey listing on 5.X : 20.48 s … it's REALLY unusuable |
|
Idea one : Use a static array for template (like we do for Survey) |
|
Idea : better action : move some needed action to findByPk only (when we get THE survey) |
|
Can we maybe do a lazy load of the template by overriding the getter? |
|
We only need checking valid template and get all options only in findByPk not in findAll (search) I muts check with Dev: #18556: Possible optimisation when lot of survey #2791 |
|
The code being executed is Just commenting that. |
|
Looking at SQL debug : seems we call https://github.com/LimeSurvey/LimeSurvey/blob/5e5dc6d6e6dbe4fdec88664bc2f748a918503519/application/models/Survey.php#L824 each time in Surey listing too … |
|
200 times group settings … 400 times user 1 … |
|
Still have 20 times : (2 x number of survey shown, with 5 : 10 times)
41 times (have 42 surveys )
13 times for a lot of template |
|
GroupSettings : https://github.com/LimeSurvey/LimeSurvey/pull/3737 stull User :) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36117 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36116 |
|
For 5X |
|
Fixed in Release 6.4.9+240226 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36164 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36163 |
|
For 5.X |
|
Fixed in Release 6.4.12+240311 |
|
Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36274 |
|
Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=36273 |
|
LimeSurvey: master 7406e0af 2024-02-22 18:35 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing : multiple call of SurveyGroup (#3737) |
Affected Issues 18473 |
|
mod - application/models/SurveysGroupsettings.php | Diff File | ||
LimeSurvey: master 7406e0af 2024-02-22 18:35 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing : multiple call of SurveyGroup (#3737) |
Affected Issues 18473 |
|
mod - application/models/SurveysGroupsettings.php | Diff File | ||
LimeSurvey: master bbc3eb6f 2024-03-05 18:21 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple calls of template (#3738) |
Affected Issues 18473 |
|
mod - application/models/Template.php | Diff File | ||
LimeSurvey: master bbc3eb6f 2024-03-05 18:21 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple calls of template (#3738) |
Affected Issues 18473 |
|
mod - application/models/Template.php | Diff File | ||
LimeSurvey: 5.x 16c8acb2 2024-04-16 15:48 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple call of SurveyGroup (03787) |
Affected Issues 18473 |
|
mod - application/models/SurveysGroupsettings.php | Diff File | ||
LimeSurvey: 5.x 16c8acb2 2024-04-16 15:48 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple call of SurveyGroup (03787) |
Affected Issues 18473 |
|
mod - application/models/SurveysGroupsettings.php | Diff File | ||
LimeSurvey: 5.x c6bed762 2024-04-16 15:49 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple call of template (03786) |
Affected Issues 18473 |
|
mod - application/models/Template.php | Diff File | ||
LimeSurvey: 5.x c6bed762 2024-04-16 15:49 Committer: GitHub Details Diff |
Fixed issue 18473: Survey listing - multiple call of template (03786) |
Affected Issues 18473 |
|
mod - application/models/Template.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-11-09 09:50 | DenisChenu | New Issue | |
2022-11-09 09:50 | DenisChenu | File Added: 5X_SurveyListing_noplugins.png | |
2022-11-09 09:50 | DenisChenu | File Added: 3X_SurveyListing_LOTPLUGINS.png | |
2022-11-09 09:51 | DenisChenu | Note Added: 72650 | |
2022-11-09 09:51 | DenisChenu | Bug heat | 0 => 2 |
2022-11-09 10:00 | DenisChenu | Summary | Surey listing : multiple call of template and group => Survey listing : multiple call of template and group |
2022-11-09 12:35 | DenisChenu | Note Added: 72671 | |
2022-11-16 11:17 | DenisChenu | Note Added: 72757 | |
2022-12-14 17:42 | DenisChenu | Note Added: 73122 | |
2023-08-31 18:52 | gabrieljenik | Note Added: 76827 | |
2023-08-31 18:52 | gabrieljenik | Bug heat | 2 => 4 |
2023-08-31 18:54 | gabrieljenik | Assigned To | => DenisChenu |
2023-08-31 18:54 | gabrieljenik | Status | new => acknowledged |
2023-09-05 15:12 | DenisChenu | Note Added: 76883 | |
2023-09-05 16:30 | gabrieljenik | Note Added: 76887 | |
2023-09-05 18:16 | DenisChenu | Note Added: 76888 | |
2023-09-05 18:17 | DenisChenu | Note Added: 76889 | |
2023-10-19 17:52 | DenisChenu | Note Added: 77791 | |
2023-10-19 17:56 | DenisChenu | Status | acknowledged => assigned |
2024-01-31 07:59 | DenisChenu | Relationship added | related to 19371 |
2024-02-14 18:03 | DenisChenu | Note Added: 79500 | |
2024-02-15 16:44 | DenisChenu | Summary | Survey listing : multiple call of template and group => Survey listing : multiple call of template |
2024-02-15 16:45 | DenisChenu | Note Added: 79526 | |
2024-02-15 16:45 | DenisChenu | Assigned To | DenisChenu => c_schmitz |
2024-02-15 16:48 | DenisChenu | Status | assigned => ready for code review |
2024-02-15 16:48 | DenisChenu | Note Added: 79529 | |
2024-02-22 17:35 | DenisChenu | Changeset attached | => LimeSurvey master 7406e0af |
2024-02-22 17:35 | DenisChenu | Changeset attached | => LimeSurvey master 7406e0af |
2024-02-22 17:35 | DenisChenu | Note Added: 79583 | |
2024-02-22 17:35 | DenisChenu | Note Added: 79584 | |
2024-02-22 17:35 | DenisChenu | Assigned To | c_schmitz => DenisChenu |
2024-02-22 17:35 | DenisChenu | Assigned To | c_schmitz => DenisChenu |
2024-02-22 17:35 | DenisChenu | Resolution | open => fixed |
2024-02-22 17:35 | DenisChenu | Resolution | open => fixed |
2024-02-24 11:04 | DenisChenu | Assigned To | DenisChenu => tibor.pacalat |
2024-02-24 11:04 | DenisChenu | Status | ready for code review => ready for testing |
2024-02-24 11:05 | DenisChenu | Product Version | 5.4.x => 6.4.x |
2024-02-24 11:05 | DenisChenu | Complete LimeSurvey version number (& build) | 5.4.10 => 6.X |
2024-02-26 09:36 | DenisChenu | Assigned To | tibor.pacalat => DenisChenu |
2024-02-26 09:36 | DenisChenu | Status | ready for testing => assigned |
2024-02-26 09:36 | DenisChenu | Note Added: 79625 | |
2024-02-26 13:49 | LimeBot | Note Added: 79638 | |
2024-02-26 13:49 | LimeBot | Status | assigned => closed |
2024-02-26 13:49 | LimeBot | Bug heat | 4 => 6 |
2024-03-05 17:21 | DenisChenu | Changeset attached | => LimeSurvey master bbc3eb6f |
2024-03-05 17:21 | DenisChenu | Changeset attached | => LimeSurvey master bbc3eb6f |
2024-03-05 17:21 | DenisChenu | Note Added: 79726 | |
2024-03-05 17:21 | DenisChenu | Note Added: 79727 | |
2024-03-07 12:05 | DenisChenu | Status | closed => feedback |
2024-03-07 12:05 | DenisChenu | Resolution | fixed => reopened |
2024-03-07 12:05 | DenisChenu | Note Added: 79754 | |
2024-03-07 12:05 | DenisChenu | Status | feedback => assigned |
2024-03-07 12:19 | DenisChenu | Assigned To | DenisChenu => lajosarpad |
2024-03-07 12:19 | DenisChenu | Status | assigned => ready for code review |
2024-03-07 12:19 | DenisChenu | Note Added: 79755 | |
2024-03-11 15:17 | LimeBot | Note Added: 79772 | |
2024-03-11 15:17 | LimeBot | Status | ready for code review => closed |
2024-03-11 15:17 | LimeBot | Resolution | reopened => fixed |
2024-03-23 11:14 | JanE | Issue Monitored: JanE | |
2024-03-23 11:14 | JanE | Bug heat | 6 => 8 |
2024-04-01 11:09 | DenisChenu | Relationship added | related to 19504 |
2024-04-16 13:55 | DenisChenu | Changeset attached | => LimeSurvey 5.x c6bed762 |
2024-04-16 13:55 | DenisChenu | Changeset attached | => LimeSurvey 5.x c6bed762 |
2024-04-16 13:55 | DenisChenu | Changeset attached | => LimeSurvey 5.x 16c8acb2 |
2024-04-16 13:55 | DenisChenu | Changeset attached | => LimeSurvey 5.x 16c8acb2 |
2024-04-16 13:55 | DenisChenu | Note Added: 79932 | |
2024-04-16 13:55 | DenisChenu | Note Added: 79933 | |
2024-04-16 13:55 | DenisChenu | Assigned To | lajosarpad => DenisChenu |
2024-04-16 13:55 | DenisChenu | Assigned To | lajosarpad => DenisChenu |
2024-04-16 14:31 | tibor.pacalat | Bug heat | 8 => 14 |