ramack / ActivityDiary

Android diary for any kind of activities
GNU General Public License v3.0
73 stars 37 forks source link

Multithreading or Disable Stats #268

Open Zakkumaru opened 5 years ago

Zakkumaru commented 5 years ago

I would like to be able to disable the automatic stats that have to calculate each and every time an activity is changed.

The reason for this is, while the app may seem okay when you first test it, it becomes horrendously slow when you have 6k+ entries. To top that off, if you don't wait the entire time for it to do the tediously slow calculations and rearrange everything before you either close the app or "minimize" it, the last activity change won't even save. You'll have to set it again, and manually edit the time.

Wait times have become anywhere between 10 to 60 sec. It's not worth using the app if I need to set my phone down and wait that long. I'd like to be able to just press a button, close the app, and know for 100% sure that it saved, without concerns of having to redo it. The whole interaction with the app should last no more than a second, not a minute.

Thus, I propose a setting to end this automatic recalculation thing. Also, simply arrange the activities according to the last one used. I find this weighed calculation thing to not work as expected, anyway.

There is no need to recalculate stats for nearly 7,000 entries, every time, if it renders the app useless.

ramack commented 5 years ago

Thanks for reporting. I totally agree with you that the performance is a nightmare right now and - in a sense - I am happy that someone else sees the problem, because it means I am not the only one really using the app 😃.

About the sorting I also share your oppinion that it doesn't always sort as it should, but I personally still like it in principle so I don't want to remove it. If you want to do a more static sort you should be able to achieve it by adjusting the weights.

Zakkumaru commented 5 years ago

I think that for the sake of principle, there needs to be at least an option in the settings to disable the weighted sort. Personally, like I said, I'm perfectly fine with just sorting by most recently used. At the very least there should be a "Performance" subsection with options to disable things and just get a straight entry into the database. There's already a stats section, and I don't need it on the main page. Performance tanked once that feature came out.

nottheend commented 4 years ago

Thanks a lot for implementing! Actually I am having after some minths of using the app also performance problems.

Other possible solution: delete older entries and keep only some "summed results" like duration per month or sth. similar

nottheend commented 3 years ago

As a workaround there could be also a deletionof task history, only keeping the structure like activities and behaviour. Maybe partly overlapping with issue for deleting complete db #173 and #299