we have designed a new web page that contains college students and staff details. And we are using Cloud Firestore as our backend DB. When loading a web app we need to fetch all students and staff data's in one single request and display no of the present's and absent's count on the home screen. Firestore taking much time to get data from the database.
In the single query we need to get around 1.5L of students and staff details from the database, so it taking around 3-4 minutes to get data. How can we fix these issues?