diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2020-12-08 08:28:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 08:28:38 +0300 |
commit | 5377425108efe04af89ab34c2da28d264541f082 (patch) | |
tree | 903d977c76ebc7d166557b60907e404a4dcdaad5 /core/Db/BatchInsert.php | |
parent | f0d6d1ad6213791c3f9bfa0caae32eb8368bcc75 (diff) |
Avoid inserting duplicates in invalidation table to reduce IO. (#16843)4.0.5-b1
* Avoid inserting duplicates in invalidation table to reduce IO.
* Limit to given sites to not select too much.
* fix build
* tweaks to duplicate checking query
* more pr feedback
* fix cron archive test
Diffstat (limited to 'core/Db/BatchInsert.php')
-rw-r--r-- | core/Db/BatchInsert.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php index b980a818d2..6cb5729607 100644 --- a/core/Db/BatchInsert.php +++ b/core/Db/BatchInsert.php @@ -244,6 +244,9 @@ class BatchInsert } catch (Exception $e) { $code = $e->getCode(); $message = $e->getMessage() . ($code ? "[$code]" : ''); + if (\Piwik_ShouldPrintBackTraceWithMessage()) { + $message .= "\n" . $e->getTraceAsString(); + } $exceptions[] = "\n Try #" . (count($exceptions) + 1) . ': ' . $queryStart . ": " . $message; } } |