Refactor Plans + Workouts #102

Closed
opened 2022-10-28 22:56:45 +00:00 by brandon.presley · 2 comments

Plans and workouts currently store values as comma delimited strings.
This makes it hard to have StartPlan query the daily count of workouts, without losing the order in which the plan was made.
There are also some other consequences of doing it in this way, like data inconsistency when updating plans.

Plans and workouts currently store values as comma delimited strings. This makes it hard to have `StartPlan` query the daily count of workouts, without losing the order in which the plan was made. There are also some other consequences of doing it in this way, like data inconsistency when updating plans.
Author
Owner

We should try instead using join tables and having a many to many relationship for Plans -> Sets

We should try instead using join tables and having a many to many relationship for Plans -> Sets
Author
Owner

Not sure this ended up saving us anything on performance so I'll close this for now.

Not sure this ended up saving us anything on performance so I'll close this for now.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: brandon.presley/Massive#102
No description provided.