ImportRunBasedPurgeStrategy: performance boost...
...for some older MariaDB/MySQL versions
This commit is contained in:
parent
d001d4a9be
commit
fb3dc92b36
|
@ -28,6 +28,7 @@ before switching to a new version.
|
|||
* FIX: Sync is very powerful and allows for actions not available in the GUI. It
|
||||
however allowed to store invalid single Service Objects with no Host. This is
|
||||
now illegal, as it never makes any sense
|
||||
* FIX: Performance boost for "purge" on older MySQL/MariaDB systems (#1475)
|
||||
* FEATURE: new Property Modifier for IPs formatted as number in Excel files (#1296)
|
||||
* FEATURE: new Property Modifier to url-encode values
|
||||
* FEATURE: new Property Modifier: uppercase the first character of each word
|
||||
|
|
|
@ -58,11 +58,7 @@ class ImportRunBasedPurgeStrategy extends PurgeStrategy
|
|||
$query = $db->select()->from(
|
||||
array('a' => $selectA),
|
||||
'a.object_name'
|
||||
)->joinLeft(
|
||||
array('b' => $selectB),
|
||||
'a.object_name = b.object_name',
|
||||
array()
|
||||
)->where('b.object_name IS NULL');
|
||||
)->where('a.object_name NOT IN (?)', $selectB);
|
||||
|
||||
$result = $db->fetchCol($query);
|
||||
|
||||
|
|
Loading…
Reference in New Issue