vendredi 1 mai 2015

Batching inserts with RxJava

I need to load data (up to 22,000 records) from a JSon feed and store them on my android device (in SQLite).

Doing individual inserts is easy to implement but slow. Ideally I would like to batch up the objects to insert and pass a list of these objects to the db.

I can see how to do it imperatively but I would really like to do it with RxJava but not sure how.

Thanks

Aucun commentaire:

Enregistrer un commentaire