sunflower icon indicating copy to clipboard operation
sunflower copied to clipboard

Tracking issue for adding network + paging + database

Open tiembo opened this issue 7 years ago • 3 comments

This is the main issue to track progress on adding the following:

  • [x] Network (#206)
  • [x] Retrofit (#191)
  • [x] Paging (#6)
  • [ ] Database (#6)

Plan is to implement these in stages roughly in the order above.

tiembo avatar Sep 27 '18 21:09 tiembo

Could you please take into consideration a volatile database network source ?

RoarGronmo avatar Nov 09 '18 13:11 RoarGronmo

@RoarGronmo can you clarify? Do you mean an unstable network, using a network as the data source (with ever-changing data), or something else?

tiembo avatar Nov 14 '18 19:11 tiembo

A networked database source which changes often, like a botaniq database, or a seed bank, where other withdraws or inserts data or values several times per days, hour or minutes. How is the best way to pull data from the database, perhaps by a WorkManager doWork() implementation maybe? The pity is that WorkManager minimum time is 15 minutes (!), what trick should we use to pull data more often ?

You could as a "plugin" project couple androidthings volatile project simulating growth of the plants so you can demonstrate a 3. datasource to the repositories.

RG

RoarGronmo avatar Nov 14 '18 21:11 RoarGronmo