You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updating to version 1.2.3 causes significant performance issues #45
Recently a dependabot updating fastapi-analytics from 1.2.2 to 1.2.3 caused the API deployment to fail due to stability issues. The performance was also significantly slower than before for no apparant reason I could find.
On a sidenote:
Having release notes and a changelog would help in knowing which change(s) cause issues to occur. I'll make a separate issue about that though.
Ah interesting! The main difference with 1.2.3 is debug logging with the python logging module. Do you have your logging level set to debug with something like logging.basicConfig(level=logging.DEBUG)? Documentation pointed to a minimal impact on performance if the logging level is set below. I'll run some benchmarks and confirm the cause. Thanks again.
Activity
tom-draper commentedon Sep 11, 2024
Ah interesting! The main difference with
1.2.3is debug logging with the pythonloggingmodule. Do you have your logging level set to debug with something likelogging.basicConfig(level=logging.DEBUG)? Documentation pointed to a minimal impact on performance if the logging level is set below. I'll run some benchmarks and confirm the cause. Thanks again.Snailedlt commentedon Sep 12, 2024
Interesting.
I haven't touched logging, so I have no idea what it's set to.
Couldn't find anything in the source code when searching for
loggingThis is the only setup for fastapi-analytics afaik: https://github.com/Snailedlt/Markdown-Videos/blob/98013ff4e8f12cf95a61c9b0ff7cd2495c4c7078/apps/api/main.py#L36-L37
Feel free to check out the source code for more info though. It's all open source