greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Lazy loading on rawQuery #956

Open elv3 opened 5 years ago

elv3 commented 5 years ago

Currently I am using the rawQuery method to execute a union select statement between two tables. I being searching but I have not being able to find documentation or by checking out the code for a way to have a lazy loading list from the output (db cursor) provided by the rawQuery method. Is there any way to obtain a lazy loading when executing rawQueries ?

greenrobot-team commented 5 years ago

Lazy loading is only supported with queries as far as I know. http://greenrobot.org/greendao/documentation/queries/#Query_and_LazyList

-Uwe -- Check out ObjectBox, our new fast, easy to use database!