Skip to content
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

content.get is very slow with populate: true #199

Open
ptreitler opened this issue Apr 8, 2022 · 2 comments
Open

content.get is very slow with populate: true #199

ptreitler opened this issue Apr 8, 2022 · 2 comments

Comments

@ptreitler
Copy link

In my app (Android + iOS) I use content.get() to retrieve data from flamelink.

When I set the populate option to true the call loads for a very long time - by a factor of 10 longer compared to when it's off.
The schema in question is quite simple, but it has three referential fields and one media field.

The network inspector shows low amounts of activity with long idle times in between. At times the SDK seems to load only the media metadate - mostly sequentially and with a request time of ~250ms each:
image

Is there any way to speed things up here?

Not populating the reference fields would make my app logic quite a bit more complicated, so I'd like to avoid that if possible.

@ptreitler
Copy link
Author

Also on Android loading times are significantly longer yet again compared to iOS.
Possibly related to this bug in react-native-firebase: invertase/react-native-firebase#5941

@ionuts94
Copy link

Hello @ptreitler ,

Currently we are experiencing the same issue.

We have a react native project and when we run the ios app it takes less than a second to load the content but when we run in on android it takes about 12 seconds to load it.

Did you find a solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants