{"action":"opened","issue":{"url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/37515","repository_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports","labels_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/37515/labels{/name}","comments_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/37515/comments","events_url":"https://api.github.com/repos/PennyDreadfulMTG/perf-reports/issues/37515/events","html_url":"https://github.com/PennyDreadfulMTG/perf-reports/issues/37515","id":360352845,"node_id":"MDU6SXNzdWUzNjAzNTI4NDU=","number":37515,"title":"Exceeded slow_query limit (3.1 > 3.0) 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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-14T15:30:38Z","updated_at":"2018-09-14T15:30:38Z","closed_at":null,"author_association":"NONE","body":"        SELECT\n            d.id,\n            SUM(CASE WHEN dm.games > odm.games THEN 1 ELSE 0 END) AS opp_wins,\n            SUM(CASE WHEN dm.games < odm.games THEN 1 ELSE 0 END) AS opp_losses,\n            SUM(CASE WHEN dm.games = odm.games THEN 1 ELSE 0 END) AS opp_draws,\n            ROUND(SUM(CASE WHEN dm.games > odm.games THEN 1 ELSE 0 END) / NULLIF((SUM(CASE WHEN dm.games <> odm.games THEN 1 ELSE 0 END)), 0), 2) * 100 AS omw,\n            GROUP_CONCAT(m.elimination) AS elim\n        FROM\n            deck AS d\n        INNER JOIN\n            deck_match AS my_dm ON my_dm.deck_id = d.id\n        LEFT JOIN\n            deck_match AS my_odm ON my_odm.match_id = my_dm.match_id AND my_odm.deck_id <> d.id\n        INNER JOIN\n            deck AS od ON od.id = my_odm.deck_id\n        INNER JOIN\n            deck_match AS dm ON dm.deck_id = od.id\n        LEFT JOIN\n            deck_match AS odm ON odm.match_id = dm.match_id AND odm.deck_id <> dm.deck_id\n        INNER JOIN\n            `match` AS m ON m.id = dm.match_id\n        WHERE\n            TRUE\n        GROUP BY\n            d.id\n    ```\n\n```[]``` (slow_query, 3.1, mysql)\n\nReported on decksite by mysql-perf"}}
{"actor":{"display_login":"vorpal-buildbot"}}