-
Notifications
You must be signed in to change notification settings - Fork 199
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
Datastore sync reading all over from start on each amplify sync #3841
Comments
You can adjust the syncInterval in DataStore configuration as shown here: https://docs.amplify.aws/gen1/swift/build-a-backend/more-features/datastore/conflict-resolution/#custom-configuration-fields You will also need to check how long your Delta table ttl is set on the service side as well. See |
@tylerjroach |
This will not slow syncing on model saves. This value is specifically used for when to attempt a delta query vs a full base query. |
Describe the bug
Doing appsync in every minute to ensure each min data sync to the datastore and cloud. But it is increasing the read operation count to dynamodb.
Currently, our app has a 2-week caching mechanism, so on login it will fetch 2 weeks of data. But the read count in dynamodb is huge which is not as per the no of rows present in that table. Its almost 10 times per day
Steps To Reproduce
Expected behavior
Amplify should not reread data that is already present in DB, it should only read the delta wrt the current date
Amplify Framework Version
2.35.4
Amplify Categories
DataStore
Dependency manager
Swift PM
Swift version
5.9.2
CLI version
12.11.1
Xcode version
15.0
Relevant log output
Is this a regression?
Yes
Regression additional context
No response
Platforms
iOS
OS Version
iOS 17.5.1
Device
iPhone 15 Plus
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: