From 466f065718779955a2532f413a5aa44597bec80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 14 Jun 2020 02:06:27 +0200 Subject: [PATCH] MAPG-125 switch off diff calculation in Modify for better performance (not sure if needed - we probably won't log) --- src/Database/Query/Modify.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Database/Query/Modify.php b/src/Database/Query/Modify.php index f731461..5554409 100755 --- a/src/Database/Query/Modify.php +++ b/src/Database/Query/Modify.php @@ -116,11 +116,14 @@ class Modify private function update(): void { - $diff = $this->generateDiff(); + /*$diff = $this->generateDiff(); if (count($diff) === 0) { return; - } + }*/ + + $diff = $this->attributes; + unset($diff[$this->idName]); $set = $this->generateColumnsWithBinding(array_keys($diff));