{"action":"closed","issue":{"url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15008","repository_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports","labels_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15008/labels{/name}","comments_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15008/comments","events_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15008/events","html_url":"https://github.com/PennyDreadfulMTG/perf-reports/issues/15008","id":310318330,"node_id":"MDU6SXNzdWUzMTAzMTgzMzA=","number":15008,"title":"Exceeded slow_query limit (315.8 > 60) in mysql: ","user":{"login":"vorpal-buildbot","id":23072004,"node_id":"MDQ6VXNlcjIzMDcyMDA0","avatar_url":"https://avatars2.githubusercontent.com/u/23072004?v=4","gravatar_id":"","url":"https://api.github.com/users/vorpal-buildbot","html_url":"https://github.com/vorpal-buildbot","followers_url":"https://api.github.com/users/vorpal-buildbot/followers","following_url":"https://api.github.com/users/vorpal-buildbot/following{/other_user}","gists_url":"https://api.github.com/users/vorpal-buildbot/gists{/gist_id}","starred_url":"https://api.github.com/users/vorpal-buildbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vorpal-buildbot/subscriptions","organizations_url":"https://api.github.com/users/vorpal-buildbot/orgs","repos_url":"https://api.github.com/users/vorpal-buildbot/repos","events_url":"https://api.github.com/users/vorpal-buildbot/events{/privacy}","received_events_url":"https://api.github.com/users/vorpal-buildbot/received_events","type":"User","site_admin":false},"labels":[{"id":763867617,"node_id":"MDU6TGFiZWw3NjM4Njc2MTc=","url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-01T11:59:12Z","updated_at":"2018-07-29T01:15:29Z","closed_at":"2018-07-29T01:15:29Z","author_association":"NONE","body":"        SELECT\n            card AS name\n        FROM\n            deck_card AS dc\n        INNER JOIN\n            deck AS d ON dc.deck_id = d.id\n        WHERE\n            deck_id\n        IN (\n            SELECT\n                DISTINCT deck_id\n            FROM\n                deck_match\n        ) -- Only include cards that actually got played competitively rather than just posted to Goldfish as \"new cards this season\" or similar.\n        GROUP BY\n            card\n        HAVING\n            COUNT(DISTINCT d.person_id) = 1\n        AND\n            MAX(d.person_id) = 1704 -- In MySQL 5.7+ this could/should be ANY_VALUE not MAX but this works with any version. The COUNT(DISTINCT  p.id) ensures this only has one possible value but MySQL can't work that out.-- In MySQL 5.7+ this could/should be ANY_VALUE not MAX but this works with any version. The COUNT(DISTINCT  p.id) ensures this only has one possible value but MySQL can't work that out.\n    ; [] (slow_query, 315.8, mysql)\n\nReported on mysql by perf\n--------------------------------------------------------------------------------\nRequest Method: GET\nPath: /people/1704/?\nCookies: {}\nEndpoint: person\nView Args: {'person_id': '1704'}\nPerson: logged_out\nReferrer: None\nRequest Data: {}\nHost: www.pennydreadfulmagic.com\nAccept-Encoding: gzip\nCf-Ipcountry: US\nX-Forwarded-For: 157.55.39.80, 162.158.146.18\nCf-Ray: 404adb90fc753b1a-YVR\nX-Forwarded-Proto: https\nCf-Visitor: {\"scheme\":\"https\"}\nCache-Control: no-cache\nPragma: no-cache\nAccept: */*\nUser-Agent: Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)\nCf-Connecting-Ip: 157.55.39.80\nX-Forwarded-Host: www.pennydreadfulmagic.com\nX-Forwarded-Server: pennydreadfulmagic.com\nConnection: Keep-Alive"}}
{"actor":{"display_login":"stale"}}