mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Optimisation in system sorting (just update where not NULL)
This commit is contained in:
@@ -184,7 +184,7 @@ while (!is_process_killed($process_id)) //check if process killed every $sleepin
|
|||||||
//Set all cases as unavailable
|
//Set all cases as unavailable
|
||||||
$sql = "UPDATE `case`
|
$sql = "UPDATE `case`
|
||||||
SET sortorder = NULL
|
SET sortorder = NULL
|
||||||
WHERE 1";
|
WHERE sortorder IS NOT NULL";
|
||||||
|
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
|
|
||||||
@@ -245,7 +245,7 @@ while (!is_process_killed($process_id)) //check if process killed every $sleepin
|
|||||||
//First set all sample records as unavailable
|
//First set all sample records as unavailable
|
||||||
$sql = "UPDATE `questionnaire_sample_exclude_priority`
|
$sql = "UPDATE `questionnaire_sample_exclude_priority`
|
||||||
SET sortorder = NULL
|
SET sortorder = NULL
|
||||||
WHERE 1";
|
WHERE sortorder IS NOT NULL";
|
||||||
|
|
||||||
$db->Execute($sql);
|
$db->Execute($sql);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user