Better perf for phpunit on very large databases

This commit is contained in:
Laurent Destailleur
2020-08-19 01:43:48 +02:00
parent 53522fb8dd
commit 7217dc3114
10 changed files with 18 additions and 1 deletions

View File

@@ -3720,6 +3720,8 @@ class Commande extends CommonOrder
$sql = "SELECT rowid";
$sql .= " FROM ".MAIN_DB_PREFIX."product";
$sql .= " WHERE entity IN (".getEntity('product').")";
$sql .= $this->db->plimit(100);
$resql = $this->db->query($sql);
if ($resql)
{