piggz / harbour-amazfish

Amazfit Bip support for SailfishOS
GNU General Public License v3.0
103 stars 52 forks source link

Database grows too large #155

Closed vigejolla closed 3 years ago

vigejolla commented 3 years ago

Storing sports activities in the database results in a large database, which after a while starts causing issues. My database was 129MB after about one year.

Two possible solution ideas: 1) Don't store gpx in the database, it's enough to have the files in the filesystem 2) Allow to easily remove old activities.

piggz commented 3 years ago

Solution 1 implemented in 1.8.5. I will probably also implement solution 2 at some point because during testing the new code, ive manage to amass a great number of duplicate entries in my database!

piggz commented 3 years ago

This is now fixed. Database does not stroe raw GPX, juse the filename. Also, there is now an option to delete records from the database.