From 483d80b5760f4f37eb2a860b8286ceaf951b7ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eric=20Espi=C3=A9?= Date: Fri, 8 Jun 2018 08:18:57 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01420=20-=20Performances=20enhancement=20?= =?UTF-8?q?(fix=20indexes=20generation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[5834] --- core/metamodel.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 03e2103ce..d2227e605 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -5178,6 +5178,11 @@ abstract class MetaModel { $sIndexId = implode('_', $aColumns); + if (isset($aTableInfo['Indexes'][$sIndexId]) && $aTableInfo['Indexes'][$sIndexId]['used']) + { + continue; + } + $aLength = self::DBGetIndexesLength($sClass, $aColumns, $aTableInfo); $aTableInfo['Indexes'][$sIndexId]['used'] = true;