Open erickotsuka opened 3 months ago
Hello @erickotsuka. Thanks for taking the time to open the issue. I have a few questions:
Hello, @Jordan-Nelson
@erickotsuka Thanks for the info. We will attempt to reproduce the issue with the specified info.
@erickotsuka - I was able to reproduce this. I observed about ~600ms sync times initially and then ~2000ms sync times after updating the back end. I created a new Amplify app (rather than a new env) and observed ~600ms sync times again. I see this on both iOS and Android.
Are you able to work around this for the time being by creating a new amplify app or env?
@Jordan-Nelson - For now we have this work around, specially since this change required the deletion of the user pool. However, it could be a issue if an update that does not require the deletion of the auth category caused this increase in sync times, since in production this work around would not be possible.
@erickotsuka thanks for clarifying
Description
In a project I am working on, I had to update the sign in method from email and password to phone number and password. The project was also using a GraphQL API with DataStore for offline capabilities, and the schemas had owner-based permissions. To do that, I had to first remove the auth category and recreate it using phone number sign in. When I updated the environment, the initial DataStore sync was a lot slower. However, when I created a new environment based on the updated environment, the initial sync was normal in the new environment.
Categories
Steps to Reproduce
I've created a small Flutter app to reproduce this problem, it is here: https://github.com/erickotsuka/slow_sync_demo.
In this repository, there are 3 branches: master, phone-number-login and new-env.
In conclusion, originally the initial query took an average of 2273 ms. After updating the same environment to use phone number sign in, the initial query took and average of 12722 ms. On the new environment created based on the updated environment, the initial query took an average of 2971 ms.
The version of the amplify CLI used was 12.10.3.
Screenshots
No response
Platforms
Flutter Version
3.22.0
Amplify Flutter Version
1.8.0
Deployment Method
Amplify CLI
Schema