mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	More recipes page performance optimizations (references #1750)
This commit is contained in:
		| @@ -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)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user