2
0
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:
Adam Zammit
2014-09-03 16:08:01 +10:00
parent c64c71e428
commit 9a48d80eb1

View File

@@ -184,7 +184,7 @@ while (!is_process_killed($process_id)) //check if process killed every $sleepin
//Set all cases as unavailable
$sql = "UPDATE `case`
SET sortorder = NULL
WHERE 1";
WHERE sortorder IS NOT NULL";
$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
$sql = "UPDATE `questionnaire_sample_exclude_priority`
SET sortorder = NULL
WHERE 1";
WHERE sortorder IS NOT NULL";
$db->Execute($sql);