I am working on a database that will look for recipes for ingredients.
For example, I think I plan to populate the database with the types of ingredients that are accepted, but I don’t want to parse a line that includes all the ingredients in a specific recipe. I was thinking of doing just like a list of acceptable ingredient tables, and finding this to see if it exists or not. I feel that it will be very taxable, though, and I want it to be as efficient as possible.
What is the best way to structure something like this? I have a couple of ideas, but they seem so inefficient.
If someone is looking for recipes with butter, mushrooms and spinach, I want him to return the recipe with any of these ingredients.
We look forward to some suggestions on this subject.
source
share