open-trackers / Gym-Routine-Tracker-Watch-App

Minimalist gym workout tracker, as independent watchOS app
https://open-trackers.github.io/grt
Mozilla Public License 2.0
39 stars 8 forks source link

Support for a history log #6

Closed reedes closed 1 year ago

reedes commented 1 year ago

Currently there is no history log.

It could be useful to maintain a history of routines, along with charting of progress.

However the tradeoff is a database that bloats over time.

Perhaps this is best done in an iOS app that can better tolerate a large database?

reedes commented 1 year ago

Probably best done with a partitioned data store, where the Watch partition carries only the most recent historical data, and the universal app (iOS/iPadOS/macOS) partition contains the full record. This will limit storage needs on watch hardware.

The universal app could routinely purge the watch app's partition of historical data once synced, as a possible design.

reedes commented 1 year ago

Added archiveID (UUID) to the two entities in the data model, in preparation.

Initialization code also added.

Updating existing data also added.