Issue
I am developing an app with flask and SQL Alchemy. I need to display the queries executed to generate a page alongside the time each query took for debugging
What's the best way to do it?
Solution
I haven't used it myself, but it seems that Flask Debug-toolbar may help with this.
https://github.com/mgood/flask-debugtoolbar
It's a port of the django-debug-toolbar, which can be used for profiling queries.
The documentation of Flask Debug-toolbar doesn't mention it, but there is code for a SQLAlchemyDebugPanel.
So I think it may be well worth to take a look at the project, and see if it does what you need.
Answered By - jeverling
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.