I'm building a ranking page with Firebase Firestore as follows:
StreamBuilder<QuerySnapshot>(
stream: FirebaseFirestore.instance
.collection('user')
.orderBy('total_score', descending: true)
.limit(3)
.snapshots(includeMetadataChanges: false),
builder:...
Everything is working almost perfectly, but I have only one problem: the number of readings is too high, I tried to limit it to 3 but it still reaches a very high number and with only 1 user.
For other pages I use cached data, which reduces the number of reads.
Is this possible in StreamBuilder? Any suggestion?