Best Practice to query database when inflating ListView/RecyclerView item

Viewed 187

I have a ListView/RecyclerView. Now, I want to add more information for each item and the information could be found in database according to the item value. How would you guy achieve it??

For the best practice, should I query database in the background thread? Should I cancel the query if user scrolling fast?

1 Answers
Related