summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2017-09-28 14:39:22 +0200
committerNathan Gass2017-09-28 14:39:22 +0200
commit123ff76064f5b0562921491665fe3f0cf68b3196 (patch)
tree21597d4bd39a16133a0aaff08b9947c569d853f6
parent93d54ce46fee08b789eef270186115011c87b163 (diff)
downloaditools-123ff76064f5b0562921491665fe3f0cf68b3196.tar.gz
itools-123ff76064f5b0562921491665fe3f0cf68b3196.tar.bz2
itools-123ff76064f5b0562921491665fe3f0cf68b3196.zip
only select ID for delete_untouched (memory and speed)
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 1c30d6f..8fb32f0 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -819,7 +819,7 @@ function delete($query = null)
*/
function delete_untouched($query = null)
{
- if ($this->select($query))
+ if ($this->select(['SELECT' => $this->_p['keyfield']] + (array)$query))
while ($this->iterate())
if (($id = $this->_key) && !$this->_touchedids[$id])
$result += $this->delete();