objectbox-java icon indicating copy to clipboard operation
objectbox-java copied to clipboard

remove and offset, limit

Open DJafari opened this issue 4 years ago • 2 comments

i want remove all objects for example 100 records in next page without find, how can doing it with QueryBuilder and remove()

currently limit and offset exists only in find() method, but i don't want load it in memory then removing them

DJafari avatar Jun 29 '20 21:06 DJafari

i think limit and offset must be added in QueryBuilder, then we can removing paginate items, or even subscribe only page 1 [offset: 0, limit: 100] of data for example ( currently we can't subscribe only for page 1 [offset: 0, limit: 100] of data )

DJafari avatar Jun 29 '20 21:06 DJafari

Thanks!

As a workaround it is possible to use findIds(offset, limit) to not return all data. Then use that to remove with box.removeByIds(ids).

greenrobot-team avatar Jun 30 '20 05:06 greenrobot-team