Closed dbrgn closed 10 years ago
Work in progress: https://github.com/tnc-ba/strongTNC/tree/performance_issues
Found one issue (see file/line comments). Will do more testing tomorrow....
utils.py
the right place for the update_tag_stats
method or shall we move it rather to the TagStats
model?session_tag_difference
line 192, I never had this one before@d22 and @dbrgn what do you think, how shall we proceed?
I fixed the "to many SQL variables" problem in the log view and added a filter to the log view. Pls, test and review.
I'm currently working on the "inital measurement is not shown in log view" problem. I hope I can finish this tomorrow.
Tnx for the defer('swid_xml')
hint, totally forgot about it.
The inital measurement is now shown in the log view as well. If the last session in the timerange is not the initial measurement, all additions from this sessions are shown as well.
Please review and test. Tnx!
Btw. I also tested the the API and views with "BIG DATA" and found no further bugs so far. All I found was a gigantic performance boost! :godmode: :star2: :heart:
Migration instructions:
sqlite3 /path/to/database
sqlite> .read sql/issue294_create.sql
./manage.py shell
>>> execfile('sql/issue294_migrate.py')
get_installed_tags_with_time
,get_installed_tags_dict
)