Closed afern247 closed 1 year ago
Hi @afern247, thanks for your question.
DataStore is a offline first data solution, so by default all data available in your backend is downloaded (synchronized) to the device. Since it's not a caching mechanism, it won't download/cache data on demand, the synchronization process happens constantly in the background.
That being said, you have quite a bit of data in the historical_data
field, so I'll share a few insights with you to help you make the architectural decision:
Amplify.API
category.
Hey guys, I'm in the middle of an architecture decision, let's suppose I have a model called:
Coins
If I subscribe on the client (iPhone), to the model Coins, so the users have access to all 13000 coins using DataStore (for caching), as soon as the subscription kicks in will it download ALL the data from ALL 13000 coins (which might be 2 Gb+) or will it download only the data that I access at the moment? For example Coin1.historical_data?
I guess the other option would be to use DataStore query and fetch the data for a single coin, but this would increase the cost a lot, right?
Can someone give me some insights on the matter with best practices from AWS?
Thank you