last day (15 days later) » 

5:34 PM
Dave
 
what's up?
 
Sorry for dragging you out here
I got a quick one for Android
 
ok
 
I have an app am working on for products
I have 11,000 products
I notice that after a while of usage, it starts to lag so much it essentially renders the app unusable
Is it too much for a mobile device?
 
are you using recycle views?
you will need to manage memory carefully
 
5:36 PM
I do use it
but I query the json data from API
using paging
 
you could try storing the data on the disk instead of in memory using sqlite
read from the database or API when needed
it sounds like you are holding too much data in memory
 
I use Realm
 
I would try profiling the app
 
Okay, I can try that;
So you believe that having 11,000 products is a reasonable thing to do?
 
if managed properly yes
you just need to prevent allocating too much memory or memory leaks
profiling should help you see where memory is being used
 
5:39 PM
Let me try that profiler
Thanks Dave;
 
np
 
I will let you know if I pull it off;
Let me try that profiler
 
sounds good
https://proandroiddev.com/realistic-realm-1-5-year-of-experience-cef75c8b164e
leaving Realm instances open and not closing them properly can lead to memory leaks
 

last day (15 days later) »