When using the FirestorePagination widget with isLive: true, the app performs an excessive number of read operations from Firestore, causing potential performance issues.
The FirestorePagination widget should efficiently load and display paginated messages without causing excessive read operations when isLive: true is enabled.
Actual behavior
When isLive: true is enabled, the widget performs an excessive number of Firestore reads, which can negatively impact app performance and incur higher Firestore read costs.
Screenshots/Code Snippets
In just one hour after implementation of this package.
Additional context
This issue is observed on both iOS and Android platforms.
Describe the bug
When using the FirestorePagination widget with isLive: true, the app performs an excessive number of read operations from Firestore, causing potential performance issues.
Package version: 4.0.1 Platform: ios and android
My Code Expanded( child: FirestorePagination( query: FirebaseFirestore.instance .collection('Chat') .doc(controller.newMessage!.threadId) .collection('Messages') .orderBy('createdAt', descending: true), limit: 20, isLive: true, shrinkWrap: true, reverse: true, controller: controller.scrollController, itemBuilder: (context, snapshot, index) { print('snapstot=================================='); print(snapshot.length);
Expected behavior
The FirestorePagination widget should efficiently load and display paginated messages without causing excessive read operations when isLive: true is enabled.
Actual behavior
When isLive: true is enabled, the widget performs an excessive number of Firestore reads, which can negatively impact app performance and incur higher Firestore read costs.
Screenshots/Code Snippets
In just one hour after implementation of this package.
Additional context
This issue is observed on both iOS and Android platforms.