Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB system #8

Open
Draeken opened this issue Nov 2, 2018 · 1 comment
Open

DB system #8

Draeken opened this issue Nov 2, 2018 · 1 comment

Comments

@Draeken
Copy link
Member

Draeken commented Nov 2, 2018

Graph databases, such as Neo4J, could be suited for storing relation between recipe, sub-recipe, ingredients, ustensils.
https://neo4j.com/developer/data-modeling/
It is also possible to store in multiple DB (mongoDB & Neo4J): https://neo4j.com/developer/mongodb/

pros for graph oriented

  • good performance for query like "what are the recipes that use this ingredient"
@Draeken
Copy link
Member Author

Draeken commented Nov 14, 2018

(n:Recipe { directions: [{ instr: "dissoudreXdansYdansZ, argX: bol, argY: { code: "sel", quantity: 1}, argZ: "milk or water" }] })-[:requirement {factor: x} ]->(sb:Subrecipe/Product/Choice)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant