## The problem
Issue firebase/firebase-js-sdk#8474 (closed, 18 comments): ### Operating System
macOS Sonoma 14.4
### Environment (if applicable)
Chrome 127.0.6533.100
### Firebase SDK Version
10.13.1
### Firebase SDK Product(s)
Firestore
### Project Tooling
No-bundle (using cdn to reproduce)
### Detailed Problem Description
- Update data.
- GetDocs before updated data is fully reflected onSnapshot.
- Random freeze.
- persistentLocalCache and security rules trigger this defect with high probability.
### Steps and code to reproduce issue
1. create new firebase project, and setup firestore.
2. set security rules as below:
```
rules_version =...
## What to do
If Firestore randomly freezes for tens of seconds on getDocs after an update transaction (persistentLocalCache plus security rules make it very likely), the trigger is a client-side index. Workaround: delete any existing client-side indexes and make sure client-side index auto creation stays disabled. Get the index manager with getPersistentCacheIndexManager(firestore), call deleteAllPersistentCacheIndexes on it, then disablePersistentCacheIndexAutoCreation. You can still add indexes manually with setIndexConfiguration for collections that need them.