Which java ORM is suitable for Android OS and supports lazy list?

I want to choose the best and most suitable ORM library for Android for use in my application. I know about GreenADO and ORMLite, but not much.

Could you compare them and mention the advantages / disadvantages? And also tell which one supports the lazy list?

thank

+9
android sqlite orm
Jul 18 2018-12-18T00:
source share
1 answer

I use GreenDAO because of its speed ( see performance ). It is easy to use and you can very easily perform lazyLoading. ORMLite has a larger community, I think, but it seems slower.

About lazy loading, in ORMLite you need to use DAO.iterator (Query), which returns an iterator, so you need a custom adapter. With greendao, you can use Query.lazyList (), which returns a list.

I suggest you go to GreenDAO.

+11
Jul 18 2018-12-12T00:
source share



All Articles