osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.63k stars 1.01k forks source link

Caching maps regions data #20000

Open brbar opened 4 months ago

brbar commented 4 months ago

Describe the idea (required)

I would cache maps regions data (Maps & Resources -> Downloads) for a period of time - let say 1 week and keep it until next successful download attempt. In current implementation this data keeps downloading every time you open the app and visit this screen. Even if you did it 5 min ago. The maps are not updated every day, so this behavior does make sense.

Tell us about the expected behaviour (required)

I would keep this data until next successful download attempt in order to provide more convenient country categorized view for already downloaded data. In Local screen everything is messy if you need to see which regions are downloaded and want to remove some of them if you are offline. Additionally we can add a settings option which allows to choose caching period.

vshcherb commented 3 months ago

Not sure how much data is saved, I think it's reloaded each app run so it's perfectly fine to get map udpates

brbar commented 3 months ago

I noticed this problem when I was playing with data storage location. Once I choose Multiuser storage 2 (on SD card) everything (indexing, regions downloads) starts to work 10x times slower than you choose manually specified storage on the same sd card. In my case with that configuration the regions data was not downloaded for a minutes after opening this screen. When you select manually specified storage it took seconds to download maps regions data and the other file operations works much faster.

Additionaly, I would love to have a more convenient maps management mechanism instead of using Local maps screen which is messy.

brbar commented 3 months ago

created a separate issue #20010 for slow file operations problem