turbomanage / storm-gen

Simple ORM for Android SQLite
Apache License 2.0
83 stars 15 forks source link

Provide support for Iterator<T> #20

Open turbomanage opened 10 years ago

turbomanage commented 10 years ago

From https://code.google.com/p/storm-gen/issues/detail?id=43

Proivde support for Iterator in DAO.

Right now, client code has to do dao.listAll(); to show the table records to show in a list.

This reads all table records in stores in memory. For large tables, this is not practical.

There should be a way to get Iterator where T is POJO, and read the data as they are accessed.

turbomanage commented 10 years ago

See perhaps https://github.com/venmo/cursor-utils