Hello everyone,
I’m relatively new to the Ionic Community and I’m looking to implement storage solution for my workout app. After doing my research I think the strength and weaknesses of Ionic Storage, Capacitor Storage, Preferences API and SQLite are clear, however it’s not clear to me if it would be a good practice to combine these solutions or if it’s the right fit for my use case, so I would like the input from the community.
The app should store:
- User preferences
- Plates inventory (what plates the user has available in the gym)
- Records of each workout
Additionally, I will be providing workout performance statistics to the user.
It sounds to me that Preferences API would be the easiest way to story user preferences persistently.
The plates inventory could be stored with Ionic Storage as JSON since each plate only has about 7 properties, although the user will be able to store 100s of plates so I’m not sure how scalable that is. So maybe I should use a SQLite?
Last but not least, for the workout records, since I will be providing statics and need querying, sounds to me that SQLite is the way to go.
On any case, would you recommend to use multiple solutions in one app; Ionic for preferences, Ionic Storage(with SQLite plugin) for inventory, and SQLite for records. Or should I just use SQLite to store everything there? I’m a bit torn right now.
What would be a good way to go about this? Curious of what your thoughts are.
Thank you!
Claudio
3 posts - 3 participants