Closed Akash-T2S closed 11 months ago
Hi @Akash-T2S 👋 thanks for raising this issue.
Since you are building a React Native app, can you confirm which platform you're experiencing this behavior in?
Android? iOS? Or both?
@chrisbonifacio we have this issue in almost all the Android devices.
There is a known issue/limitation with the Android implementation of DataStore where records are written to the SQLite database one at a time, resulting in the delay between sync and ready events. This issue does not exist in iOS because records are all written in one transaction.
Hi 👋 Closing this as we have not heard back from you. If you are still experiencing this issue and in need of assistance, please feel free to comment and provide us with any information previously requested by our team members so we can re-open this issue and be better able to assist you.
Thank you!
@chrisbonifacio Do we have a plan to fix this anytime?
@chrisbonifacio @nadetastic Any alternative we can do for this? As we have a fatal issue due to this behaviour.
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
DataStore
Amplify Categories
storage
Environment information
Describe the bug
I have 8 to 9 models in my schema with more records in few models. The "modelSynced" event is experiencing a significant delay before it triggers. This delay is caused by the slow insertion of records into SQLite, which varies in duration, ranging from 1 minute to 6 minutes, depending on the data we have for each model. I'm not noticing any delay in the actual data synchronization process. However, there is a noticeable time gap between the last data synchronization and the "modelSynced" & "syncQueriesReady" event, which seems to be substantial.
Expected behavior
The "ModelSynced" events should be triggered immediately upon completion of the synchronization process. Additionally, the synchronized records should be inserted into SQLite without any delay.
Reproduction steps
1) Happens only on Fullsync
Code Snippet
Log output
aws-exports.js
aws_appsync_authenticationType: 'API_LAMBA'
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response