开发者

Viewing/analyze all database accesses in Django

Is there a way to print or log all database accesses as they occur in Django?

This would be helpful for optimizing database accesses. It would also be nice to see the actual query being executed.

I will be testing this using a MySQL databas开发者_StackOverflow社区e.


the best way would be to use https://github.com/robhudson/django-debug-toolbar :)

You can track all the queries, signals, etc..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜