nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
725 stars 1.76k forks source link

Feature /minor bug : TDD calculation delay #1489

Closed robertrub closed 2 years ago

robertrub commented 2 years ago

The new look of stats is GREAT :) Tnx.

At the same time, the time needed for the TDD calculations became even longer on the stats page (on a Samsung S9, not a slow phone...). This "slowness" seems to impact DynamicISF on slow phones too.

I know changing db structure in the middle of a version is not the best option but maybe another way (without db change) to calculate could be found for a faster result.

Could AAPS calculate TDD of the past day at 00h00 and write it to the db or a file ? At 0h, there is usually not much activity and this way, the TDD calculations are already done when you need them.

antoinekh commented 2 years ago

Seems related to the problem I have #1395

antoinekh commented 2 years ago

fixed by 845879d