-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Cache nutritional values for plan #246
Milestone
Comments
@rolandgeider is this issue still a priority? I would love to take a stab at it based on some of the work done by the folks at @andela |
Hi @andela-brotich! yes, while this is not priority 1A, I still want to solve this issue |
@rolandgeider cool. Will start on this on the weekend and update ASAP |
👍 Great! |
Cherry-picked from andela/wg-millennium-falcon#29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found during #241, dummy generator for nutrition plans: if a user has many plans (approx. more than 25), the overview renders slowly and too many DB-queries are fired just to calculate the total calories. Some caching of the values is probably the easiest solution, similar to the
canonical_representation
for workouts.Steps:
nutritional_info
dictionary inNutritionPlan
sNutritionPlan
,Meal
andMealItem
is added, edited or deleted.The text was updated successfully, but these errors were encountered: