I have a Sqlite db file which have 1000's of records which I want to display with RecyclerView
. If I fetch the data and store them in a List
it takes 10s to loop through all the data. Then when I assign this List
to RecyclerView
data adapter, it takes almost 10 extra seconds to cache the data for displaying. So its spending about 20s in this entire process.
Is there any why to directly connect the SQLite db query cursor with RecyclerView, so it can display data one by one instead of retrieving all 1000s of data and cache it?