Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[RTDB] Memory effectiveness of different listeners #3487

Unanswered
zoltish asked this question in Q&A
Discussion options

Whats the most effective way for me to listen to add/update/delete events on all children under a couple of DatabaseReferences in my RTDB?

Im asking because Ive noticed that my apps memory footprint grows substantially when signed into firebase and using childEventListeners. By default the memory usage sits at about 40 mb, with the listeners active, 170 mb.

My data is categorized as such that 6 branches hold data, each under /path/uid/... each path has 300-3000 children that Im interested in syncing changes down to the device in a timely manner. I do this by adding a childEventListener to each, which covers all the childrens add/update/delete events.

Is there another more effective approach to this; or is this expected? I do notice that the overall performance of my app degrades while the sync is active.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /