My Android app holds local cache of timeline from RTDB. One operating day of the timeline contains 10K nodes (5-7MB). When I get all day data in single request, sometimes the app crashes with OutOfMemory error. So I need use pagination, but I’ve got an issue with it.
Request of reading full data (10K nodes) takes approx 10-12 seconds in my case. When I make several requests, reading by 2K nodes each time for instance, each request takes also approx 10 seconds. As a result total time of getting data enlarged from 10 (single read) to 50 (paged read) seconds. Can I fix it? Thanks.