android - Getting relational data faster with Parse -
i'm using parse number of places recyclerview. problem it's quite slow, has workflow.
in recyclerview show: picture, textfields, tags, how many likes place has, , how many comments.
for query place object, has relations picture object (which holds parsefile), tag objects & comments object.
getting 10 places takes 10 seconds, seems extremely show.
worksflow: in asynctask have query places. loop on these places , per place relations pictureurls, tags & comments. (these loaded arraylists pass adapter).
by way, in adapter pictures loaded picasso.
any on appreciated :)
i solved it, now.
what makes getting placeobject slow iterating on each object, getting relation picture object, tags & comments. dropped iteration, instead i:
pictures - stored url thumb in place object, load picture picasso
comments - added field "commentscount" , increment everytime there one. needed count, enough. (i show comments in detailfragment)
tags - dropped tags, , show them in details too.
so, dirty fix maybe, might problem needed.. :)
Comments
Post a Comment