Description
[REQUIRED] Step 1: Describe your environment
- Xcode version: 13.0
- Firebase SDK version: 8.8.0
- Installation method: CocoaPods
- Firebase Component: Firestore
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
After updating (unfortunately several things at once) to iOS 14.8, xcode 13 and SDK 8.8.0 (from 7.4.0) I am getting a change in behaviour in startup and initialisation of the SDK.
I am now getting a long pause before the SDK responds to the first request. This request is a simple get on a ref and only checks that the user is authenticated at all, not fetching any other docs in the rules. With 7.4.0 this would complete in roughly 1s, now I am seeing delays of 6s in iPad, 28s on Catalyst. All subsequent gets take 50-80ms.
This makes the app almost unusable.
After deleting app and data the time goes back down to a little over a second in iOS, which implies that size/state of database can cause considerable delay on startup.
Is this something you are aware of?
Is there a new behaviour, maybe more indexing, on startup? If so can I turn it off?
I'm not sure if this is related just to the size of a healthy database or an indication that something is wrong (accumulation of failed writes?)
Is there any way I can debug this? I think there is an envar for verbose Firestore logging but cant remember it.
Thanks