More recipes page performance optimizations (references #1750)

This commit is contained in:
Bernd Bestel
2022-01-16 16:08:57 +01:00
parent 3b3f079754
commit c190002ebb
3 changed files with 29 additions and 14 deletions

View File

@@ -99,19 +99,6 @@ class RecipesService extends BaseService
}
}
// The same as GetRecipesResolved but without the column "missing_products_count" to improve performance when this is not needed
public function GetRecipesResolved2($customWhere = null): Result
{
if ($customWhere == null)
{
return $this->getDatabase()->recipes_resolved2();
}
else
{
return $this->getDatabase()->recipes_resolved2()->where($customWhere);
}
}
public function CopyRecipe($recipeId)
{
if (!$this->RecipeExists($recipeId))