From 91426f2f160fe7cfec5a720a58bb2877372ac821 Mon Sep 17 00:00:00 2001 From: Fotis Evangelou Date: Thu, 17 Oct 2024 18:20:03 +0300 Subject: [PATCH] Update default max execution time hint for MySQL for itemlist views --- components/com_k2/models/itemlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/com_k2/models/itemlist.php b/components/com_k2/models/itemlist.php index 83a71379..91702fe0 100644 --- a/components/com_k2/models/itemlist.php +++ b/components/com_k2/models/itemlist.php @@ -48,7 +48,7 @@ public function getData($ordering = null) */ $nullDate = $db->getNullDate(); - $query = "/* Frontend / K2 / Items */ SELECT /*+ MAX_EXECUTION_TIME(30000) */ SQL_CALC_FOUND_ROWS i.*,"; + $query = "/* Frontend / K2 / Items */ SELECT /*+ MAX_EXECUTION_TIME(60000) */ SQL_CALC_FOUND_ROWS i.*,"; if ($task == 'search') { $query = "/* Frontend / K2 / Items */ SELECT /*+ MAX_EXECUTION_TIME(90000) */ SQL_CALC_FOUND_ROWS i.*,";