Optimized performance of GetProductDetails

This commit is contained in:
Bernd Bestel
2023-09-01 17:03:22 +02:00
parent 07db1f35bc
commit fdbb8a045a
3 changed files with 79 additions and 63 deletions

View File

@@ -204,7 +204,7 @@ class LocalizationService
$quantityUnits = null;
try
{
$quantityUnits = $this->getDatabase()->quantity_units()->fetchAll();
$quantityUnits = $this->getDatabase()->quantity_units()->where('active = 1')->fetchAll();
}
catch (\Exception $ex)
{