剖析Django [英] Profiling Django

查看:102
本文介绍了剖析Django的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的django应用程序在生产上变得很慢。很可能是由于一些复杂或无索引的查询。



有没有django-ish方式来配置我的应用程序?

解决方案

p>尝试 Django调试工具栏 。它将显示您在每个页面上执行的查询以及它们需要多少时间。这是一个非常实用,功能强大且易于使用的工具。



此外,请阅读数据库访问优化



Django演出提示 by
Jacob Kaplan-Moss。


My django application has become painfully slow on the production. Prolly it is due to some complex or unindexed queries.

Is there any django-ish way to profile my application?

解决方案

Try the Django Debug Toolbar. It will show you what queries are executed on each page and how much time they take. It's a really useful, powerful and easy to use tool.

Also, read recommendations about Django performance in Database access optimization from the documentation.

And Django performance tips by Jacob Kaplan-Moss.

这篇关于剖析Django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆