-
Notifications
You must be signed in to change notification settings - Fork 1.6k
read data slow for large database in firebase in ios #1614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @vijay444, Can you give some information about what Firebase version you are using, and what iOS version this is on? Also, how big is the database being pulled in? Is it highly nested, or is it flat? |
Thank you for giving me reply sir.
We are using ios os version as follow
Our Firebase database is big. The database contains 500+ users, 3000+ Group of chats, and 10000+ messages in a chat group. Yes it's a nested database structure Thank you |
@vijay444 can you try updating to Firebase 5.0+ and seeing if the issue still persists? |
You need to paginate your data. Rights now you are pulling in everything at once at that reference path. See https://firebase.google.com/docs/firestore/query-data/query-cursors |
I am already updating firebase version and also I also implement pagination
here. but not work.
…On Tue, Aug 7, 2018 at 7:02 AM michael-mckenna ***@***.***> wrote:
You need to paginate your data. Rights now you are pulling in everything
at once at that reference path. See
https://firebase.google.com/docs/firestore/query-data/query-cursors
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1614 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVvBLVXT56quO3XqGlaTKRBLYzzu6eOPks5uOO4lgaJpZM4VqOxa>
.
--
--
*Thanks with Regard*
*Vijay Kachhadiya*
|
@vijay444 can you run Instruments' time profiler and post the trace here? A screenshot will do fine. |
I'm not really into the issue right now but could it also be because of some problems mentioned in #1477 and related issues? |
Closing due to inactivity. |
I am using firebase for my Chating app. I store all information about the user from there. Normally if Firebase database does not have large data it gives a quick response. But once data is an increase in the database it becomes too slow. The same database is working perfectly on my android app. Please help me with solving this issue.
I am using the following method for fetching data from firebase.
The text was updated successfully, but these errors were encountered: