mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixed issue: Questionnaire outcomes page slow with many shifts
This commit is contained in:
14
CHANGELOG
14
CHANGELOG
@@ -1,3 +1,17 @@
|
|||||||
|
queXS 2.1.5 - Changes since 2.1.4
|
||||||
|
|
||||||
|
Fixes some bugs including optimising the questionnaire outcome page queries. Translations have also been updated (Thank you!)
|
||||||
|
|
||||||
|
Fixed issue: Missing number of records per page in sample search
|
||||||
|
Fixed issue: Missing "; " at end of line 75 on rs_quota_end.php
|
||||||
|
Fixed issue: Unable to un-assign cases when cases in case queue and extensions set to automatically unassign
|
||||||
|
Fixed issue: Questionnaire outcomes page slow with many shifts
|
||||||
|
|
||||||
|
Database changes:
|
||||||
|
ALTER TABLE `shift` ADD INDEX ( `start` );
|
||||||
|
ALTER TABLE `shift` ADD INDEX ( `end` );
|
||||||
|
|
||||||
|
|
||||||
queXS 2.1.4 - Changes since 2.1.3
|
queXS 2.1.4 - Changes since 2.1.3
|
||||||
|
|
||||||
Fixes various bugs
|
Fixes various bugs
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ group by s.import_id";
|
|||||||
WHERE a.outcome_id = '10'
|
WHERE a.outcome_id = '10'
|
||||||
AND a.case_id = b.case_id
|
AND a.case_id = b.case_id
|
||||||
AND b.questionnaire_id = '$questionnaire_id'
|
AND b.questionnaire_id = '$questionnaire_id'
|
||||||
|
AND b.questionnaire_id = sh.questionnaire_id
|
||||||
AND sh.start <= a.start
|
AND sh.start <= a.start
|
||||||
AND sh.end >= a.start
|
AND sh.end >= a.start
|
||||||
GROUP BY sh.shift_id) as c on (s.shift_id = c.shift_id)
|
GROUP BY sh.shift_id) as c on (s.shift_id = c.shift_id)
|
||||||
|
|||||||
@@ -997,7 +997,9 @@ CREATE TABLE `shift` (
|
|||||||
`start` datetime NOT NULL,
|
`start` datetime NOT NULL,
|
||||||
`end` datetime NOT NULL,
|
`end` datetime NOT NULL,
|
||||||
PRIMARY KEY (`shift_id`),
|
PRIMARY KEY (`shift_id`),
|
||||||
KEY `questionnaire_id` (`questionnaire_id`)
|
KEY `questionnaire_id` (`questionnaire_id`),
|
||||||
|
KEY `start` (`start`),
|
||||||
|
KEY `end` (`end`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user