{"title":"Django: SQL \u30af\u30a8\u30ea\u5b9f\u884c\u56de\u6570\u3092\u6570\u3048\u308b","published":"2021-01-18 11:26:05","provider_url":"https://hatena.blog","categories":[],"provider_name":"Hatena Blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2021%2F01%2F18%2F112605\" title=\"Django: SQL \u30af\u30a8\u30ea\u5b9f\u884c\u56de\u6570\u3092\u6570\u3048\u308b - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","type":"rich","url":"https://blog.kyanny.me/entry/2021/01/18/112605","author_url":"https://blog.hatena.ne.jp/a666666/","image_url":null,"author_name":"a666666","width":"100%","blog_title":"@kyanny's blog","description":"Django Debug Toolbar \u304c\u51fa\u3059 SQL \u5b9f\u884c\u56de\u6570\u3092 Django shell \u3084\u5358\u4f53\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u3082\u4f7f\u3044\u305f\u3044\u3002 python - Get SQL query count during a Django shell session - Stack Overflow \u306b\u53e1\u667a\u304c\u8a70\u307e\u3063\u3066\u3044\u308b\u3002 django.db.connection.queries \u306b\u767a\u884c\u3055\u308c\u305f SQL \u30af\u30a8\u30ea\u306e\u6570\u304c\u5165\u3063\u3066\u3044\u308b Django \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u8907\u6570\u306e\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u3092\u6271\u3046\u5834\u5408\u306f django.db.connections.all() \u3068\u7d44\u307f\u5408\u308f\u305b\u308b connection.queries \u306e\u30ab\u30a6\u30f3\u30c8\u3092\u30ea\u2026","blog_url":"https://blog.kyanny.me/"}