Trần Kim Dự
Trần Kim Dự

Reputation: 6102

Android: Does ContentProvider load all data to cursor or this just laziness loading

When I get Cursor object from ContentProvider, at that time, I can use this cursor object to retrieve all data. My question is:

  1. Does cursor contains all data inside. It means system has queried and cost a time for loading data.

  2. This is just laziness loading. It means when you start to get data from cursor, that time system try to get data from database layer. If this true, how many data that Cursor has loaded first, or no data at all ?

Thanks :)

Upvotes: 2

Views: 291

Answers (1)

h2nghia
h2nghia

Reputation: 452

Your question may be answered already in this question. Also, this link may be helpful for you.

Upvotes: 1

Related Questions