From 123ff76064f5b0562921491665fe3f0cf68b3196 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Thu, 28 Sep 2017 14:39:22 +0200 Subject: only select ID for delete_untouched (memory and speed) --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3