Open vorpal-buildbot opened 1 year ago
Exceeded slow_query limit (0.6 > 0.5) in mysql: ```
SELECT
p.id,
LOWER(IFNULL(IFNULL(IFNULL(p.name, p.mtgo_username), p.mtggoldfish_username), p.tappedout_username)) AS name,
p.mtgo_username,
p.tappedout_username,
p.mtggoldfish_username,
p.discord_id,
p.elo,
p.locale,
p.banned,
SUM(1) AS num_decks,
SUM(dc.wins) AS wins,
SUM(dc.losses) AS losses,
SUM(dc.draws) AS draws,
SUM(dc.wins - dc.losses) AS record,
SUM(CASE WHEN dc.wins >= 5 AND dc.losses = 0 AND d.source_id IN (SELECT id FROM source WHERE name = 'League') THEN 1 ELSE 0 END) AS perfect_runs,
SUM(CASE WHEN d.finish = 1 THEN 1 ELSE 0 END) AS tournament_wins,
SUM(CASE WHEN d.finish <= 8 THEN 1 ELSE 0 END) AS tournament_top8s,
IFNULL(ROUND((SUM(dc.wins) / NULLIF(SUM(dc.wins + dc.losses), 0)) * 100, 1), '') AS win_percent,
SUM(DISTINCT CASE WHEN d.competition_id IS NOT NULL THEN 1 ELSE 0 END) AS num_competitions
FROM
person AS p
LEFT JOIN
deck AS d ON d.person_id = p.id
LEFT JOIN
deck_cache AS dc ON d.id = dc.deck_id
WHERE
(p.mtgo_username IS NOT NULL) AND (TRUE)
GROUP BY
p.id
ORDER BY
num_decks DESC, p.name
```
[]
(slow_query, 0.6, mysql)
Reported on decksite by mysql-perf
Location Hash: 2beac13637141d25e8f06e5a880a357565d19f81
Labels: decksite
[]
(slow_query, 0.6, mysql)Reported on decksite by mysql-perf
Location Hash: 2beac13637141d25e8f06e5a880a357565d19f81
Request Data
``` Request Method: GET Path: /matchups/?season_id=29&hero_archetype_id=383&hero_person_id=&hero_card=&enemy_archetype_id=&enemy_person_id=&enemy_card=Orim%27s+Chant Cookies: ImmutableMultiDict([('views', '2586'), ('hide_intro', 'True'), ('page_size', '20'), ('session', '.eJx1UcluwjAU_BefU5TVSbhReuhCCgKVpVUVWYkTTByb2g4NIP69L0g0h6rHecvMvHlnlO6pqomgwqChUQ21EMlrJtCwIFwDymnNapn3mOlMqjxlUEKe49muH-IgjrBrx2Hson6Cy4xwClNU3L0toPH_ChNp2TCe3yxwWZY076xpKa5SkW37FqpNKdNGUyVI3TFrkilmpAIKSRqzdVNtiOk6PDuQiVluno_Gwatx9To7LtuqqLxi5D3O-3kjKwrHnhHJMqr1DaOt_d2eXtokCw_C7DbJqeHNtJrmajYl606PtnumqE4J5ObgyPeCENvhIHJiF2Pc97sose2DfwspWkBp-yuyWJukXD0tysPcqQITJGNRP3xNRhKHQf4OIhDkHq75gOjgQaw4Qu0alB7sJDDfEPq00JU0NcduAd1ToqhCFwv9ydAQVVIwLRrOLz_Id6cd.ZHzH2w.8W8n4lXRpyAx8WBR0zcpnuWdAoU'), ('deck_id', '215703')]) Endpoint: matchups View Args: {} Person: 313024765986209792 Referrer: https://pennydreadfulmagic.com/matchups/?season_id=29&hero_archetype_id=383&hero_person_id=&hero_card=&enemy_archetype_id=&enemy_person_id=&enemy_card=Scarab+Feast Request Data: {} Host: pennydreadfulmagic.com Connection: Keep-Alive Accept-Encoding: gzip X-Forwarded-For: 45.85.144.68 Cf-Ray: 7d21d9148f67801d-IAD X-Forwarded-Proto: https Cf-Visitor: {"scheme":"https"} Priority: u=1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Dnt: 1 Referer: https://pennydreadfulmagic.com/matchups/?season_id=29&hero_archetype_id=383&hero_person_id=&hero_card=&enemy_archetype_id=&enemy_person_id=&enemy_card=Scarab+Feast Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 Sec-Gpc: 1 Cookie: views=2586; hide_intro=True; page_size=20; session=.eJx1UcluwjAU_BefU5TVSbhReuhCCgKVpVUVWYkTTByb2g4NIP69L0g0h6rHecvMvHlnlO6pqomgwqChUQ21EMlrJtCwIFwDymnNapn3mOlMqjxlUEKe49muH-IgjrBrx2Hson6Cy4xwClNU3L0toPH_ChNp2TCe3yxwWZY076xpKa5SkW37FqpNKdNGUyVI3TFrkilmpAIKSRqzdVNtiOk6PDuQiVluno_Gwatx9To7LtuqqLxi5D3O-3kjKwrHnhHJMqr1DaOt_d2eXtokCw_C7DbJqeHNtJrmajYl606PtnumqE4J5ObgyPeCENvhIHJiF2Pc97sose2DfwspWkBp-yuyWJukXD0tysPcqQITJGNRP3xNRhKHQf4OIhDkHq75gOjgQaw4Qu0alB7sJDDfEPq00JU0NcduAd1ToqhCFwv9ydAQVVIwLRrOLz_Id6cd.ZHzH2w.8W8n4lXRpyAx8WBR0zcpnuWdAoU; deck_id=215703 Cdn-Loop: cloudflare Cf-Connecting-Ip: 45.85.144.68 Cf-Ipcountry: US ```