{"action":"opened","issue":{"url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15108","repository_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports","labels_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15108/labels{/name}","comments_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15108/comments","events_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/15108/events","html_url":"https://github.com/PennyDreadfulMTG/perf-reports/issues/15108","id":310523152,"number":15108,"title":"Exceeded slow_query limit (75.0 > 60) in mysql: ","user":{"login":"vorpal-buildbot","id":23072004,"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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-02T15:54:37Z","updated_at":"2018-04-02T15:54:37Z","closed_at":null,"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) = 407 -- 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, 75.0, mysql)\n\nReported on mysql by perf\n--------------------------------------------------------------------------------\nRequest Method: GET\nPath: /people/407/?\nCookies: {}\nEndpoint: person\nView Args: {'person_id': '407'}\nPerson: logged_out\nReferrer: None\nRequest Data: {}\nHost: pennydreadfulmagic.com\nAccept-Encoding: gzip\nCf-Ipcountry: FR\nX-Forwarded-For: 54.36.149.104, 141.101.69.215\nCf-Ray: 405477b3ad68a875-CDG\nX-Forwarded-Proto: https\nCf-Visitor: {\"scheme\":\"https\"}\nUser-Agent: Mozilla/5.0 (compatible; AhrefsBot/5.2; +http://ahrefs.com/robot/)\nAccept: */*\nCf-Connecting-Ip: 54.36.149.104\nX-Forwarded-Host: pennydreadfulmagic.com\nX-Forwarded-Server: pennydreadfulmagic.com\nConnection: Keep-Alive"}}
{"actor":{"display_login":"vorpal-buildbot"}}