-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Labels
BackendIssue or PR related to the backend codeIssue or PR related to the backend codeenhancementNew feature or requestNew feature or requestphpPull requests that update Php codePull requests that update Php code
Description
Currently the DB schema seems non-optimal solved.
Describe the solution you'd like
- The keywords are associated with both a recipe and a user. A recipe would be sufficient.
- The category is (by the schem.org standard) only one entry per recipe. This should be in a nullable column in the recipe table.
- The recipes are indexed by the id of their parent folder and the user id. As the parent folder is already unique, the user id is not needed and should be dropped. This also makes the update faster as shared recipes are automatically updated for all users.
- Adding of indices if possible.
- Avoid storing of series of strings (keyword as column), better use separate table with indexed foreign key + joins
- Optionally enhance the schema to store more details for full-text search (see discussion on matrix channel from Aug 7th to 11th)
Potentially there are more optimizations to be carried out that come up during development.
seyfeb
Metadata
Metadata
Assignees
Labels
BackendIssue or PR related to the backend codeIssue or PR related to the backend codeenhancementNew feature or requestNew feature or requestphpPull requests that update Php codePull requests that update Php code