6

有没有什么方法能够查看 djangoORM 的 SQL 语句消耗时间

 3 years ago
source link: https://www.v2ex.com/t/787895
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

有没有什么方法能够查看 djangoORM 的 SQL 语句消耗时间

  longmeier90 · 8 小时 26 分钟前 · 498 次点击

俺们公司的主项目用 django 开发的。其中 SQL 有用自带的 ORM,还有原生的 SQL 语句混合使用,最近 mysql 服务器老是提示 cpu%占用过高。数据库服务器只部署了一个 mysql 。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK