PennyDreadfulMTG / perf-reports

2 stars 7 forks source link

Exceeded slow_query limit (2.6 > 1.0) in mysql: ``` #60977

Open vorpal-buildbot opened 1 year ago

vorpal-buildbot commented 1 year ago
    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Lingering Souls', 'Akiri, Fearless Voyager', 'Spell Pierce', 'Flame Rift', 'Augur of Skulls', 'Teneb, the Harvester', 'Discovery // Dispersal', 'Sylvan Primordial', 'Kitchen Imp', 'Radiant Grove', 'Cabal Initiate', 'Surge of Salvation', 'Nimble Larcenist', 'Mindcrank', 'Geyadrone Dihada', 'Ethersworn Sphinx', 'Blight Mamba', 'Sphinx''s Herald', 'Mazemind Tome', 'Obscura Charm', 'Sigil of the Empty Throne', 'Fruit of Tizerus', 'Dispatch', 'Tectonic Edge', 'Steel Overseer', 'Consume the Meek', 'Smallpox', 'Grafted Butcher', 'Esper Charm', 'Gutterbones', 'Drowner of Hope', 'Frontier Bivouac', 'Seal of Removal', 'Ashenmoor Liege', 'Ral, Storm Conduit', 'Blessed Alliance', 'Hero of Bladehold', 'Drowned Rusalka', 'Wayward Guide-Beast', 'Temple of Mystery', 'Nine Lives', 'Skyclave Shade', 'Wrench Mind', 'Vraan, Executioner Thane', 'Haunted Fengraf', 'Talisman of Unity', 'Steppe Lynx', 'Varolz, the Scar-Striped', 'Thrun, Breaker of Silence', 'Terminus', 'Ghostly Pilferer', 'Weathered Wayfarer', 'Gnat Miser', 'Cryptic Caves', 'Nature''s Lore', 'Neutralize', 'Control Magic', 'Selesnya Guildgate', 'Dimir Guildgate', 'Minor Misstep', 'Grolnok, the Omnivore', 'Haunted Dead', 'Change the Equation', 'Into the Story', 'Concealing Curtains', 'Seal of Cleansing', 'Think Twice', 'Baneful Omen', 'Big Game Hunter', 'Blightning', 'Morsel Theft', 'Honor of the Pure', 'Boros Guildgate', 'Hour of Promise', 'Teshar, Ancestor''s Apostle', 'Commit // Memory', 'Annex Sentry', 'Invasion of Regatha', 'Prosperous Thief', 'Demonic Bargain', 'Smuggler''s Copter', 'Wizard''s Retort', 'Snow-Covered Plains', 'Swooping Lookout', 'Herd Baloth', 'Pull from Tomorrow', 'Experimental Synthesizer', 'Seismic Assault', 'Dokuchi Silencer', 'Kaito, Dancing Shadow', 'Nissa, Steward of Elements', 'Dragonskull Summit', 'Vryn Wingmare', 'Monument to Perfection', 'Invasion of Azgol', 'Seething Song', 'Radha, Heart of Keld', 'Briarbridge Tracker', 'Elvish Visionary', 'Elvish Rejuvenator', 'Knight of New Alara', 'Nimble Trapfinder', 'Chaotic Transformation', 'Arguel''s Blood Fast', 'Loran''s Escape', 'Undying Evil', 'Racers'' Ring', 'Witching Well', 'Embodiment of Fury', 'Faeburrow Elder', 'Ossification', 'Akroan Crusader', 'Merrow Reejerey', 'Raze to the Ground', 'Cataclysmic Gearhulk', 'Simian Sling', 'Unholy Heat', 'Stoic Rebuttal', 'Thornwood Falls', 'Tidehollow Sculler', 'Enchantress''s Presence', 'Kambal, Consul of Allocation', 'Knight of the White Orchid', 'Celestial Colonnade', 'Sheoldred''s Edict', 'Glacial Fortress', 'Tectonic Giant', 'Self-Assembler', 'Leonin Warleader', 'Victim of Night', 'Hyena Umbra', 'Lonely Sandbar', 'Vampiric Rites', 'Gideon''s Intervention', 'Nevermore', 'Dire-Strain Rampage', 'Boreal Shelf', 'Pain Seer', 'Glorybringer', 'Commence the Endgame', 'Dead of Winter', 'Genesis Ultimatum', 'Bogardan Hellkite', 'Barbarian Ring', 'Dead Weight', 'Strike It Rich', 'Zurgo Bellstriker', 'Silumgar''s Scorn', 'Hope of Ghirapur', 'Kruphix''s Insight', 'Voidwing Hybrid', 'Vraska''s Contempt', 'Harmonize', 'Sculpted Perfection', 'Dark-Dweller Oracle', 'Ancient Grudge', 'Eiganjo Castle', 'Goblin Electromancer', 'Reveillark', 'Always Watching', 'Guile', 'Bogbrew Witch', 'Basking Rootwalla', 'Tendo Ice Bridge', 'Experimental Augury', 'Stupor', 'Champion of Wits', 'Ally Encampment', 'Stir the Grave', 'Dovin''s Acuity', 'Glissa Sunseeker', 'Frost Titan', 'Cabal Ritual', 'Vampire Lacerator', 'Vapor Snag', 'Crawling Barrens', 'Icehide Golem', 'Vampire Neonate', 'Nimbus Maze', 'Aetherworks Marvel', 'Graaz, Unstoppable Juggernaut', 'Bolas''s Citadel', 'The Scorpion God', 'Consecrate // Consume', 'Invigorate', 'Thrill of Possibility', 'Carven Caryatid', 'Sea Gate Wreckage', 'Obliterate', 'Forked Bolt', 'Needle Spires', 'Stern Dismissal', 'Orzhov Basilica', 'Collected Conjuring', 'Xerex Strobe-Knight', 'Madcap Experiment', 'Fetid Heath', 'Kozilek''s Predator', 'Ovika, Enigma Goliath', 'Marauding Blight-Priest', 'Sylvan Caryatid', 'Mulldrifter', 'Game Trail', 'Circuit Mender', 'Touch the Spirit Realm', 'Thornglint Bridge', 'Tilling Treefolk', 'Reckless Rage', 'Invasion of Zendikar', 'Midnight Clock', 'Executioner''s Capsule', 'Nezumi Shortfang', 'Vigor', 'Farhaven Elf', 'Dross Skullbomb', 'Bring the Ending', 'Armored Scrapgorger', 'Greater Gargadon', 'Swiftfoot Boots', 'Memory Lapse', 'Izzet Charm', 'The Underworld Cookbook', 'Glimmerpost', 'Teleportation Circle', 'Fyndhorn Elves', 'Night of Souls'' Betrayal', 'Hypnotic Specter', 'Kemba, Kha Regent', 'Talisman of Impulse', 'Kappa Tech-Wrecker', 'Talisman of Curiosity', 'Ral, Izzet Viceroy', 'Pariah', 'Akoum Hellhound', 'Canyon Slough', 'Expedition Envoy', 'Incinerate', 'Kher Keep', 'Yavimaya Coast', 'Deprive', 'Gods Willing', 'Skarrg, the Rage Pits', 'Simic Guildgate', 'Lavaclaw Reaches', 'Farseek', 'Silumgar, the Drifting Death', 'Mouth of Ronom', 'Restoration Angel', 'Fade from Memory', 'Terramorphic Expanse', 'Invasion of Ergamon', 'Sterling Grove', 'Duneblast', 'Scuttling Doom Engine', 'Llanowar Augur', 'Rootbound Crag', 'Consult the Necrosages', 'Jungle Hollow', 'Shardless Agent', 'Grave Titan', 'Wanderwine Hub', 'Oni-Cult Anvil', 'Invasion of Amonkhet', 'Phyrexian Unlife', 'Tempest Djinn', 'Electrolyze', 'Kitesail Freebooter', 'Darksteel Colossus', 'Springleaf Drum', 'Rampant Growth', 'Repudiate // Replicate', 'Fetid Pools', 'Ancient Stirrings', 'Kemba, Kha Enduring', 'Scarab Feast', 'Slagstorm', 'Erebos''s Intervention', 'Mina and Denn, Wildborn', 'Kefnet the Mindful', 'Hanweir Garrison', 'Polukranos, World Eater', 'Assemble the Legion', 'Time of Need', 'Delay', 'Gruul Guildgate', 'Gaea''s Will', 'Spoils of the Vault', 'Mephidross Vampire', 'Ogre Slumlord', 'Argentum Armor', 'Raven''s Crime', 'Feed the Swarm', 'Ghostfire Blade', 'Runed Halo', 'Gadrak, the Crown-Scourge', 'Worthy Knight', 'Mistblade Shinobi', 'Terminate', 'Inscribed Tablet', 'Day of Judgment', 'Crack the Earth', 'Scrabbling Claws', 'Slaughter Pact', 'Krosan Grip', 'Frost Marsh', 'Coiling Oracle', 'Stinkdrinker Bandit', 'Viscera Seer', 'Nezumi Informant', 'Fleecemane Lion', 'Abundant Growth', 'Burning Sun''s Fury', 'Psychatog', 'Stromkirk Noble', 'Stinkweed Imp', 'Pyrite Spellbomb', 'Commune with Spirits', 'Obscura Storefront', 'Become Immense', 'Pardic Miner', 'Porphyry Nodes', 'Golgari Guildgate', 'Wall of Omens', 'Temple of Malady', 'Mirage Mirror', 'Demolition Field', 'Changeling Outcast', 'Izzet Guildgate', 'Forbid', 'Grand Abolisher', 'Drake Haven', 'Hall of Oracles', 'Kazandu Blademaster', 'Rix Maadi Reveler', 'Halimar Excavator', 'Goblin Dark-Dwellers', 'Agonizing Remorse', 'Altar of the Brood', 'Mirror Entity', 'Mistcutter Hydra', 'Gravelgill Duo', 'Mindsplice Apparatus', 'Abiding Grace', 'Calciform Pools', 'Combat Thresher', 'Blighted Agent', 'Oona''s Prowler', 'Voyaging Satyr', 'Kumano Faces Kakkazan', 'Hypergenesis', 'Gryff''s Boon', 'Kogla, the Titan Ape', 'Hieroglyphic Illumination', 'Sprite Dragon', 'Third Path Iconoclast', 'Fiery Justice', 'Solitary Confinement', 'Temple of Deceit', 'Leonin Relic-Warder', 'Archangel Avacyn', 'Plated Geopede', 'Launch the Fleet', 'Lightning Strike', 'Quiet Speculation', 'Silundi Vision', 'Orzhov Charm', 'Grenzo, Dungeon Warden', 'Night Market Lookout', 'Shizo, Death''s Storehouse', 'Rift Bolt', 'Black Sun''s Zenith', 'Illuminator Virtuoso', 'Devout Chaplain', 'Dryad Militant', 'Wolfbriar Elemental', 'Ad Nauseam', 'Vexing Shusher', 'Benthic Biomancer', 'Summary Dismissal', 'Cloudpost', 'Tangled Islet', 'Oblivion Ring', 'Balustrade Spy', 'Winds of Abandon', 'Archangel of Wrath', 'Death Cloud', 'Ivy Lane Denizen', 'Botanical Plaza', 'Nomad Outpost', 'Ghostly Flicker', 'Sarkhan the Masterless', 'Fracturing Gust', 'Gloomshrieker', 'Yavimaya Iconoclast', 'Glistener Elf', 'Blood Artist', 'Forgotten Cave', 'Phyrexian Revoker', 'Ruric Thar, the Unbowed', 'Toolcraft Exemplar', 'Burst Lightning', 'Throat Slitter', 'Glaring Aegis', 'Loxodon Smiter', 'Might of Old Krosa', 'Artistic Refusal', 'Spectral Shift', 'Alms of the Vein', 'Fallaji Archaeologist', 'Flametongue Kavu', 'Phantasmagorian', 'Bump in the Night', 'Anger of the Gods', 'Scour All Possibilities', 'Sorin, Vengeful Bloodlord', 'Invisible Stalker', 'Undercity Informer', 'Platinum Angel', 'Thaumatic Compass', 'Grimoire Thief', 'Fire Prophecy', 'Titania, Protector of Argoth', 'Rust Goliath', 'Approach of the Second Sun', 'Pharika''s Cure', 'Rabbit Battery', 'Prophetic Prism', 'Sylvan Advocate', 'Ghitu Lavarunner', 'Pack Rat', 'Zephyr Singer', 'Tribute to Hunger', 'Voldaren Pariah', 'Wasteland Strangler', 'Azami, Lady of Scrolls', 'Mistvault Bridge', 'Sinew Sliver', 'Froghemoth', 'Corrupted Crossroads', 'Angrath, the Flame-Chained', 'Vampire Nighthawk', 'Ulvenwald Hydra', 'Lose Focus', 'Soul Warden', 'Sylvan Library', 'Kunoros, Hound of Athreos', 'Cut Down', 'Fact or Fiction', 'Bitter Reunion', 'Bituminous Blast', 'Progenitor Exarch', 'Putrid Imp', 'Shard Volley', 'Renewed Faith', 'Ivory Tower', 'Reflector Mage', 'Satyr Hoplite', 'Tangle', 'Arcane Sanctum', 'Sleight of Hand', 'Curiosity', 'Tocasia''s Dig Site', 'Endless Horizons', 'Hinterland Harbor', 'Soltari Priest', 'Cauldron Familiar', 'Angel of Grace', 'Fearless Fledgling', 'Azorius Charm', 'Nameless Inversion', 'Gnawing Vermin', 'Rise and Shine', 'All That Glitters', 'Yorion, Sky Nomad', 'Llanowar Mentor', 'Timeless Witness', 'Malcator, Purity Overseer', 'Chittering Rats', 'Wonder', 'Blanchwood Prowler', 'Floriferous Vinewall', 'Secluded Courtyard', 'Sweltering Suns', 'Silent Gravestone', 'Jace Beleren', 'Riveteers Charm', 'Supreme Will', 'Eidolon of Blossoms', 'Cathedral of War', 'Vraska''s Fall', 'Xenagos, the Reveler', 'Eternal Dragon', 'Wild Cantor', 'Herald of the Pantheon', 'Acclaimed Contender', 'Bala Ged Recovery', 'Territorial Kavu', 'Rune Snag', 'Doom Blade', 'Glint-Sleeve Siphoner', 'Explore', 'Altered Ego', 'Pilfer', 'Astral Drift', 'Ichorclaw Myr', 'Etherium Sculptor', 'Thawing Glaciers', 'Frenetic Sliver', 'Succumb to Temptation', 'Acidic Slime', 'Natural State', 'The Seedcore', 'Nimble Obstructionist', 'Sever the Bloodline', 'Evacuation', 'Rites of Spring', 'Wooded Bastion', 'Murmuring Bosk', 'Chandra, Flamecaller', 'Knight of Glory', 'Engulf the Shore', 'Cartel Aristocrat', 'Contaminated Aquifer', 'Maze''s End', 'Rakdos''s Return', 'Shape Anew', 'Peek', 'Conflagrate', 'Hooting Mandrills', 'Vindicate', 'Elite Inquisitor', 'Disenchant', 'Ishkanah, Grafwidow', 'Ramunap Excavator', 'Diffusion Sliver', 'Raffine''s Informant', 'Gateway Plaza', 'Tribal Flames', 'Cultivate', 'Thraben Inspector', 'Dismal Backwater', 'Ornithopter', 'Azorius Guildgate', 'Giant Killer', 'Maelstrom Pulse', 'Banishing Slash', 'Augur of Bolas', 'Weapons Trainer', 'Saffi Eriksdotter', 'Attune with Aether', 'General Ferrous Rokiric', 'Port Town', 'Battlefield Forge', 'Seal of Fire', 'It That Betrays', 'Bloodline Keeper', 'Myr Superion', 'Blade Splicer', 'Brave the Elements', 'Anafenza, the Foremost', 'Upheaval', 'Tocatli Honor Guard', 'Serra Ascendant', 'Inevitable Betrayal', 'Shivan Reef', 'Sign in Blood', 'Volt Charge', 'Knight Exemplar', 'Careful Cultivation', 'Siege Rhino', 'Endbringer', 'Phantasmal Image', 'Dream Trawler', 'Dregscape Zombie', 'Earthquake', 'Terastodon', 'Thassa''s Intervention', 'Memoricide', 'Unstable Mutation', 'Nullpriest of Oblivion', 'Drown in Ichor', 'Hesitation', 'Doomskar', 'Bloodchief''s Thirst', 'Ancestral Blade', 'Dark Ritual', 'Norn''s Inquisitor', 'Festering Newt', 'Commune with the Gods', 'Tanglepool Bridge', 'Tresserhorn Sinks', 'Rise // Fall', 'Fumigate', 'Search for Tomorrow', 'Hornet Queen', 'Jace, Architect of Thought', 'Gather the Pack', 'Temple of Triumph', 'Meeting of Minds', 'Lodestone Golem', 'Jwari Shapeshifter', 'Malakir Rebirth', 'Call to the Grave', 'Rain of Tears', 'Myth Realized', 'Grand Architect', 'Oust', 'Mulch', 'The Celestus', 'Lochmere Serpent', 'Rakdos Cackler', 'Seal of Primordium', 'Search for Azcanta', 'Far // Away', 'Urza''s Factory', 'Viashino Pyromancer', 'Rocco, Cabaretti Caterer', 'Temple of Abandon', 'Realm Razer', 'Into the Roil', 'Cold-Eyed Selkie', 'Vadrik, Astral Archmage', 'Ayara, First of Locthwain', 'Epic Experiment', 'Phalanx Leader', 'Marit Lage''s Slumber', 'Frantic Search', 'Invasion of Mercadia', 'General''s Enforcer', 'Ashen Rider', 'Sol Talisman', 'Torens, Fist of the Angels', 'Heliod''s Intervention', 'Mausoleum Secrets', 'Tribute to Horobi', 'Mistveil Plains', 'Dying to Serve', 'Dimensional Infiltrator', 'Reinforced Ronin', 'Deafening Clarion', 'Aetherspouts', 'Karn''s Bastion', 'Zuran Orb', 'Temple of Enlightenment', 'Apostle''s Blessing', 'Pelakka Predation', 'Frantic Inventory', 'Early Harvest', 'Timeless Dragon', 'Gallia of the Endless Dance', 'Midnight Guard', 'Syphon Life', 'Valakut Exploration', 'Invasion of New Capenna', 'Angel of Condemnation', 'Impulse', 'Martyr of Sands', 'Sunlit Marsh', 'Favored Hoplite', 'Geomancer''s Gambit', 'Huatli, Radiant Champion', 'Choked Estuary', 'Temple of Plenty', 'Gruul Spellbreaker', 'Elemental Masterpiece', 'Quest for the Holy Relic', 'Tomik, Distinguished Advokist', 'Scrapheap Scrounger', 'Circular Logic', 'Pieces of the Puzzle', 'Metalwork Colossus', 'Nissa, Worldwaker', 'Moon-Circuit Hacker', 'Clifftop Retreat', 'Double Vision', 'Graven Cairns', 'Thrash // Threat', 'Dreadhorde Butcher', 'Merciless Eviction', 'Greater Tanuki', 'Opulent Palace', 'Ammit Eternal', 'Evangel of Synthesis', 'Arch of Orazca', 'Hero of Oxid Ridge', 'Sandsteppe Citadel', 'Tolarian Terror', 'Figure of Destiny', 'Isolated Chapel', 'Kuldotha Forgemaster', 'Bilious Skulldweller', 'Ephara, God of the Polis', 'Kitchen Finks', 'Mothdust Changeling', 'Curse of Exhaustion', 'Ardent Recruit', 'Bubbling Muck', 'Gruul Turf', 'Divinity of Pride', 'Venser, the Sojourner', 'Divest', 'Destroy Evil', 'Murderous Redcap', 'Remorseful Cleric', 'Drossforge Bridge', 'Sulfur Falls', 'Fiery Temper', 'Founding the Third Path', 'Vivid Grove', 'Wood Elves', 'Dakkon, Shadow Slayer', 'Bident of Thassa', 'Research // Development', 'Master of Etherium', 'Graven Lore', 'Ancient Ziggurat', 'Drowned Catacomb', 'Cliffside Lookout', 'Tree of Tales', 'Jukai Naturalist', 'Kalastria Healer', 'Rule of Law', 'Mystic Monastery', 'Venerable Knight', 'Network Disruptor', 'Sudden Edict', 'Hedron Archive', 'Gird for Battle', 'Woe Strider', 'Price of Progress', 'Barter in Blood', 'Bone Shards', 'Elderscale Wurm', 'Melira, the Living Cure', 'Midnight Reaper', 'Aetherblade Agent', 'Chief of the Foundry', 'Orcish Lumberjack', 'Fight as One', 'Woodland Cemetery', 'Heartless Act', 'Unsubstantiate', 'Commune with Nature', 'Phyrexian Dreadnought', 'Tide Shaper', 'Drainpipe Vermin', 'Aetherling', 'Eternal Scourge', 'Mycosynth Golem', 'Kjeldoran Outpost', 'Chandra, Fire Artisan', 'Benevolent Bodyguard', 'Hada Freeblade', 'Stirring Wildwood', 'Canopy Vista', 'Open the Gates', 'World Shaper', 'Jor Kadeen, First Goldwarden', 'Jwari Disruption', 'Fertile Ground', 'Chief Engineer', 'Sin Collector', 'Sorin, Grim Nemesis', 'Brain Freeze', 'Raging Ravine', 'Karumonix, the Rat King', 'Moorland Haunt', 'Folio of Fancies', 'Lay Down Arms', 'Whispersilk Cloak', 'Stubborn Denial', 'Nezahal, Primal Tide', 'Timely Reinforcements', 'Expedite', 'Hideous End', 'Tezzeret the Schemer', 'Zur''s Weirding', 'Vault Skirge', 'Gideon Jura', 'Utter End', 'Rakdos Charm', 'Master of Death', 'Sunstrike Legionnaire', 'Sigrid, God-Favored', 'Snow-Covered Swamp', 'Student of Warfare', 'Ambush Viper', 'Faith''s Reward', 'Koth, Fire of Resistance', 'Oona, Queen of the Fae', 'Secluded Steppe', 'Caves of Koilos', 'Vivid Crag', 'Mind''s Desire', 'Fierce Empath', 'Dead // Gone', 'Lurrus of the Dream-Den', 'Vampire Hexmage', 'Mystical Teachings', 'Unburial Rites', 'Felidar Retreat', 'Triumphant Adventurer', 'Hostage Taker', 'Gyruda, Doom of Depths', 'Arcum''s Astrolabe', 'Scab-Clan Berserker', 'Leonin Lightscribe', 'Bontu''s Last Reckoning', 'Nether Spirit', 'Forging the Anchor', 'Ajani''s Pridemate', 'Disrupting Shoal', 'Shrapnel Blast', 'Stoke the Flames', 'Graveborn Muse', 'Benalish Marshal', 'Ashnod, Flesh Mechanist', 'Idyllic Tutor', 'Wrenn''s Resolve', 'Buried Ruin', 'Sarkhan, the Dragonspeaker', 'Elixir of Immortality', 'Glamerdye', 'Exclude', 'Venser, Shaper Savant', 'Hero''s Downfall', 'Tezzeret''s Gambit', 'The Flame of Keld', 'Garruk Wildspeaker', 'Basilisk Collar', 'River of Tears', 'Ancient Amphitheater', 'Gift of Estates', 'Brineborn Cutthroat', 'Artisan of Kozilek', 'Venser, Corpse Puppet', 'Turnabout', 'Demigod of Revenge', 'Coalition Relic', 'Go for the Throat', 'Phyrexian Censor', 'Kaya, Ghost Assassin', 'Kiora Bests the Sea God', 'Makeshift Mannequin', 'Twinshot Sniper', 'Altar of the Goyf', 'Tranquil Thicket', 'Protect the Negotiators', 'Heliod''s Pilgrim', 'Stave Off', 'Burning of Xinye', 'Sunpetal Grove', 'Marble Diamond', 'Declaration in Stone', 'Nightscape Familiar', 'Heap Doll', 'Satyr Wayfinder', 'Quarantine Field', 'Spell Burst', 'Darksteel Citadel', 'Mishra''s Factory', 'Yasharn, Implacable Earth', 'Pulse of the Fields', 'Sphere of Safety', 'Cabal Therapist', 'Kessig Wolf Run', 'Dreams of Steel and Oil', 'Dread Wanderer', 'Summer Bloom', 'Anafenza, Kin-Tree Spirit', 'Dissipate', 'Elspeth Conquers Death', 'Bloodchief Ascension', 'Waking the Trolls', 'Predatory Sliver', 'Lost Legacy', 'Unmarked Grave', 'Chain Lightning', 'Vivid Marsh', 'Diabolic Tutor', 'Vedalken Heretic', 'Ponder', 'Magister of Worth', 'Return to the Ranks', 'Riveteers Overlook', 'Goblin Charbelcher', 'Dakmor Salvage', 'Slogurk, the Overslime', 'Cleansing Wildfire', 'Corpse Cur', 'Westvale Abbey', 'Mnemonic Sphere', 'Golgari Rot Farm', 'Inspiring Veteran', 'Urban Evolution', 'Decree of Justice', 'Kor Skyfisher', 'Cathartic Reunion', 'Mindslaver', 'Soul''s Attendant', 'Pyroclasm', 'Blightbelly Rat', 'Dimir Aqueduct', 'Invoke Calamity', 'Herd Migration', 'Settle the Wreckage', 'Angel of Despair', 'Shriekmaw', 'Pyretic Ritual', 'Battle of Wits', 'Phoenix Chick', 'Glimpse of Tomorrow', 'Sylvan Scrying', 'Barbed Sextant', 'Bubbling Cauldron', 'Bloodbraid Elf', 'Necrogen Spellbomb', 'Rally the Ancestors', 'Inkwell Leviathan', 'Sin Prodder', 'Tyrant''s Choice', 'Venerated Loxodon', 'Woodfall Primus', 'Elves of Deep Shadow', 'Izzet Boilerworks', 'Sculpting Steel', 'Aether Spellbomb', 'Harrow', 'Crux of Fate', 'Duress', 'Audacity', 'Rakdos Guildgate', 'Call of the Death-Dweller', 'Easy Prey', 'Astral Slide', 'Myr Battlesphere', 'Resurgent Belief', 'Myr Kinsmith', 'Archpriest of Shadows', 'Boon-Bringer Valkyrie', 'Obstinate Baloth', 'Defiant Strike', 'Flourishing Fox', 'Priest of the Haunted Edge', 'Liquimetal Torque', 'Obzedat, Ghost Council', 'Lightning Spear', 'Assault // Battery', 'Eldrazi Skyspawner', 'Worship', 'Odds // Ends', 'Shatter the Sky', 'Aquitect''s Will', 'Blazing Rootwalla', 'Spatial Contortion', 'Throne of the God-Pharaoh', 'Merfolk Mistbinder', 'Mana Leak', 'Repeal', 'Seeker of the Way', 'Deep Forest Hermit', 'Yahenni''s Expertise', 'Goldmire Bridge', 'Wilt', 'Faerie Vandal', 'Silverblade Paladin', 'Eerie Ultimatum', 'Anguished Unmaking', 'Joint Exploration', 'Misery Charm', 'Voltage Surge', 'Distorted Curiosity', 'Wrath of God', 'Snow-Covered Mountain', 'Dauntless Bodyguard', 'Deep Analysis', 'Surrak, the Hunt Caller', 'Evolving Wilds', 'Ranger of Eos', 'Fae of Wishes', 'Devil''s Play', 'Groundswell', 'Teferi, Mage of Zhalfir', 'Sea-Dasher Octopus', 'Faerie Miscreant', 'Godo, Bandit Warlord', 'Ghost Quarter', 'Cloudshredder Sliver', 'Simian Spirit Guide', 'Servo Exhibition', 'Sanctum of Ugin', 'Archon of Sun''s Grace', 'Delver of Secrets', 'Treasure Cruise', 'Reckless Charge', 'Bloodvial Purveyor', 'Arbor Elf', 'Labyrinth of Skophos', 'Triskelion', 'Thragtusk', 'Oracle of Mul Daya', 'Smother', 'Murderous Cut', 'Goreclaw, Terror of Qal Sisma', 'Tear Asunder', 'Oracle of Tragedy', 'Faerie Conclave', 'White Sun''s Zenith', 'Precursor Golem', 'Angel of Serenity', 'Otherworldly Journey', 'Sire of Insanity', 'Stasis Snare', 'Chandra, Pyromaster', 'Mishra''s Self-Replicator', 'Pore Over the Pages', 'Lagrella, the Magpie', 'Kami of False Hope', 'Orzhov Guildgate', 'Leonin Arbiter', 'Flooded Grove', 'Goblin Bombardment', 'Doomed Traveler', 'Lotus Cobra', 'Tooth and Nail', 'Kabira Takedown', 'Ensoul Artifact', 'Reckoner''s Bargain', 'Rustvale Bridge', 'Nephalia Drownyard', 'Gift of Immortality', 'Dragon''s Hoard', 'Solemnity', 'Blood on the Snow', 'Trace of Abundance', 'Squee, Goblin Nabob', 'Shimmer Dragon', 'Malicious Malfunction', 'Luminarch Ascension', 'Zombie Infestation', 'Hard Evidence', 'Caldera Hellion', 'Silverbluff Bridge', 'Mesa Enchantress', 'Sunder Shaman', 'Vindictive Flamestoker', 'Mystifying Maze', 'Arbalest Engineers', 'Sheltered Thicket', 'Angel''s Grace', 'Devious Cover-Up', 'Brainstone', 'Mastermind''s Acquisition', 'Blue Sun''s Zenith', 'Halana and Alena, Partners', 'Patchwork Automaton', 'Yawgmoth''s Bargain', 'Temple of Silence', 'Forsake the Worldly', 'Recurring Nightmare', 'Oona''s Grace', 'Draugr Necromancer', 'Lavinia of the Tenth', 'Increasing Ambition', 'Birds of Paradise', 'Green Sun''s Twilight', 'Detention Sphere', 'Halo Forager', 'Arcbound Ravager', 'Crawling Chorus', 'Arlinn Kord', 'Union of the Third Path', 'Rotting Rats', 'Ulcerate', 'Bloodsoaked Champion', 'Scrapwork Mutt', 'Shrieking Affliction', 'Mikokoro, Center of the Sea', 'Elas il-Kor, Sadistic Pilgrim', 'Argentum Masticore', 'Helm of the Host', 'Sinister Concoction', 'Combat Research', 'Nezumi Graverobber', 'Ondu Inversion', 'Sunscour', 'Duplicant', 'Sacred Peaks', 'Knight of the Reliquary', 'Late to Dinner', 'Corrupted Conviction', 'Moderation', 'Unlucky Witness', 'Raise the Alarm', 'Tainted Indulgence', 'Vault of the Archangel', 'Energy Refractor', 'Smoldering Marsh', 'Cremate', 'Haunted Mire', 'Dusk // Dawn', 'Distended Mindbender', 'Mortuary Mire', 'Stone Rain', 'Fireblade Charger', 'Knowledge Pool', 'King Darien XLVIII', 'Scattered Groves', 'Zof Consumption', 'Second Sunrise', 'Shimmerdrift Vale', 'Sunken Hollow', 'Sultai Charm', 'Squadron Hawk', 'Blackbloom Rogue', 'Valiant Rescuer', 'Hissing Quagmire', 'Sea Gate Oracle', 'Dread Return', 'Gigadrowse', 'Melira, Sylvok Outcast', 'Nekrataal', 'Prologue to Phyresis', 'Ash Zealot', 'Watcher for Tomorrow', 'Tomebound Lich', 'Psychic Possession', 'Mesmeric Fiend', 'Umara Wizard', 'Lantern-Lit Graveyard', 'Condemn', 'Razortide Bridge', 'Open the Armory', 'Negate', 'Empyrial Armor', 'Grave Scrabbler', 'Presence of Gond', 'Orim''s Chant', 'Abundant Harvest', 'Encroaching Wastes', 'Galerider Sliver', 'Tyrant of Discord', 'Destiny Spinner', 'Avacyn''s Pilgrim', 'Sandwurm Convergence', 'Kiora, the Crashing Wave', 'Putrefy', 'Overgrowth', 'Idyllic Beachfront', 'Elvish Hexhunter', 'Verduran Enchantress', 'Tidespout Tyrant', 'Thopter Spy Network', 'Ethereal Armor', 'Chamber Sentry', 'Battle of Frost and Fire', 'Dark Petition', 'Llanowar Elves', 'Liquimetal Coating', 'Possibility Storm', 'Saproling Migration', 'Lotleth Giant', 'Ravenous Squirrel', 'Sins of the Past', 'Pharika''s Libation', 'Aegis of the Gods', 'Check for Traps', 'Genesis Hydra', 'Council''s Judgment', 'Pillar of the Paruns', 'Archaeomancer', 'Yisan, the Wanderer Bard', 'Liliana Vess', 'Dawn of Hope', 'Thundermaw Hellkite', 'Jungle Shrine', 'Forbidden Alchemy', 'Molten Tributary', 'Empyrial Plate', 'Disallow', 'Merfolk Sovereign', 'Narcomoeba', 'Counterflux', 'Silver-Fur Master', 'Rites of Initiation', 'Universal Automaton', 'Kor Firewalker', 'Primal Command', 'Shambling Vent', 'Oath of Kaya', 'Judge''s Familiar', 'Nested Shambler', 'Geothermal Bog', 'Cosmos Elixir', 'Grim Haruspex', 'Consuming Vapors', 'Shinka, the Bloodsoaked Keep', 'Tendrils of Agony', 'Desperate Ritual', 'Spikefield Hazard', 'Sunblade Samurai', 'Wandering Fumarole', 'Cabaretti Courtyard', 'Big Score', 'Falkenrath Pit Fighter', 'Gleeful Demolition', 'The Birth of Meletis', 'Valiant Changeling', 'Angel of Glory''s Rise', 'Children of Korlis', 'Mirran Crusader', 'Vines of Vastwood', 'Lizard Blades', 'Felidar Cub', 'Castigate', 'Maestros Charm', 'Abzan Charm', 'See Beyond', 'Spirit Mantle', 'Gitaxian Probe', 'Out of Time', 'Brokers Hideout', 'Colossal Skyturtle', 'Healer''s Hawk', 'Earthshaker Khenra', 'Dissolve', 'Frostwalk Bastion', 'Voidslime', 'Barren Moor', 'Slagwoods Bridge', 'Jokulhaups', 'Spirited Companion', 'Quicken', 'Rishadan Dockhand', 'Tezzeret, Artifice Master', 'Vessel of Nascency', 'Eldrazi Displacer', 'Revitalize', 'Ayli, Eternal Pilgrim', 'Laboratory Maniac', 'Cloudshift', 'Scrying Sheets', 'Purify the Grave', 'Grand Arbiter Augustin IV', 'Ertai''s Scorn', 'Ignite Memories', 'Viridian Revel', 'Shred Memory', 'Flaying Tendrils', 'Notorious Throng', 'Ground Seal', 'Brave the Sands', 'Stone Haven Outfitter', 'Lazotep Chancellor', 'Unctus, Grand Metatect', 'Woodweaver''s Puzzleknot'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Ondu Inversion', 'Shivan Reef', 'Abundant Growth', 'Circular Logic', 'Combat Thresher', 'Liliana Vess', 'Ally Encampment', 'Razortide Bridge', 'Shrapnel Blast', 'Tranquil Thicket', 'Pillar of the Paruns', 'Orzhov Basilica', 'Thopter Spy Network', 'Elvish Mystic', 'Favored Hoplite', 'Stromkirk Noble', 'Kuldotha Forgemaster', 'Scour All Possibilities', 'Wilt', 'Shimmerdrift Vale', 'Eternal Scourge', 'Tidespout Tyrant', 'Tribute to Horobi', 'Student of Warfare', 'Pain Seer', 'Lazotep Chancellor', 'Springleaf Drum', 'Prologue to Phyresis', 'Smuggler''s Copter', 'Apostle''s Blessing', 'Chamber Sentry', 'Nameless Inversion', 'Basking Rootwalla', 'Xerex Strobe-Knight', 'Peek', 'Vraska''s Contempt', 'Cabal Initiate', 'Barter in Blood', 'Corrupted Conviction', 'Grave Scrabbler', 'Oni-Cult Anvil', 'Consecrate // Consume', 'Assault // Battery', 'Explore', 'Kiora Bests the Sea God', 'Sin Prodder', 'Abundant Harvest', 'Talisman of Unity', 'Blightbelly Rat', 'Huatli, Radiant Champion', 'Sleight of Hand', 'Raffine''s Informant', 'Summer Bloom', 'Sylvan Primordial', 'Barren Moor', 'Woodweaver''s Puzzleknot', 'Midnight Clock', 'Marit Lage''s Slumber', 'Anger of the Gods', 'Geothermal Bog', 'Goblin Bombardment', 'Grand Arbiter Augustin IV', 'Obscura Storefront', 'Frantic Search', 'Primal Command', 'Floriferous Vinewall', 'Go for the Throat', 'Reckoner''s Bargain', 'Viridian Revel', 'Counterflux', 'Kjeldoran Outpost', 'Venser, Corpse Puppet', 'Gideon Jura', 'Ayli, Eternal Pilgrim', 'Choked Estuary', 'Gryff''s Boon', 'Valiant Changeling', 'Bring the Ending', 'Call to the Grave', 'Sinew Sliver', 'Kabira Takedown', 'Figure of Destiny', 'Commune with Spirits', 'Dimir Aqueduct', 'Spell Pierce', 'Moderation', 'Angel of Grace', 'Rally the Ancestors', 'Farhaven Elf', 'Mishra''s Self-Replicator', 'Seal of Primordium', 'Chittering Rats', 'Ghostly Flicker', 'Hornet Queen', 'Stern Dismissal', 'Invasion of Azgol', 'Koth, Fire of Resistance', 'Electrolyze', 'Declaration in Stone', 'Fae of Wishes', 'Psychatog', 'Eldrazi Skyspawner', 'Marauding Blight-Priest', 'Priest of the Haunted Edge', 'Divinity of Pride', 'Renewed Faith', 'Endbringer', 'Gnawing Vermin', 'Gallia of the Endless Dance', 'Lost Legacy', 'Leonin Lightscribe', 'Shard Volley', 'Overgrowth', 'Cliffside Lookout', 'King Darien XLVIII', 'Helm of the Host', 'Green Sun''s Twilight', 'Skyshroud Elf', 'Battle of Frost and Fire', 'Vedalken Heretic', 'Heliod''s Intervention', 'Throat Slitter', 'Curse of Exhaustion', 'Oblivion Ring', 'Tyrant''s Choice', 'Valiant Rescuer', 'Siege Rhino', 'Tocatli Honor Guard', 'Halana and Alena, Partners', 'Orcish Lumberjack', 'Midnight Guard', 'Nezumi Shortfang', 'Blessed Alliance', 'Augur of Bolas', 'Coalition Relic', 'Oust', 'Faerie Vandal', 'Stone Haven Outfitter', 'Mystical Teachings', 'Argentum Masticore', 'Shambling Vent', 'Sea Gate Wreckage', 'Vindicate', 'Impulse', 'Elas il-Kor, Sadistic Pilgrim', 'Nephalia Drownyard', 'Tangle', 'Ardent Recruit', 'Ovika, Enigma Goliath', 'Predatory Sliver', 'Augur of Skulls', 'Thrun, Breaker of Silence', 'Blade Splicer', 'Reflector Mage', 'Silverblade Paladin', 'Illuminator Virtuoso', 'Birds of Paradise', 'Orzhov Charm', 'Frenetic Sliver', 'Terminate', 'Sculpting Steel', 'Farseek', 'Nimbus Maze', 'Smallpox', 'Tomik, Distinguished Advokist', 'Battlefield Forge', 'Delver of Secrets', 'Open the Gates', 'Devil''s Play', 'Memory Lapse', 'All That Glitters', 'Master of Etherium', 'Grim Haruspex', 'Stirring Wildwood', 'Akroan Crusader', 'Artisan of Kozilek', 'Geomancer''s Gambit', 'Arcane Sanctum', 'Undercity Informer', 'Obscura Charm', 'Time of Need', 'Kiora, the Crashing Wave', 'Hard Evidence', 'Astral Drift', 'Smoldering Marsh', 'Inscribed Tablet', 'Third Path Iconoclast', 'Colossal Skyturtle', 'Westvale Abbey', 'Revitalize', 'Nimble Trapfinder', 'Murmuring Bosk', 'Jungle Hollow', 'Phyrexian Unlife', 'Leonin Relic-Warder', 'Lose Focus', 'Stinkweed Imp', 'Bump in the Night', 'Nevermore', 'Blue Sun''s Zenith', 'Bubbling Cauldron', 'Goblin Electromancer', 'Benthic Biomancer', 'Ambush Viper', 'Dark-Dweller Oracle', 'Silversmote Ghoul', 'Akoum Hellhound', 'Xenagos, the Reveler', 'Hero of Bladehold', 'Narcomoeba', 'Kalastria Healer', 'Chaotic Transformation', 'Terminus', 'Night Market Lookout', 'Psychic Possession', 'Kitchen Finks', 'Memoricide', 'Change the Equation', 'Dragon''s Hoard', 'Vapor Snag', 'Corpse Cur', 'Isolated Chapel', 'Obzedat, Ghost Council', 'Vexing Shusher', 'Mazemind Tome', 'Dakkon, Shadow Slayer', 'Wolfbriar Elemental', 'Attune with Aether', 'Arbor Elf', 'Voltage Surge', 'Gutterbones', 'Vivid Marsh', 'Unholy Heat', 'Crawling Barrens', 'Sinister Concoction', 'Varolz, the Scar-Striped', 'Icehide Golem', 'Possibility Storm', 'Champion of Wits', 'Tidehollow Sculler', 'Akiri, Fearless Voyager', 'Hooting Mandrills', 'Squadron Hawk', 'Hypnotic Specter', 'Pore Over the Pages', 'Giant Killer', 'Mothdust Changeling', 'Sculpted Perfection', 'Eerie Ultimatum', 'Dakmor Salvage', 'Banishing Slash', 'Expedition Envoy', 'Nine Lives', 'Kumano Faces Kakkazan', 'Glorybringer', 'Dismal Backwater', 'Woodland Cemetery', 'Radha, Heart of Keld', 'Sylvan Advocate', 'Engulf the Shore', 'Vadrik, Astral Archmage', 'Dross Skullbomb', 'Barbed Sextant', 'Jace Beleren', 'Hinterland Harbor', 'Bilious Skulldweller', 'Ral, Izzet Viceroy', 'Turnabout', 'Wood Elves', 'Hypergenesis', 'Myr Superion', 'Secluded Steppe', 'Laboratory Maniac', 'Conflagrate', 'Dream Trawler', 'Wrench Mind', 'Polukranos, World Eater', 'Ulvenwald Hydra', 'Invasion of New Capenna', 'Oona, Queen of the Fae', 'Elemental Masterpiece', 'Fiery Justice', 'Kitchen Imp', 'Volt Charge', 'Port Town', 'Earthquake', 'Ashen Rider', 'Dead // Gone', 'Ayara, First of Locthwain', 'Rocco, Cabaretti Caterer', 'Drown in Ichor', 'Riddleform', 'Sigil of the Empty Throne', 'Steppe Lynx', 'Soltari Priest', 'Zurgo Bellstriker', 'Graven Cairns', 'Sunscour', 'Runed Halo', 'Big Game Hunter', 'Cloudshift', 'Big Score', 'Undying Evil', 'Patchwork Automaton', 'Eldrazi Displacer', 'Scattered Groves', 'Vampire Lacerator', 'Thrash // Threat', 'Golgari Guildgate', 'Altar of the Goyf', 'Monument to Perfection', 'Yahenni''s Expertise', 'Kozilek''s Predator', 'Deep Analysis', 'Eternal Dragon', 'Vryn Wingmare', 'Nested Shambler', 'Drainpipe Vermin', 'Vraska''s Fall', 'The Seedcore', 'Caves of Koilos', 'Raven''s Crime', 'Llanowar Tribe', 'Hero''s Downfall', 'Gideon''s Intervention', 'Phalanx Leader', 'Ignite Memories', 'Mirage Mirror', 'Zur''s Weirding', 'Rune Snag', 'Snow-Covered Plains', 'Mulch', 'Mindcrank', 'Anafenza, the Foremost', 'Deafening Clarion', 'Ravenous Squirrel', 'Sultai Charm', 'Malicious Malfunction', 'Grenzo, Dungeon Warden', 'Tectonic Giant', 'Wayward Guide-Beast', 'Easy Prey', 'Thassa''s Intervention', 'Rule of Law', 'Haunted Dead', 'Nimble Obstructionist', 'Canopy Vista', 'Brokers Hideout', 'Ossification', 'Drossforge Bridge', 'Arlinn Kord', 'Divest', 'Territorial Kavu', 'Seal of Cleansing', 'Duplicant', 'Scab-Clan Berserker', 'Increasing Ambition', 'Valakut Exploration', 'Thornglint Bridge', 'Mistvault Bridge', 'Sweltering Suns', 'Lotus Cobra', 'Witching Well', 'Orzhov Guildgate', 'Jwari Shapeshifter', 'Ashenmoor Liege', 'Ghostly Pilferer', 'Knight of Glory', 'Mystic Monastery', 'Gruul Guildgate', 'Seething Song', 'Idyllic Beachfront', 'Harmonize', 'Concealing Curtains', 'Karn''s Bastion', 'Joint Exploration', 'Tocasia''s Dig Site', 'Hour of Promise', 'Touch the Spirit Realm', 'Labyrinth of Skophos', 'Rain of Tears', 'Erebos''s Intervention', 'Saproling Migration', 'Sanctum of Ugin', 'Tooth and Nail', 'Cold-Eyed Selkie', 'Rootbound Crag', 'Herd Baloth', 'Contaminated Aquifer', 'Remorseful Cleric', 'Self-Assembler', 'Drake Haven', 'Gateway Plaza', 'Dimensional Infiltrator', 'Teleportation Circle', 'Woodfall Primus', 'Frost Marsh', 'Pull from Tomorrow', 'Toolcraft Exemplar', 'Inkwell Leviathan', 'Lurrus of the Dream-Den', 'Goreclaw, Terror of Qal Sisma', 'Death Cloud', 'Cabaretti Courtyard', 'Sorin, Grim Nemesis', 'Devious Cover-Up', 'Sudden Edict', 'Mistblade Shinobi', 'Silumgar''s Scorn', 'Nekrataal', 'Invasion of Ergamon', 'Soul Warden', 'Disallow', 'Empyrial Armor', 'Urban Evolution', 'Swiftfoot Boots', 'Rishadan Dockhand', 'Aegis of the Gods', 'Ground Seal', 'Elvish Hexhunter', 'Merciless Eviction', 'Thundermaw Hellkite', 'Astral Slide', 'Felidar Cub', 'Gods Willing', 'Maze''s End', 'Odds // Ends', 'Fire Prophecy', 'The Celestus', 'Open the Armory', 'Thornwood Falls', 'Hada Freeblade', 'Scarab Feast', 'Hieroglyphic Illumination', 'Aquitect''s Will', 'Madcap Experiment', 'Goblin Charbelcher', 'Tilling Treefolk', 'Burst Lightning', 'Torens, Fist of the Angels', 'Bogbrew Witch', 'Soul''s Attendant', 'Brave the Elements', 'Barbarian Ring', 'Moon-Circuit Hacker', 'Invoke Calamity', 'Idyllic Tutor', 'Teneb, the Harvester', 'Settle the Wreckage', 'Folio of Fancies', 'Sunblade Samurai', 'Battle of Wits', 'Avacyn''s Pilgrim', 'Sheltered Thicket', 'Tezzeret''s Gambit', 'Mnemonic Sphere', 'Lightning Strike', 'Rust Goliath', 'Froghemoth', 'Thirst for Meaning', 'Sphere of Safety', 'Sunlit Marsh', 'Archaeomancer', 'Phyrexian Dreadnought', 'Shatter the Sky', 'Angel of Condemnation', 'Morsel Theft', 'Fetid Heath', 'River of Tears', 'Esper Charm', 'Fight as One', 'Wall of Omens', 'Kitesail Freebooter', 'Bloodline Keeper', 'Forging the Anchor', 'Sprite Dragon', 'Obliterate', 'Magister of Worth', 'Strike It Rich', 'Bloodchief''s Thirst', 'Selesnya Guildgate', 'Dreadhorde Butcher', 'Dragonskull Summit', 'Tomebound Lich', 'Ad Nauseam', 'Sacred Peaks', 'Kambal, Consul of Allocation', 'Herd Migration', 'Pyretic Ritual', 'Fracturing Gust', 'Ancient Ziggurat', 'Gift of Estates', 'Felidar Retreat', 'Saffi Eriksdotter', 'Solemnity', 'Bident of Thassa', 'Ghostfire Blade', 'Temple of Abandon', 'Marble Diamond', 'Glistener Elf', 'Energy Refractor', 'Doomed Traveler', 'Invasion of Mercadia', 'Murderous Redcap', 'Graveborn Muse', 'Dispatch', 'Llanowar Elves', 'Pelakka Predation', 'Karumonix, the Rat King', 'Simian Sling', 'Archpriest of Shadows', 'Desperate Ritual', 'Mindslaver', 'Zombie Infestation', 'Luminarch Ascension', 'Cleansing Wildfire', 'Lay Down Arms', 'Repeal', 'Clifftop Retreat', 'Corrupted Crossroads', 'Kami of False Hope', 'Frantic Inventory', 'Archon of Sun''s Grace', 'Search for Tomorrow', 'Dokuchi Silencer', 'Sign in Blood', 'Pharika''s Libation', 'Metalwork Colossus', 'Game Trail', 'Boreal Shelf', 'Invisible Stalker', 'Cathedral of War', 'Unmarked Grave', 'Knowledge Pool', 'Triskelion', 'Enchantress''s Presence', 'Urza''s Factory', 'Resurgent Belief', 'Ephara, God of the Polis', 'Summary Dismissal', 'Genesis Ultimatum', 'Prosperous Thief', 'Vines of Vastwood', 'Ponder', 'Izzet Boilerworks', 'Lingering Souls', 'Scrying Sheets', 'Mistcutter Hydra', 'Izzet Guildgate', 'Melira, the Living Cure', 'Yawgmoth''s Bargain', 'Sylvan Library', 'Sphinx''s Herald', 'Become Immense', 'Delay', 'Guile', 'Doomskar', 'Disenchant', 'Nullpriest of Oblivion', 'Watcher for Tomorrow', 'Viashino Pyromancer', 'Briarbridge Tracker', 'Dark Petition', 'Bituminous Blast', 'Greater Tanuki', 'Decree of Justice', 'Caldera Hellion', 'Call of the Death-Dweller', 'Armored Scrapgorger', 'Shred Memory', 'Temple of Mystery', 'Cryptic Caves', 'Ral, Storm Conduit', 'Mistveil Plains', 'Ashnod, Flesh Mechanist', 'Quicken', 'Sins of the Past', 'Hissing Quagmire', 'Launch the Fleet', 'Elvish Archdruid', 'Maestros Charm', 'Silverbluff Bridge', 'Commit // Memory', 'Gloomshrieker', 'Dead of Winter', 'Raze to the Ground', 'Dimir Guildgate', 'Lavinia of the Tenth', 'Rakdos Cackler', 'Melira, Sylvok Outcast', 'Vampire Hexmage', 'Circuit Mender', 'Venerated Loxodon', 'Yorion, Sky Nomad', 'Cut Down', 'Dawn of Hope', 'Glaring Aegis', 'Sever the Bloodline', 'Shardless Agent', 'Spectral Shift', 'Feed the Swarm', 'Distorted Curiosity', 'Lavaclaw Reaches', 'Fierce Empath', 'Phantasmagorian', 'Sterling Grove', 'Tainted Indulgence', 'Kemba, Kha Enduring', 'Quarantine Field', 'Azami, Lady of Scrolls', 'Vivid Grove', 'Aetherworks Marvel', 'Mindsplice Apparatus', 'Umara Wizard', 'Surrak, the Hunt Caller', 'Tymaret, Chosen from Death', 'Golgari Rot Farm', 'Rites of Spring', 'Rise // Fall', 'Inspiring Veteran', 'Falkenrath Pit Fighter', 'Doom Blade', 'Hyena Umbra', 'Godo, Bandit Warlord', 'Chain Lightning', 'Shrieking Affliction', 'Ammit Eternal', 'Succumb to Temptation', 'Flaying Tendrils', 'Frostwalk Bastion', 'Mystifying Maze', 'Jukai Naturalist', 'Boon-Bringer Valkyrie', 'Repudiate // Replicate', 'Minor Misstep', 'Rift Bolt', 'Gruul Spellbreaker', 'Assemble the Legion', 'Blood on the Snow', 'Tezzeret the Schemer', 'Embodiment of Fury', 'Ogre Slumlord', 'Eidolon of Blossoms', 'Agonizing Remorse', 'Makeshift Mannequin', 'Oracle of Mul Daya', 'Pariah', 'Wild Cantor', 'Slaughter Pact', 'Thrill of Possibility', 'Rakdos Charm', 'Galerider Sliver', 'Arcum''s Astrolabe', 'Honor of the Pure', 'Cosmos Elixir', 'Check for Traps', 'Ghitu Lavarunner', 'Dreams of Steel and Oil', 'Kaito, Dancing Shadow', 'Disciple of Bolas', 'Pyroclasm', 'Darksteel Colossus', 'Invasion of Zendikar', 'Silver-Fur Master', 'Into the Story', 'Wandering Fumarole', 'Scrapheap Scrounger', 'Tribal Flames', 'Terramorphic Expanse', 'Tree of Tales', 'Marwyn, the Nurturer', 'Timeless Dragon', 'Angel''s Grace', 'Gleeful Demolition', 'Arbalest Engineers', 'Graaz, Unstoppable Juggernaut', 'Alms of the Vein', 'Halimar Excavator', 'Stinkdrinker Bandit', 'Raise the Alarm', 'Duress', 'Meeting of Minds', 'Blighted Agent', 'Mirror Entity', 'Shinka, the Bloodsoaked Keep', 'Wooded Bastion', 'Incinerate', 'Tendrils of Agony', 'Graven Lore', 'Combat Research', 'Evolving Wilds', 'Gyruda, Doom of Depths', 'Elderscale Wurm', 'Spoils of the Vault', 'Oath of Kaya', 'Mastermind''s Acquisition', 'It That Betrays', 'Cloudpost', 'Kemba, Kha Regent', 'Dead Weight', 'Anafenza, Kin-Tree Spirit', 'Commune with Nature', 'Liquimetal Coating', 'Evacuation', 'Nether Spirit', 'General Ferrous Rokiric', 'Hall of Oracles', 'Wrenn''s Resolve', 'Ranger of Eos', 'Commence the Endgame', 'Vampire Nighthawk', 'Abzan Charm', 'Phantasmal Image', 'Gilt-Leaf Archdruid', 'Invigorate', 'Children of Korlis', 'Angrath, the Flame-Chained', 'Elvish Rejuvenator', 'Voidslime', 'Fearless Fledgling', 'Healer''s Hawk', 'Cultivate', 'Pieces of the Puzzle', 'Bone Shards', 'Leonin Warleader', 'Consuming Vapors', 'Knight of New Alara', 'Nature''s Lore', 'Condemn', 'Pack Rat', 'Nightscape Familiar', 'Search for Azcanta', 'Benevolent Bodyguard', 'Kruphix''s Insight', 'Hideous End', 'Yavimaya Coast', 'Network Disruptor', 'Bogardan Hellkite', 'Surge of Salvation', 'Teferi, Mage of Zhalfir', 'Cremate', 'Loxodon Smiter', 'Kor Firewalker', 'Timeless Witness', 'Staff of Domination', 'Opulent Palace', 'Brineborn Cutthroat', 'Brave the Sands', 'Murderous Cut', 'Unctus, Grand Metatect', 'Voldaren Pariah', 'Merfolk Sovereign', 'Thaumatic Compass', 'Bolas''s Citadel', 'Arch of Orazca', 'Dovin''s Acuity', 'Yasharn, Implacable Earth', 'Recurring Nightmare', 'Cartel Aristocrat', 'Thraben Inspector', 'Drowned Catacomb', 'Empyrial Plate', 'Rakdos Guildgate', 'Angel of Serenity', 'Rotting Rats', 'Day of Judgment', 'Solitary Confinement', 'Double Vision', 'Unburial Rites', 'Goldmire Bridge', 'Price of Progress', 'Reveillark', 'Sarkhan the Masterless', 'Sarkhan, the Dragonspeaker', 'Sunpetal Grove', 'Racers'' Ring', 'Mana Leak', 'Kazandu Blademaster', 'Cathartic Reunion', 'Phoenix Chick', 'Burning Sun''s Fury', 'Ancient Grudge', 'Elixir of Immortality', 'Teshar, Ancestor''s Apostle', 'Ivory Tower', 'Azorius Charm', 'Knight of the Reliquary', 'Celestial Colonnade', 'Balustrade Spy', 'Steel Overseer', 'Mausoleum Secrets', 'Ertai''s Scorn', 'Stoke the Flames', 'Unlucky Witness', 'Sandsteppe Citadel', 'Timely Reinforcements', 'Thawing Glaciers', 'Myr Kinsmith', 'Flame Rift', 'Grave Titan', 'Precursor Golem', 'Crux of Fate', 'Tear Asunder', 'Castigate', 'Aetherling', 'Kogla, the Titan Ape', 'Master of Death', 'Purify the Grave', 'Gitaxian Probe', 'Dread Return', 'Simic Guildgate', 'Quest for the Holy Relic', 'Hostage Taker', 'Squee, Goblin Nabob', 'Far // Away', 'Nimble Larcenist', 'Detention Sphere', 'Satyr Hoplite', 'Vault Skirge', 'Bala Ged Recovery', 'Vampire Neonate', 'Gravelgill Duo', 'Demigod of Revenge', 'Defiant Strike', 'Ethereal Armor', 'Flourishing Fox', 'Mina and Denn, Wildborn', 'Stoic Rebuttal', 'Fiery Temper', 'Arcbound Ravager', 'Garruk Wildspeaker', 'Chandra, Fire Artisan', 'Throne of the God-Pharaoh', 'Natural State', 'Deep Forest Hermit', 'Archangel of Wrath', 'Forked Bolt', 'Mouth of Ronom', 'Benalish Marshal', 'Heap Doll', 'Tolarian Terror', 'Worthy Knight', 'Jungle Shrine', 'Vivid Crag', 'Haunted Mire', 'Viscera Seer', 'Dread Wanderer', 'Simian Spirit Guide', 'Blood Artist', 'Gift of Immortality', 'Unstable Mutation', 'Bloodchief Ascension', 'Wanderwine Hub', 'Ash Zealot', 'Protect the Negotiators', 'White Sun''s Zenith', 'Phyrexian Censor', 'Dire-Strain Rampage', 'Coiling Oracle', 'Heartless Act', 'Swooping Lookout', 'Platinum Angel', 'Otherworldly Journey', 'Cabal Ritual', 'Frost Titan', 'Grimoire Thief', 'Lochmere Serpent', 'Sea Gate Oracle', 'Second Sunrise', 'Kefnet the Mindful', 'Tezzeret, Artifice Master', 'Kappa Tech-Wrecker', 'Ivy Lane Denizen', 'Blightning', 'Fetid Pools', 'Shriekmaw', 'Halo Forager', 'Basilisk Collar', 'Sunken Hollow', 'Boros Guildgate', 'Smother', 'Triumphant Adventurer', 'Glamerdye', 'Shape Anew', 'Diabolic Tutor', 'Ethersworn Sphinx', 'Snow-Covered Mountain', 'Restoration Angel', 'Bubbling Muck', 'Wizard''s Retort', 'Reckless Charge', 'Flametongue Kavu', 'Putrefy', 'Vessel of Nascency', 'Lizard Blades', 'Diffusion Sliver', 'Hope of Ghirapur', 'Inevitable Betrayal', 'Glimpse of Tomorrow', 'Llanowar Mentor', 'Geyadrone Dihada', 'Vindictive Flamestoker', 'Slagwoods Bridge', 'Unsubstantiate', 'Argentum Armor', 'Temple of Malady', 'Angel of Glory''s Rise', 'Always Watching', 'Vigor', 'Martyr of Sands', 'Glimmerpost', 'Twinshot Sniper', 'Exclude', 'Malcator, Purity Overseer', 'Hero of Oxid Ridge', 'Terastodon', 'Bitter Reunion', 'Festering Newt', 'Elvish Visionary', 'Temple of Silence', 'Bloodvial Purveyor', 'Oracle of Tragedy', 'Nezumi Informant', 'Universal Automaton', 'Woe Strider', 'Elspeth Conquers Death', 'Approach of the Second Sun', 'Mulldrifter', 'Sylvan Scrying', 'Spirited Companion', 'Invasion of Amonkhet', 'Stave Off', 'Greater Gargadon', 'Ulcerate', 'Into the Roil', 'Fireblade Charger', 'Llanowar Augur', 'Chandra, Pyromaster', 'Knight Exemplar', 'Eiganjo Castle', 'Sin Collector', 'Sigrid, God-Favored', 'Cloudshredder Sliver', 'Fallaji Archaeologist', 'Jokulhaups', 'Ghost Quarter', 'Sunder Shaman', 'Cauldron Familiar', 'Gather the Pack', 'Myr Battlesphere', 'Aetherblade Agent', 'Seal of Removal', 'Gnat Miser', 'Pardic Miner', 'Stir the Grave', 'Rise and Shine', 'Talisman of Impulse', 'Burning of Xinye', 'Changeling Outcast', 'Mephidross Vampire', 'Temple of Triumph', 'Drowned Rusalka', 'Duneblast', 'Mikokoro, Center of the Sea', 'Mortuary Mire', 'Artistic Refusal', 'Silundi Vision', 'Zephyr Singer', 'Lotleth Giant', 'Obstinate Baloth', 'Commune with the Gods', 'Trace of Abundance', 'Acidic Slime', 'Heliod''s Pilgrim', 'Wrath of God', 'Dryad Militant', 'Syphon Life', 'Tangled Islet', 'Blackbloom Rogue', 'Devout Chaplain', 'Herald of the Pantheon', 'Midnight Reaper', 'Hanweir Garrison', 'Aether Spellbomb', 'Supreme Will', 'Chief of the Foundry', 'Experimental Synthesizer', 'Archangel Avacyn', 'Serra Ascendant', 'Stupor', 'Shizo, Death''s Storehouse', 'Needle Spires', 'Evangel of Synthesis', 'Slogurk, the Overslime', 'Goblin Dark-Dwellers', 'Spirit Mantle', 'Ishkanah, Grafwidow', 'Discovery // Dispersal', 'Tendo Ice Bridge', 'Early Harvest', 'Sol Talisman', 'Late to Dinner', 'Ancient Amphitheater', 'Blight Mamba', 'Annex Sentry', 'Darksteel Citadel', 'Thragtusk', 'Plated Geopede', 'Curiosity', 'Founding the Third Path', 'Wonder', 'Faeburrow Elder', 'Sandwurm Convergence', 'Merfolk Mistbinder', 'Snow-Covered Swamp', 'Harrow', 'Pyrite Spellbomb', 'Council''s Judgment', 'Upheaval', 'Stone Rain', 'Tide Shaper', 'Endless Horizons', 'Ajani''s Pridemate', 'World Shaper', 'Experimental Augury', 'Deprive', 'Earthshaker Khenra', 'Pilfer', 'See Beyond', 'The Underworld Cookbook', 'Nomad Outpost', 'Ensoul Artifact', 'Ruric Thar, the Unbowed', 'The Flame of Keld', 'Chandra, Flamecaller', 'Cabal Therapist', 'Etherium Sculptor', 'Winds of Abandon', 'Jwari Disruption', 'Dissolve', 'Bloodsoaked Champion', 'Kunoros, Hound of Athreos', 'Zof Consumption', 'Temple of Enlightenment', 'Chief Engineer', 'Kessig Wolf Run', 'Voyaging Satyr', 'Kor Skyfisher', 'Genesis Hydra', 'Misery Charm', 'Maelstrom Pulse', 'Oona''s Grace', 'Rakdos''s Return', 'Buried Ruin', 'Cataclysmic Gearhulk', 'Skarrg, the Rage Pits', 'Encroaching Wastes', 'Tempest Djinn', 'Flooded Grove', 'Elite Inquisitor', 'Seal of Fire', 'Faerie Conclave', 'Pharika''s Cure', 'Victim of Night', 'Grand Abolisher', 'Forsake the Worldly', 'Judge''s Familiar', 'Temple of Deceit', 'Rix Maadi Reveler', 'Altar of the Brood', 'Oona''s Prowler', 'Tyrant of Discord', 'Demonic Bargain', 'Tresserhorn Sinks', 'Lonely Sandbar', 'Scrapwork Mutt', 'Yisan, the Wanderer Bard', 'Angel of Despair', 'Seeker of the Way', 'Notorious Throng', 'Riveteers Overlook', 'Gird for Battle', 'Voidwing Hybrid', 'Collected Conjuring', 'Forbidden Alchemy', 'Realm Razer', 'General''s Enforcer', 'Kaya, Ghost Assassin', 'Nezahal, Primal Tide', 'Presence of Gond', 'Whispersilk Cloak', 'Dying to Serve', 'Fyndhorn Elves', 'Venerable Knight', 'Drowner of Hope', 'Hedron Archive', 'Krosan Grip', 'Executioner''s Capsule', 'Grolnok, the Omnivore', 'Scuttling Doom Engine', 'Orim''s Chant', 'Aetherspouts', 'Destiny Spinner', 'Ancient Stirrings', 'Venser, Shaper Savant', 'Wasteland Strangler', 'Riveteers Charm', 'Nezumi Graverobber', 'Rampant Growth', 'Dissipate', 'Scrabbling Claws', 'Molten Tributary', 'Vraan, Executioner Thane', 'Abyssal Persecutor', 'Treasure Cruise', 'Union of the Third Path', 'Vampiric Rites', 'Dregscape Zombie', 'Crawling Chorus', 'Canyon Slough', 'Mishra''s Factory', 'Lantern-Lit Graveyard', 'Skyclave Shade', 'Blanchwood Prowler', 'Brain Freeze', 'Satyr Wayfinder', 'Faith''s Reward', 'Mesmeric Fiend', 'Nissa, Steward of Elements', 'Pulse of the Fields', 'Draugr Necromancer', 'Careful Cultivation', 'Think Twice', 'The Birth of Meletis', 'Sea-Dasher Octopus', 'Jace, Architect of Thought', 'Distended Mindbender', 'Sire of Insanity', 'Nissa, Worldwaker', 'Ramunap Excavator', 'Dark Ritual', 'Forgotten Cave', 'Grafted Butcher', 'Dauntless Bodyguard', 'Radiant Grove', 'Bloodbraid Elf', 'Lodestone Golem', 'Bontu''s Last Reckoning', 'Sulfur Falls', 'Reinforced Ronin', 'Audacity', 'Secluded Courtyard', 'Sylvan Caryatid', 'Destroy Evil', 'Myth Realized', 'Abiding Grace', 'Night of Souls'' Betrayal', 'Temple of Plenty', 'Hesitation', 'Progenitor Exarch', 'The Scorpion God', 'Stubborn Denial', 'Rabbit Battery', 'Mirran Crusader', 'Moorland Haunt', 'Quiet Speculation', 'Consult the Necrosages', 'Fruit of Tizerus', 'Carven Caryatid', 'Verduran Enchantress', 'Mesa Enchantress', 'Sorin, Vengeful Bloodlord', 'Gigadrowse', 'Neutralize', 'Disrupting Shoal', 'Kher Keep', 'Weapons Trainer', 'Baneful Omen', 'Calciform Pools', 'Porphyry Nodes', 'Stasis Snare', 'Sheoldred''s Edict', 'Worship', 'Seismic Assault', 'Lightning Spear', 'Spell Burst', 'Tribute to Hunger', 'Consume the Meek', 'Negate', 'Control Magic', 'Norn''s Inquisitor', 'Leonin Arbiter', 'Rustvale Bridge', 'Lagrella, the Magpie', 'Ancestral Blade', 'Sunstrike Legionnaire', 'Gruul Turf', 'Tanglepool Bridge', 'Epic Experiment', 'Black Sun''s Zenith', 'Demolition Field', 'Faerie Miscreant', 'Shimmer Dragon', 'Dusk // Dawn', 'Silumgar, the Drifting Death', 'Mycosynth Golem', 'Anguished Unmaking', 'Malakir Rebirth', 'Gaea''s Will', 'Blazing Rootwalla', 'Silent Gravestone', 'Frontier Bivouac', 'Gadrak, the Crown-Scourge', 'Fleecemane Lion', 'Ornithopter', 'Research // Development', 'Altered Ego', 'Spatial Contortion', 'Brainstone', 'Yavimaya Iconoclast', 'Azorius Guildgate', 'Glacial Fortress', 'Putrid Imp', 'Fumigate', 'Jor Kadeen, First Goldwarden', 'Spikefield Hazard', 'Prophetic Prism', 'Ichorclaw Myr', 'Mind''s Desire', 'Vault of the Archangel', 'Out of Time', 'Elves of Deep Shadow', 'Groundswell', 'Zuran Orb', 'Glint-Sleeve Siphoner', 'Fact or Fiction', 'Fade from Memory', 'Servo Exhibition', 'Tectonic Edge', 'Expedite', 'Botanical Plaza', 'Necrogen Spellbomb', 'Venser, the Sojourner', 'Crack the Earth', 'Might of Old Krosa', 'Loran''s Escape', 'Liquimetal Torque', 'Titania, Protector of Argoth', 'Talisman of Curiosity', 'Utter End', 'Grand Architect', 'Arguel''s Blood Fast', 'Merrow Reejerey', 'Glissa Sunseeker', 'Waking the Trolls', 'Reckless Rage', 'Rites of Initiation', 'Haunted Fengraf', 'Izzet Charm', 'Return to the Ranks', 'Phyrexian Revoker', 'Weathered Wayfarer', 'Acclaimed Contender', 'Invasion of Regatha', 'Fertile Ground', 'Forbid', 'Raging Ravine', 'Slagstorm', 'Knight of the White Orchid', 'Seedcradle Witch'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.8 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Marwyn, the Nurturer', 'Think Twice', 'Ancient Amphitheater', 'Mothdust Changeling', 'Shrapnel Blast', 'Treasure Cruise', 'Hero''s Downfall', 'Kessig Wolf Run', 'Union of the Third Path', 'Vraska''s Contempt', 'Oblivion Ring', 'Inkwell Leviathan', 'Death Cloud', 'Temple of Abandon', 'Skyshroud Elf', 'Jace, Architect of Thought', 'Bring the Ending', 'Genesis Hydra', 'Snow-Covered Mountain', 'Polukranos, World Eater', 'Sorin, Grim Nemesis', 'Primal Command', 'Judge''s Familiar', 'Ertai''s Scorn', 'Leonin Arbiter', 'Gyruda, Doom of Depths', 'Ancestral Blade', 'Priest of the Haunted Edge', 'Arch of Orazca', 'Angrath, the Flame-Chained', 'Sculpted Perfection', 'Chandra, Fire Artisan', 'Frontier Bivouac', 'Astral Slide', 'Curse of Exhaustion', 'Ancient Ziggurat', 'Eternal Scourge', 'Deep Forest Hermit', 'Augur of Skulls', 'Caves of Koilos', 'Vadrik, Astral Archmage', 'Helm of the Host', 'Seal of Cleansing', 'Oona''s Prowler', 'Unsubstantiate', 'Predatory Sliver', 'Moderation', 'Pardic Miner', 'Goblin Electromancer', 'Circuit Mender', 'Kogla, the Titan Ape', 'Swiftfoot Boots', 'Purify the Grave', 'Dark-Dweller Oracle', 'Orim''s Chant', 'Basilisk Collar', 'Experimental Synthesizer', 'Seal of Primordium', 'Dragonskull Summit', 'Mesmeric Fiend', 'Tocasia''s Dig Site', 'Lose Focus', 'Ondu Inversion', 'Sylvan Primordial', 'Servo Exhibition', 'Mindcrank', 'Duress', 'Blightbelly Rat', 'Slogurk, the Overslime', 'Favored Hoplite', 'Celestial Colonnade', 'Kaya, Ghost Assassin', 'Careful Cultivation', 'Nekrataal', 'Brave the Elements', 'Pain Seer', 'Evacuation', 'Hanweir Garrison', 'Cryptic Caves', 'Astral Drift', 'Control Magic', 'Slaughter Pact', 'Quicken', 'Silver-Fur Master', 'Return to the Ranks', 'Incinerate', 'Glissa Sunseeker', 'Timeless Witness', 'Knight of Glory', 'Secluded Courtyard', 'Castigate', 'Barbed Sextant', 'Cartel Aristocrat', 'Ivory Tower', 'Nested Shambler', 'Nissa, Steward of Elements', 'Stone Rain', 'Elves of Deep Shadow', 'Stave Off', 'Hypergenesis', 'Geyadrone Dihada', 'Fact or Fiction', 'Balustrade Spy', 'Frost Titan', 'Birds of Paradise', 'Expedite', 'Open the Gates', 'Bloodchief''s Thirst', 'Acclaimed Contender', 'Stone Haven Outfitter', 'Frostwalk Bastion', 'Reckless Rage', 'Change the Equation', 'Aetherblade Agent', 'Arcum''s Astrolabe', 'Azami, Lady of Scrolls', 'Colossal Skyturtle', 'Peek', 'Kiora Bests the Sea God', 'Vivid Marsh', 'Joint Exploration', 'Venerable Knight', 'Luminarch Ascension', 'Ayli, Eternal Pilgrim', 'Nightscape Familiar', 'Repudiate // Replicate', 'Temple of Malady', 'Graven Cairns', 'Glaring Aegis', 'Ethereal Absolution', 'Vampire Nighthawk', 'Sprite Dragon', 'Faerie Vandal', 'Disallow', 'Ghost Quarter', 'Dark Ritual', 'Tezzeret, Artifice Master', 'Go for the Throat', 'Golgari Guildgate', 'Endless Horizons', 'Memoricide', 'Sinister Concoction', 'Discovery // Dispersal', 'Ancient Stirrings', 'Smuggler''s Copter', 'Pull from Tomorrow', 'Krosan Grip', 'Aegis of the Gods', 'The Underworld Cookbook', 'Blackbloom Rogue', 'Tribute to Horobi', 'Tendrils of Agony', 'Hall of Oracles', 'Mausoleum Secrets', 'Executioner''s Capsule', 'Saproling Migration', 'Solitary Confinement', 'Brave the Sands', 'Pore Over the Pages', 'Hada Freeblade', 'Brain Freeze', 'Devious Cover-Up', 'Lazotep Chancellor', 'Ral, Storm Conduit', 'Dissipate', 'General''s Enforcer', 'Cliffside Lookout', 'Ulcerate', 'Carven Caryatid', 'Ral, Izzet Viceroy', 'Rocco, Cabaretti Caterer', 'Stinkweed Imp', 'Kumano Faces Kakkazan', 'Crack the Earth', 'Tranquil Thicket', 'Artisan of Kozilek', 'Sheltered Thicket', 'Monument to Perfection', 'Aquitect''s Will', 'Feed the Swarm', 'Wayward Guide-Beast', 'See Beyond', 'Repeal', 'Oust', 'Gruul Turf', 'Armored Scrapgorger', 'Akiri, Fearless Voyager', 'Vindictive Flamestoker', 'Weathered Wayfarer', 'Tymaret, Chosen from Death', 'Frenetic Sliver', 'Lingering Souls', 'Merfolk Sovereign', 'Swooping Lookout', 'Giant Killer', 'Benthic Biomancer', 'Tomik, Distinguished Advokist', 'Timely Reinforcements', 'Malicious Malfunction', 'Argentum Armor', 'Call to the Grave', 'Ghostfire Blade', 'Unstable Mutation', 'Bubbling Cauldron', 'Altar of the Goyf', 'Mikokoro, Center of the Sea', 'Big Game Hunter', 'Out of Time', 'Rise and Shine', 'Urban Evolution', 'Barbarian Ring', 'Whispersilk Cloak', 'Tectonic Edge', 'Syphon Life', 'Yasharn, Implacable Earth', 'Kher Keep', 'Silversmote Ghoul', 'Blood on the Snow', 'Misery Charm', 'King Darien XLVIII', 'Tyrant''s Choice', 'Nezumi Shortfang', 'Gleeful Demolition', 'Oni-Cult Anvil', 'Kjeldoran Outpost', 'Mistvault Bridge', 'Easy Prey', 'Eiganjo Castle', 'Quarantine Field', 'Agonizing Remorse', 'Melira, Sylvok Outcast', 'Malakir Rebirth', 'Phoenix Chick', 'Green Sun''s Twilight', 'Obliterate', 'Increasing Ambition', 'Sigrid, God-Favored', 'Pillar of the Paruns', 'Scattered Groves', 'Sever the Bloodline', 'Leonin Relic-Warder', 'Stromkirk Noble', 'Midnight Clock', 'Call of the Death-Dweller', 'Grand Architect', 'Ishkanah, Grafwidow', 'Elvish Archdruid', 'Valiant Changeling', 'Smother', 'Metalwork Colossus', 'Hesitation', 'Fireblade Charger', 'Doomed Traveler', 'Izzet Guildgate', 'Tresserhorn Sinks', 'Darksteel Colossus', 'Haunted Mire', 'Bituminous Blast', 'Marauding Blight-Priest', 'Bitter Reunion', 'Oracle of Mul Daya', 'Ruric Thar, the Unbowed', 'Drake Haven', 'Coiling Oracle', 'Marit Lage''s Slumber', 'Boros Guildgate', 'Raging Ravine', 'Madcap Experiment', 'Worthy Knight', 'Nevermore', 'Yavimaya Iconoclast', 'Circular Logic', 'Earthshaker Khenra', 'Tezzeret the Schemer', 'Midnight Guard', 'Kunoros, Hound of Athreos', 'Price of Progress', 'Vampiric Rites', 'Shimmer Dragon', 'Sanctum of Ugin', 'Cabal Therapist', 'Stubborn Denial', 'Inscribed Tablet', 'Slagwoods Bridge', 'Mouth of Ronom', 'Orzhov Basilica', 'Bump in the Night', 'Rise // Fall', 'General Ferrous Rokiric', 'Tooth and Nail', 'Shinka, the Bloodsoaked Keep', 'Consult the Necrosages', 'Bogbrew Witch', 'Wild Cantor', 'Nullpriest of Oblivion', 'Spell Pierce', 'Dryad Militant', 'Genesis Ultimatum', 'Sylvan Caryatid', 'Endbringer', 'Kalastria Healer', 'Banishing Slash', 'Pyroclasm', 'Doom Blade', 'Harrow', 'Jor Kadeen, First Goldwarden', 'Nissa, Worldwaker', 'Tribal Flames', 'Night of Souls'' Betrayal', 'Leonin Lightscribe', 'Ashenmoor Liege', 'Vapor Snag', 'Ichorclaw Myr', 'Voldaren Pariah', 'Pack Rat', 'Corrupted Conviction', 'Thassa''s Intervention', 'Epic Experiment', 'Voidslime', 'Orzhov Guildgate', 'Invasion of Amonkhet', 'Kazandu Blademaster', 'Angel of Grace', 'Invasion of New Capenna', 'Satyr Hoplite', 'Farhaven Elf', 'Council''s Judgment', 'Condemn', 'Artistic Refusal', 'Phalanx Leader', 'Dead Weight', 'Audacity', 'Archangel of Wrath', 'Engulf the Shore', 'Vivid Crag', 'Augur of Bolas', 'Nimble Trapfinder', 'Burning of Xinye', 'The Celestus', 'Far // Away', 'Llanowar Augur', 'Maze''s End', 'Cloudshredder Sliver', 'Ajani''s Pridemate', 'Fallaji Archaeologist', 'Thrill of Possibility', 'Demigod of Revenge', 'Simic Guildgate', 'Varolz, the Scar-Striped', 'Vampire Hexmage', 'Combat Research', 'Corrupted Crossroads', 'Cleansing Wildfire', 'Raise the Alarm', 'Izzet Boilerworks', 'Sunscour', 'Vault of the Archangel', 'Archpriest of Shadows', 'Jwari Disruption', 'Myr Kinsmith', 'Nephalia Drownyard', 'Liquimetal Torque', 'Altered Ego', 'Forgotten Cave', 'Gideon Jura', 'Patchwork Automaton', 'Deep Analysis', 'Scarab Feast', 'Crawling Chorus', 'Invoke Calamity', 'Lavaclaw Reaches', 'Ayara, First of Locthwain', 'Draugr Necromancer', 'Calciform Pools', 'Cosmos Elixir', 'Prophetic Prism', 'Westvale Abbey', 'Desperate Ritual', 'Gift of Immortality', 'Wrenn''s Resolve', 'Launch the Fleet', 'Jungle Hollow', 'Disenchant', 'Cabaretti Courtyard', 'Phantasmagorian', 'Graaz, Unstoppable Juggernaut', 'Gutterbones', 'Zuran Orb', 'Bident of Thassa', 'Dead of Winter', 'Supreme Will', 'Herd Migration', 'Psychatog', 'Cremate', 'Scab-Clan Berserker', 'Putrid Imp', 'Vigor', 'Faerie Miscreant', 'Wooded Bastion', 'Fetid Pools', 'Lizard Blades', 'Heartless Act', 'Unctus, Grand Metatect', 'Explore', 'Unlucky Witness', 'Mesa Enchantress', 'Grim Haruspex', 'Search for Azcanta', 'Sylvan Advocate', 'Cabal Initiate', 'Mastermind''s Acquisition', 'Gruul Guildgate', 'Detention Sphere', 'Cold-Eyed Selkie', 'Sultai Charm', 'Thornwood Falls', 'Elderscale Wurm', 'Felidar Cub', 'Grave Scrabbler', 'Raven''s Crime', 'Reckoner''s Bargain', 'Mystifying Maze', 'Teleportation Circle', 'Ulvenwald Hydra', 'Mana Leak', 'Silumgar, the Drifting Death', 'Mnemonic Sphere', 'Folio of Fancies', 'Buried Ruin', 'Flame Rift', 'Dawn of Hope', 'Melira, the Living Cure', 'Battle of Wits', 'Baneful Omen', 'Venerated Loxodon', 'Valiant Rescuer', 'Kemba, Kha Enduring', 'Tanglepool Bridge', 'Glimpse of Tomorrow', 'Scrabbling Claws', 'Akoum Hellhound', 'Grenzo, Dungeon Warden', 'Kitchen Finks', 'Simian Sling', 'Angel of Despair', 'Quest for the Holy Relic', 'Anger of the Gods', 'Destiny Spinner', 'Ponder', 'Soltari Priest', 'Corpse Cur', 'Rustvale Bridge', 'Knight of the White Orchid', 'Nezumi Graverobber', 'Idyllic Tutor', 'Gateway Plaza', 'Restoration Angel', 'Racers'' Ring', 'Grolnok, the Omnivore', 'Sheoldred''s Edict', 'Cataclysmic Gearhulk', 'Froghemoth', 'Wizard''s Retort', 'Wall of Omens', 'Flourishing Fox', 'Haunted Dead', 'Hyena Umbra', 'Rites of Initiation', 'Thundermaw Hellkite', 'Dovin''s Acuity', 'Chandra, Pyromaster', 'Scuttling Doom Engine', 'Check for Traps', 'Tribute to Hunger', 'The Seedcore', 'Tolarian Terror', 'Lodestone Golem', 'Kor Firewalker', 'Ensoul Artifact', 'Guile', 'Sculpting Steel', 'Arbalest Engineers', 'Wrench Mind', 'Thornglint Bridge', 'Dakmor Salvage', 'Surge of Salvation', 'Ignite Memories', 'Vexing Shusher', 'Snow-Covered Swamp', 'Reinforced Ronin', 'Platinum Angel', 'Victim of Night', 'Faerie Conclave', 'Geothermal Bog', 'Elas il-Kor, Sadistic Pilgrim', 'Shardless Agent', 'Inevitable Betrayal', 'Nine Lives', 'Jace Beleren', 'Myr Superion', 'Angel of Condemnation', 'Kabira Takedown', 'Grimoire Thief', 'Gigadrowse', 'Obscura Charm', 'Elite Inquisitor', 'Greater Tanuki', 'Hero of Bladehold', 'Gnawing Vermin', 'Tendo Ice Bridge', 'Elemental Masterpiece', 'Tocatli Honor Guard', 'Angel''s Grace', 'Karn''s Bastion', 'Electrolyze', 'Stirring Wildwood', 'Experimental Augury', 'Thawing Glaciers', 'Expedition Envoy', 'Galerider Sliver', 'Spirit Mantle', 'Archangel Avacyn', 'Saffi Eriksdotter', 'Time of Need', 'Caldera Hellion', 'Vampire Lacerator', 'Rakdos''s Return', 'Halimar Excavator', 'Forbidden Alchemy', 'Simian Spirit Guide', 'Mistblade Shinobi', 'Thirst for Meaning', 'Hedron Archive', 'Triumphant Adventurer', 'Myth Realized', 'Thopter Spy Network', 'Darksteel Citadel', 'Gather the Pack', 'Universal Automaton', 'Grand Abolisher', 'Halana and Alena, Partners', 'Negate', 'Clifftop Retreat', 'Forsake the Worldly', 'Flaying Tendrils', 'Commit // Memory', 'Consuming Vapors', 'Frost Marsh', 'Moon-Circuit Hacker', 'Sunlit Marsh', 'Yorion, Sky Nomad', 'Verduran Enchantress', 'World Shaper', 'Elvish Hexhunter', 'Spectral Shift', 'Etherium Sculptor', 'Vivid Grove', 'Pharika''s Cure', 'Kami of False Hope', 'Bloodchief Ascension', 'Spell Burst', 'Fearless Fledgling', 'Aether Spellbomb', 'Valakut Exploration', 'Research // Development', 'Steppe Lynx', 'Tempest Djinn', 'Seismic Assault', 'Forked Bolt', 'Gitaxian Probe', 'Mulch', 'Upheaval', 'Bloodsoaked Champion', 'Summary Dismissal', 'Invigorate', 'Oona, Queen of the Fae', 'Apostle''s Blessing', 'Shrieking Affliction', 'Lochmere Serpent', 'All That Glitters', 'Delay', 'Nimble Obstructionist', 'Shard Volley', 'Fyndhorn Elves', 'Heap Doll', 'Mirran Crusader', 'Sins of the Past', 'Commune with the Gods', 'Open the Armory', 'Mistveil Plains', 'Riveteers Overlook', 'Blighted Agent', 'Nameless Inversion', 'Lightning Strike', 'Labyrinth of Skophos', 'Blight Mamba', 'Arbor Elf', 'Skyclave Shade', 'Blade Splicer', 'Gird for Battle', 'Dying to Serve', 'Obscura Storefront', 'Mirror Entity', 'Prosperous Thief', 'Benevolent Bodyguard', 'Thrash // Threat', 'Rain of Tears', 'Floriferous Vinewall', 'Vindicate', 'Terramorphic Expanse', 'Canyon Slough', 'Rakdos Charm', 'Brokers Hideout', 'Tide Shaper', 'Xenagos, the Reveler', 'Morsel Theft', 'Children of Korlis', 'Sulfur Falls', 'Kuldotha Forgemaster', 'Wanderwine Hub', 'Self-Assembler', 'Mishra''s Factory', 'Student of Warfare', 'Gravelgill Duo', 'Silverbluff Bridge', 'Elvish Mystic', 'Stoic Rebuttal', 'Xerex Strobe-Knight', 'Selesnya Guildgate', 'Ramunap Excavator', 'Silumgar''s Scorn', 'Garruk Wildspeaker', 'Hard Evidence', 'Master of Etherium', 'Halo Forager', 'Eidolon of Blossoms', 'Zombie Infestation', 'Azorius Guildgate', 'Fiery Temper', 'Kemba, Kha Regent', 'White Sun''s Zenith', 'Fracturing Gust', 'Hostage Taker', 'Destroy Evil', 'Dregscape Zombie', 'Lavinia of the Tenth', 'Protect the Negotiators', 'Avacyn''s Pilgrim', 'Shimmerdrift Vale', 'Vessel of Nascency', 'Yawgmoth''s Bargain', 'Squadron Hawk', 'Tidespout Tyrant', 'Llanowar Tribe', 'Deafening Clarion', 'Illuminator Virtuoso', 'Terminate', 'Blessed Alliance', 'Shatter the Sky', 'Zurgo Bellstriker', 'Lightning Spear', 'Always Watching', 'Gideon''s Intervention', 'Midnight Reaper', 'Hour of Promise', 'Thragtusk', 'Shred Memory', 'Rites of Spring', 'Elvish Visionary', 'Cloudshift', 'Loxodon Smiter', 'Chittering Rats', 'Sleight of Hand', 'Kitesail Freebooter', 'Mina and Denn, Wildborn', 'Arguel''s Blood Fast', 'Abundant Growth', 'Resurgent Belief', 'Drainpipe Vermin', 'Pariah', 'Flooded Grove', 'Hinterland Harbor', 'Abyssal Persecutor', 'Declaration in Stone', 'Tangle', 'Gnat Miser', 'Scrying Sheets', 'Nature''s Lore', 'Invisible Stalker', 'Sire of Insanity', 'Narcomoeba', 'Goblin Dark-Dwellers', 'Slagstorm', 'Soul Warden', 'Mycosynth Golem', 'Winds of Abandon', 'Jokulhaups', 'Mishra''s Self-Replicator', 'Meeting of Minds', 'Lay Down Arms', 'Gods Willing', 'Energy Refractor', 'It That Betrays', 'Bloodvial Purveyor', 'Invasion of Ergamon', 'Archon of Sun''s Grace', 'Consecrate // Consume', 'Tezzeret''s Gambit', 'Consume the Meek', 'Terastodon', 'Azorius Charm', 'Remorseful Cleric', 'Rootbound Crag', 'Hero of Oxid Ridge', 'Kitchen Imp', 'Evolving Wilds', 'Search for Tomorrow', 'Brainstone', 'Quiet Speculation', 'Acidic Slime', 'Territorial Kavu', 'Gryff''s Boon', 'Nimbus Maze', 'Bubbling Muck', 'Invasion of Zendikar', 'Stinkdrinker Bandit', 'Knight of New Alara', 'Timeless Dragon', 'Glint-Sleeve Siphoner', 'Seal of Removal', 'Fetid Heath', 'Mephidross Vampire', 'Umara Wizard', 'Kiora, the Crashing Wave', 'Shape Anew', 'Presence of Gond', 'Arcbound Ravager', 'Falkenrath Pit Fighter', 'Knight Exemplar', 'Wasteland Strangler', 'Turnabout', 'Oath of Kaya', 'Dross Skullbomb', 'Gloomshrieker', 'Kambal, Consul of Allocation', 'Aetherspouts', 'Assault // Battery', 'Zur''s Weirding', 'Cabal Ritual', 'Temple of Triumph', 'Dimir Guildgate', 'Faith''s Reward', 'Early Harvest', 'Urza''s Factory', 'Figure of Destiny', 'Fiery Justice', 'Dread Wanderer', 'Devil''s Play', 'Lantern-Lit Graveyard', 'Exclude', 'Changeling Outcast', 'Myr Battlesphere', 'Ashnod, Flesh Mechanist', 'Grand Arbiter Augustin IV', 'Obzedat, Ghost Council', 'Ethereal Armor', 'Rix Maadi Reveler', 'Empyrial Plate', 'River of Tears', 'Unmarked Grave', 'Volt Charge', 'Karumonix, the Rat King', 'Day of Judgment', 'Murderous Redcap', 'Utter End', 'Stir the Grave', 'Viashino Pyromancer', 'Toolcraft Exemplar', 'Golgari Rot Farm', 'Assemble the Legion', 'Runed Halo', 'Cultivate', 'Demolition Field', 'Dispatch', 'Into the Roil', 'Greater Gargadon', 'Jungle Shrine', 'Into the Story', 'Night Market Lookout', 'Marble Diamond', 'Waking the Trolls', 'Akroan Crusader', 'Solemnity', 'Benalish Marshal', 'Progenitor Exarch', 'Settle the Wreckage', 'Notorious Throng', 'Ally Encampment', 'Goreclaw, Terror of Qal Sisma', 'Moorland Haunt', 'Hieroglyphic Illumination', 'Fruit of Tizerus', 'Flametongue Kavu', 'Ovika, Enigma Goliath', 'Stasis Snare', 'Cut Down', 'Drossforge Bridge', 'Sweltering Suns', 'Vraan, Executioner Thane', 'Eerie Ultimatum', 'Glacial Fortress', 'Elspeth Conquers Death', 'Nether Spirit', 'Ephara, God of the Polis', 'Blue Sun''s Zenith', 'Woodweaver''s Puzzleknot', 'Ethersworn Sphinx', 'Ancient Grudge', 'Approach of the Second Sun', 'Sunken Hollow', 'Dakkon, Shadow Slayer', 'Herald of the Pantheon', 'Radiant Grove', 'Rabbit Battery', 'Undying Evil', 'Tainted Indulgence', 'Soul''s Attendant', 'Tree of Tales', 'Fertile Ground', 'Teshar, Ancestor''s Apostle', 'Venser, Corpse Puppet', 'Heliod''s Intervention', 'Satyr Wayfinder', 'Teferi, Mage of Zhalfir', 'Oracle of Tragedy', 'Brineborn Cutthroat', 'Dreadhorde Butcher', 'Realm Razer', 'Double Vision', 'Dead // Gone', 'Port Town', 'Dreams of Steel and Oil', 'Temple of Enlightenment', 'Pilfer', 'Koth, Fire of Resistance', 'Nomad Outpost', 'Fumigate', 'Prologue to Phyresis', 'Duplicant', 'Concealing Curtains', 'Frantic Inventory', 'Conflagrate', 'Blood Artist', 'Smallpox', 'Liquimetal Coating', 'Aetherling', 'Invasion of Mercadia', 'Memory Lapse', 'Altar of the Brood', 'Pyrite Spellbomb', 'Triskelion', 'Combat Thresher', 'Lost Legacy', 'Unburial Rites', 'Ornithopter', 'Sunstrike Legionnaire', 'Boon-Bringer Valkyrie', 'Temple of Mystery', 'Godo, Bandit Warlord', 'Reveillark', 'Sunder Shaman', 'Haunted Fengraf', 'Reflector Mage', 'Eldrazi Displacer', 'Black Sun''s Zenith', 'Lonely Sandbar', 'Rune Snag', 'Third Path Iconoclast', 'Kruphix''s Insight', 'Rishadan Dockhand', 'Commune with Spirits', 'Twinshot Sniper', 'Glorybringer', 'Mindsplice Apparatus', 'Scrapwork Mutt', 'Elvish Rejuvenator', 'Skarrg, the Rage Pits', 'Impulse', 'Distended Mindbender', 'Sandsteppe Citadel', 'Esper Charm', 'Sunpetal Grove', 'Ground Seal', 'Talisman of Impulse', 'Merrow Reejerey', 'Tear Asunder', 'Plated Geopede', 'Springleaf Drum', 'Knight of the Reliquary', 'Odds // Ends', 'Archaeomancer', 'Barter in Blood', 'Groundswell', 'Empyrial Armor', 'Anguished Unmaking', 'Dusk // Dawn', 'Seal of Fire', 'Sudden Edict', 'Voidwing Hybrid', 'Sylvan Library', 'Throat Slitter', 'Champion of Wits', 'Strike It Rich', 'Sphere of Safety', 'Aetherworks Marvel', 'Sterling Grove', 'Phyrexian Dreadnought', 'Rust Goliath', 'Canopy Vista', 'Rampant Growth', 'Divinity of Pride', 'Llanowar Elves', 'Invasion of Azgol', 'Embodiment of Fury', 'Abiding Grace', 'Kefnet the Mindful', 'Attune with Aether', 'Anafenza, the Foremost', 'Liliana Vess', 'Loran''s Escape', 'Shizo, Death''s Storehouse', 'Decree of Justice', 'Ossification', 'Dauntless Bodyguard', 'Woodfall Primus', 'Thrun, Breaker of Silence', 'Bloodbraid Elf', 'Legion Angel', 'Pieces of the Puzzle', 'Ravenous Squirrel', 'Dread Return', 'Counterflux', 'Arlinn Kord', 'Fae of Wishes', 'Fleecemane Lion', 'Summer Bloom', 'Lotleth Giant', 'Sarkhan the Masterless', 'The Scorpion God', 'Anafenza, Kin-Tree Spirit', 'Curiosity', 'Bolas''s Citadel', 'Fight as One', 'Annex Sentry', 'Dokuchi Silencer', 'Oona''s Grace', 'Bontu''s Last Reckoning', 'Graveborn Muse', 'Chief Engineer', 'Temple of Silence', 'Zephyr Singer', 'Dissolve', 'Teneb, the Harvester', 'Dragon''s Hoard', 'Tilling Treefolk', 'Invasion of Regatha', 'Neutralize', 'Voltage Surge', 'Goldmire Bridge', 'Leonin Warleader', 'Goblin Bombardment', 'Cauldron Familiar', 'Spirited Companion', 'Ad Nauseam', 'Nezumi Informant', 'Overgrowth', 'Woe Strider', 'Grave Titan', 'Mulldrifter', 'Riddleform', 'Chief of the Foundry', 'Raze to the Ground', 'Viscera Seer', 'Talisman of Unity', 'Putrefy', 'Silverblade Paladin', 'Sunblade Samurai', 'Bogardan Hellkite', 'Hornet Queen', 'Seedcradle Witch', 'Drowned Catacomb', 'Mazemind Tome', 'Snow-Covered Plains', 'Obstinate Baloth', 'Zof Consumption', 'Erebos''s Intervention', 'Hooting Mandrills', 'Woodland Cemetery', 'Needle Spires', 'Riveteers Charm', 'Spikefield Hazard', 'Deprive', 'Minor Misstep', 'Sigil of the Empty Throne', 'Succumb to Temptation', 'Ash Zealot', 'Malcator, Purity Overseer', 'Serra Ascendant', 'Master of Death', 'Yahenni''s Expertise', 'Angel of Glory''s Rise', 'Seething Song', 'Venser, the Sojourner', 'The Birth of Meletis', 'Temple of Plenty', 'Murderous Cut', 'Vraska''s Fall', 'Encroaching Wastes', 'Rotting Rats', 'Sphinx''s Herald', 'Drown in Ichor', 'Doomskar', 'Shriekmaw', 'Demonic Bargain', 'Commune with Nature', 'Delver of Secrets', 'Titania, Protector of Argoth', 'Rift Bolt', 'Boreal Shelf', 'Stupor', 'Gaea''s Will', 'Hope of Ghirapur', 'Orzhov Charm', 'The Flame of Keld', 'Steel Overseer', 'Cathartic Reunion', 'Thaumatic Compass', 'Abundant Harvest', 'Disciple of Bolas', 'Wonder', 'Mirage Mirror', 'Norn''s Inquisitor', 'Merfolk Mistbinder', 'Devout Chaplain', 'Chain Lightning', 'Fade from Memory', 'Frantic Search', 'Fierce Empath', 'Festering Newt', 'Tomebound Lich', 'Chamber Sentry', 'Burning Sun''s Fury', 'Throne of the God-Pharaoh', 'Sacred Peaks', 'Crux of Fate', 'Duneblast', 'Sea-Dasher Octopus', 'Eternal Dragon', 'Jwari Shapeshifter', 'Abzan Charm', 'Witching Well', 'Forging the Anchor', 'Dire-Strain Rampage', 'Big Score', 'Dream Trawler', 'Vryn Wingmare', 'Talisman of Curiosity', 'Jukai Naturalist', 'Deathbringer Liege', 'Chaotic Transformation', 'Dismal Backwater', 'Precursor Golem', 'Idyllic Beachfront', 'Battlefield Forge', 'Shivan Reef', 'Izzet Charm', 'Late to Dinner', 'Network Disruptor', 'Surrak, the Hunt Caller', 'Glistener Elf', 'Worship', 'Tidehollow Sculler', 'Blazing Rootwalla', 'Distorted Curiosity', 'Disrupting Shoal', 'Maelstrom Pulse', 'Secluded Steppe', 'Faeburrow Elder', 'Psychic Possession', 'Defiant Strike', 'Sarkhan, the Dragonspeaker', 'Wrath of God', 'Spoils of the Vault', 'Lurrus of the Dream-Den', 'Ghitu Lavarunner', 'Ghostly Pilferer', 'Pharika''s Libation', 'Otherworldly Journey', 'Razortide Bridge', 'Tectonic Giant', 'Tyrant of Discord', 'Grafted Butcher', 'Natural State', 'Rakdos Guildgate', 'Founding the Third Path', 'Pulse of the Fields', 'Tangled Islet', 'Magister of Worth', 'Evangel of Synthesis', 'Necrogen Spellbomb', 'Battle of Frost and Fire', 'Coalition Relic', 'Argentum Masticore', 'Heliod''s Pilgrim', 'Ghostly Flicker', 'Venser, Shaper Savant', 'Ardent Recruit', 'Ashen Rider', 'Silent Gravestone', 'Raffine''s Informant', 'Mortuary Mire', 'Earthquake', 'Porphyry Nodes', 'Merciless Eviction', 'Knowledge Pool', 'Ogre Slumlord', 'Wandering Fumarole', 'Bone Shards', 'Drowned Rusalka', 'Diffusion Sliver', 'Possibility Storm', 'Laboratory Maniac', 'Gift of Estates', 'Murmuring Bosk', 'Mind''s Desire', 'Bala Ged Recovery', 'Alms of the Vein', 'Bloodline Keeper', 'Basking Rootwalla', 'Scour All Possibilities', 'Molten Tributary', 'Rally the Ancestors', 'Farseek', 'Sea Gate Wreckage', 'Inspiring Veteran', 'Sinew Sliver', 'Sin Collector', 'Mystic Monastery', 'Lotus Cobra', 'Crawling Barrens', 'Glimmerpost', 'Rakdos Cackler', 'Ammit Eternal', 'Blanchwood Prowler', 'Cloudpost', 'Orcish Lumberjack', 'Seeker of the Way', 'Gruul Spellbreaker', 'Shambling Vent', 'Ranger of Eos', 'Wolfbriar Elemental', 'Mistcutter Hydra', 'Mystical Teachings', 'Spatial Contortion', 'Dimensional Infiltrator', 'Reckless Charge', 'Choked Estuary', 'Briarbridge Tracker', 'Vedalken Heretic', 'Watcher for Tomorrow', 'Isolated Chapel', 'Phyrexian Censor', 'Divest', 'Elixir of Immortality', 'Vault Skirge', 'Nimble Larcenist', 'Gilt-Leaf Archdruid', 'Temple of Deceit', 'Harmonize', 'Pelakka Predation', 'Kappa Tech-Wrecker', 'Viridian Revel', 'Gadrak, the Crown-Scourge', 'Sign in Blood', 'Forbid', 'Eldrazi Skyspawner', 'Kor Skyfisher', 'Revitalize', 'Voyaging Satyr', 'Commence the Endgame', 'Opulent Palace', 'Unholy Heat', 'Vines of Vastwood', 'Makeshift Mannequin', 'Angel of Serenity', 'Ivy Lane Denizen', 'Squee, Goblin Nabob', 'Vampire Neonate', 'Barren Moor', 'Thraben Inspector', 'Graven Lore', 'Weapons Trainer', 'Sol Talisman', 'Phantasmal Image', 'Blightning', 'Siege Rhino', 'Game Trail', 'Scrapheap Scrounger', 'Sylvan Scrying', 'Cathedral of War', 'Glamerdye', 'Diabolic Tutor', 'Dimir Aqueduct', 'Goblin Charbelcher', 'Lagrella, the Magpie', 'Become Immense', 'Collected Conjuring', 'Hissing Quagmire', 'Terminus', 'Recurring Nightmare', 'Geomancer''s Gambit', 'Hypnotic Specter', 'Sandwurm Convergence', 'Torens, Fist of the Angels', 'Stoke the Flames', 'Pyretic Ritual', 'Staff of Domination', 'Renewed Faith', 'Nezahal, Primal Tide', 'Bilious Skulldweller', 'Second Sunrise', 'Huatli, Radiant Champion', 'Kaito, Dancing Shadow', 'Herd Baloth', 'Stern Dismissal', 'Contaminated Aquifer', 'Radha, Heart of Keld', 'Phyrexian Unlife', 'Touch the Spirit Realm', 'Yisan, the Wanderer Bard', 'Arcane Sanctum', 'Gallia of the Endless Dance', 'Sin Prodder', 'Undercity Informer', 'Healer''s Hawk', 'Rule of Law', 'Trace of Abundance', 'Burst Lightning', 'Honor of the Pure', 'Sorin, Vengeful Bloodlord', 'Hideous End', 'Martyr of Sands', 'Dark Petition', 'Yavimaya Coast', 'Kozilek''s Predator', 'Wilt', 'Fire Prophecy', 'Phyrexian Revoker', 'Icehide Golem', 'Smoldering Marsh', 'Felidar Retreat', 'Wood Elves', 'Drowner of Hope', 'Maestros Charm', 'Chandra, Flamecaller', 'Ambush Viper', 'Enchantress''s Presence', 'Silundi Vision', 'Sea Gate Oracle', 'Mindslaver', 'Botanical Plaza', 'Might of Old Krosa', 'Llanowar Mentor'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.8, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Forked Bolt', 'Sunblade Samurai', 'Ovika, Enigma Goliath', 'Scab-Clan Berserker', 'Feed the Swarm', 'Lazotep Chancellor', 'Ichorclaw Myr', 'Phoenix Chick', 'Sinew Sliver', 'Ancient Amphitheater', 'Kappa Tech-Wrecker', 'Voidwing Hybrid', 'Rocco, Cabaretti Caterer', 'Goblin Bombardment', 'Serra Ascendant', 'Gallia of the Endless Dance', 'Tranquil Thicket', 'Bloodline Keeper', 'Oust', 'Silumgar, the Drifting Death', 'Clifftop Retreat', 'Vexing Shusher', 'Voidslime', 'Shard Volley', 'Collected Conjuring', 'Time of Need', 'Evolving Wilds', 'Winds of Abandon', 'Invasion of Zendikar', 'Disciple of Bolas', 'Rabbit Battery', 'Delay', 'Approach of the Second Sun', 'Viashino Pyromancer', 'Briarbridge Tracker', 'Yisan, the Wanderer Bard', 'Smallpox', 'Purify the Grave', 'Cataclysmic Gearhulk', 'Dovin''s Acuity', 'Turnabout', 'Rotting Rats', 'Silumgar''s Scorn', 'Barbarian Ring', 'Skyshroud Elf', 'Jace Beleren', 'Weathered Wayfarer', 'Tidespout Tyrant', 'Rust Goliath', 'Grand Arbiter Augustin IV', 'Sunstrike Legionnaire', 'Cremate', 'Fracturing Gust', 'Radiant Grove', 'Might of Old Krosa', 'Vampiric Rites', 'Ghost Quarter', 'Haunted Mire', 'Black Sun''s Zenith', 'Rally the Ancestors', 'Territorial Kavu', 'Hard Evidence', 'Kozilek''s Predator', 'Lay Down Arms', 'Banishing Slash', 'Utter End', 'Lavaclaw Reaches', 'Nameless Inversion', 'Blessed Alliance', 'Summer Bloom', 'Cabal Initiate', 'Evangel of Synthesis', 'Drainpipe Vermin', 'Heap Doll', 'Tear Asunder', 'Agonizing Remorse', 'Glamerdye', 'Vampire Neonate', 'Seething Song', 'Stinkweed Imp', 'Invasion of New Capenna', 'Servo Exhibition', 'Master of Etherium', 'Grafted Butcher', 'Ayara, First of Locthwain', 'Snow-Covered Plains', 'Pharika''s Cure', 'Abiding Grace', 'Harmonize', 'Putrefy', 'Graven Cairns', 'Nether Spirit', 'Smuggler''s Copter', 'Forsake the Worldly', 'Stone Haven Outfitter', 'Felidar Retreat', 'Herald of the Pantheon', 'Selesnya Guildgate', 'Blight Mamba', 'Burning of Xinye', 'Chief Engineer', 'Kruphix''s Insight', 'Ashnod, Flesh Mechanist', 'Temple of Plenty', 'Giant Killer', 'Kor Firewalker', 'Merciless Eviction', 'Waking the Trolls', 'Dream Trawler', 'Healer''s Hawk', 'Endbringer', 'Wild Cantor', 'Floriferous Vinewall', 'Shambling Vent', 'Patchwork Automaton', 'Cultivate', 'Thornglint Bridge', 'Sleight of Hand', 'Mistblade Shinobi', 'Genesis Hydra', 'Arguel''s Blood Fast', 'Dragon''s Hoard', 'Raging Ravine', 'Circular Logic', 'Basking Rootwalla', 'Sphere of Safety', 'Boros Guildgate', 'Frantic Inventory', 'Pull from Tomorrow', 'Go for the Throat', 'Riveteers Charm', 'Triumphant Adventurer', 'Change the Equation', 'Jwari Disruption', 'Rune Snag', 'Greater Gargadon', 'Crux of Fate', 'Volt Charge', 'Silent Gravestone', 'Dispatch', 'Groundswell', 'Mistveil Plains', 'Dregscape Zombie', 'Celestial Colonnade', 'Graven Lore', 'Progenitor Exarch', 'Teneb, the Harvester', 'Valiant Changeling', 'Vessel of Nascency', 'Geyadrone Dihada', 'Maze''s End', 'Ambush Viper', 'Thornwood Falls', 'Anafenza, the Foremost', 'Voldaren Pariah', 'Priest of the Haunted Edge', 'Squee, Goblin Nabob', 'Doom Blade', 'Chaotic Transformation', 'Teshar, Ancestor''s Apostle', 'Unctus, Grand Metatect', 'Vraska''s Contempt', 'Isolated Chapel', 'Nightscape Familiar', 'Vraska''s Fall', 'Elvish Rejuvenator', 'Reinforced Ronin', 'Venser, Shaper Savant', 'Etherium Sculptor', 'Crawling Chorus', 'Leonin Arbiter', 'Toolcraft Exemplar', 'Maestros Charm', 'Erebos''s Intervention', 'Eiganjo Castle', 'Brain Freeze', 'Lose Focus', 'Gutterbones', 'Simian Spirit Guide', 'Consult the Necrosages', 'Shred Memory', 'Honor of the Pure', 'Drown in Ichor', 'Angrath, the Flame-Chained', 'Supreme Will', 'Benevolent Bodyguard', 'Disallow', 'Razortide Bridge', 'Desperate Ritual', 'Hostage Taker', 'Dissipate', 'Elvish Visionary', 'Witching Well', 'Oblivion Ring', 'Inscribed Tablet', 'Hornet Queen', 'Ertai''s Scorn', 'Ammit Eternal', 'Misery Charm', 'Buried Ruin', 'Battlefield Forge', 'Stirring Wildwood', 'Expedition Envoy', 'Stromkirk Noble', 'Corrupted Conviction', 'Plated Geopede', 'Elvish Mystic', 'Tainted Indulgence', 'Springleaf Drum', 'Diffusion Sliver', 'Blightning', 'Aether Spellbomb', 'Bloodbraid Elf', 'Overgrowth', 'Heliod''s Intervention', 'Simic Guildgate', 'Pyrite Spellbomb', 'Upheaval', 'Cartel Aristocrat', 'Xerex Strobe-Knight', 'Gnawing Vermin', 'Quicken', 'Forging the Anchor', 'Destiny Spinner', 'Torens, Fist of the Angels', 'Tempest Djinn', 'Dreadhorde Butcher', 'Cabal Therapist', 'Disrupting Shoal', 'Forbidden Alchemy', 'Nimble Trapfinder', 'Terastodon', 'Silversmote Ghoul', 'Kumano Faces Kakkazan', 'Grim Haruspex', 'Thrill of Possibility', 'Melira, Sylvok Outcast', 'Secluded Steppe', 'Kaya, Ghost Assassin', 'Assault // Battery', 'Archangel Avacyn', 'Eidolon of Blossoms', 'Boon-Bringer Valkyrie', 'Worship', 'Mindsplice Apparatus', 'Vindicate', 'Aetherling', 'Memory Lapse', 'Sorin, Vengeful Bloodlord', 'Ogre Slumlord', 'King Darien XLVIII', 'Aetherspouts', 'Glacial Fortress', 'Spatial Contortion', 'Second Sunrise', 'Runed Halo', 'Night Market Lookout', 'Voltage Surge', 'Annex Sentry', 'The Scorpion God', 'Terminate', 'Mesa Enchantress', 'Yorion, Sky Nomad', 'Pariah', 'Syphon Life', 'Scuttling Doom Engine', 'Gleeful Demolition', 'Slaughter Pact', 'Bloodchief''s Thirst', 'Jace, Architect of Thought', 'Vraan, Executioner Thane', 'Gift of Estates', 'Repudiate // Replicate', 'Lodestone Golem', 'Glorybringer', 'Solemnity', 'Haunted Fengraf', 'Leonin Relic-Warder', 'Protect the Negotiators', 'Angel of Despair', 'Seeker of the Way', 'Blood on the Snow', 'Obliterate', 'Odds // Ends', 'Tomebound Lich', 'Woodland Cemetery', 'Bogardan Hellkite', 'Ral, Storm Conduit', 'Scarab Feast', 'Helm of the Host', 'Hesitation', 'Archon of Sun''s Grace', 'Demigod of Revenge', 'Grolnok, the Omnivore', 'Temple of Deceit', 'Vault Skirge', 'Prophetic Prism', 'Phyrexian Unlife', 'Kiora, the Crashing Wave', 'Dokuchi Silencer', 'Ulcerate', 'Dread Return', 'Molten Tributary', 'Wrenn''s Resolve', 'Brave the Sands', 'Fumigate', 'Temple of Mystery', 'Price of Progress', 'Pyretic Ritual', 'Bubbling Cauldron', 'Westvale Abbey', 'Slagstorm', 'Glimmerpost', 'Executioner''s Capsule', 'Sultai Charm', 'Anger of the Gods', 'Dying to Serve', 'Arcum''s Astrolabe', 'Midnight Guard', 'Flame Rift', 'Zombie Infestation', 'Revitalize', 'Silver-Fur Master', 'Koth, Fire of Resistance', 'Embodiment of Fury', 'Pillar of the Paruns', 'Fae of Wishes', 'Frostwalk Bastion', 'Seal of Cleansing', 'Sweltering Suns', 'Barter in Blood', 'Inkwell Leviathan', 'Moon-Circuit Hacker', 'Ghostly Pilferer', 'Nimble Larcenist', 'Invasion of Azgol', 'Frenetic Sliver', 'Sarkhan the Masterless', 'Dimir Aqueduct', 'Devious Cover-Up', 'Empyrial Plate', 'Gadrak, the Crown-Scourge', 'Declaration in Stone', 'Gather the Pack', 'Bilious Skulldweller', 'Flametongue Kavu', 'Gruul Spellbreaker', 'Peek', 'Combat Research', 'Master of Death', 'Psychatog', 'Aegis of the Gods', 'Invoke Calamity', 'Soltari Priest', 'Orcish Lumberjack', 'Invigorate', 'Arcane Sanctum', 'Kher Keep', 'Wall of Omens', 'Akoum Hellhound', 'Throne of the God-Pharaoh', 'Ramunap Excavator', 'Devil''s Play', 'Restoration Angel', 'Opulent Palace', 'Idyllic Tutor', 'Cut Down', 'Presence of Gond', 'Cliffside Lookout', 'Krosan Grip', 'Dryad Militant', 'Halana and Alena, Partners', 'Rakdos''s Return', 'Ephara, God of the Polis', 'Divest', 'Vadrik, Astral Archmage', 'Primal Command', 'Prosperous Thief', 'Llanowar Elves', 'Orzhov Charm', 'Halimar Excavator', 'Death Cloud', 'Bontu''s Last Reckoning', 'Gateway Plaza', 'Lingering Souls', 'Tezzeret, Artifice Master', 'Silverblade Paladin', 'Rakdos Charm', 'Azorius Charm', 'Snow-Covered Swamp', 'Needle Spires', 'Venser, the Sojourner', 'Unlucky Witness', 'Fertile Ground', 'Deep Forest Hermit', 'The Seedcore', 'Gift of Immortality', 'Cryptic Caves', 'Herd Baloth', 'Commune with Spirits', 'Mastermind''s Acquisition', 'Wanderwine Hub', 'Nezumi Graverobber', 'Drossforge Bridge', 'Oona, Queen of the Fae', 'Spectral Shift', 'Lurrus of the Dream-Den', 'Scattered Groves', 'Vampire Hexmage', 'Cloudpost', 'Return to the Ranks', 'Thopter Spy Network', 'Midnight Reaper', 'Hypergenesis', 'Elixir of Immortality', 'Tresserhorn Sinks', 'Sol Talisman', 'Careful Cultivation', 'Alms of the Vein', 'Bone Shards', 'Thundermaw Hellkite', 'Angel of Grace', 'Frantic Search', 'Grand Architect', 'Sin Prodder', 'Mnemonic Sphere', 'Meeting of Minds', 'Ral, Izzet Viceroy', 'Graaz, Unstoppable Juggernaut', 'Altered Ego', 'Fetid Heath', 'General''s Enforcer', 'Lagrella, the Magpie', 'Port Town', 'Stinkdrinker Bandit', 'Commit // Memory', 'Consume the Meek', 'Fireblade Charger', 'Fallaji Archaeologist', 'Thassa''s Intervention', 'Carven Caryatid', 'Nezahal, Primal Tide', 'Remorseful Cleric', 'Sheltered Thicket', 'Swiftfoot Boots', 'Lightning Spear', 'Gilt-Leaf Archdruid', 'Summary Dismissal', 'Snow-Covered Mountain', 'Open the Armory', 'All That Glitters', 'Exclude', 'Dire-Strain Rampage', 'Hall of Oracles', 'Evacuation', 'Sculpting Steel', 'Darksteel Citadel', 'Arbalest Engineers', 'Lizard Blades', 'Duneblast', 'Wilt', 'Rampant Growth', 'Rix Maadi Reveler', 'Sigrid, God-Favored', 'Artisan of Kozilek', 'Battle of Frost and Fire', 'Canopy Vista', 'Eldrazi Displacer', 'Phyrexian Censor', 'Malcator, Purity Overseer', 'Kambal, Consul of Allocation', 'Rustvale Bridge', 'Lightning Strike', 'Oni-Cult Anvil', 'Fade from Memory', 'Surrak, the Hunt Caller', 'Archpriest of Shadows', 'Monument to Perfection', 'Shrapnel Blast', 'Ardent Recruit', 'Terminus', 'Engulf the Shore', 'Sinister Concoction', 'Chittering Rats', 'Sphinx''s Herald', 'Vampire Nighthawk', 'Castigate', 'Luminarch Ascension', 'Invisible Stalker', 'Elspeth Conquers Death', 'Murderous Redcap', 'Fire Prophecy', 'Delver of Secrets', 'Fight as One', 'Wolfbriar Elemental', 'Wandering Fumarole', 'Hinterland Harbor', 'Battle of Wits', 'Thawing Glaciers', 'Tangled Islet', 'Fierce Empath', 'Kjeldoran Outpost', 'Sign in Blood', 'Nine Lives', 'Skyclave Shade', 'Tezzeret''s Gambit', 'Makeshift Mannequin', 'Impulse', 'Third Path Iconoclast', 'Ivy Lane Denizen', 'Glint-Sleeve Siphoner', 'Smoldering Marsh', 'Wasteland Strangler', 'Tanglepool Bridge', 'Ancient Stirrings', 'Urban Evolution', 'Morsel Theft', 'Sacred Peaks', 'Cloudshredder Sliver', 'Cauldron Familiar', 'Tendo Ice Bridge', 'Sarkhan, the Dragonspeaker', 'Caldera Hellion', 'Burst Lightning', 'Elvish Archdruid', 'Dreams of Steel and Oil', 'Mistvault Bridge', 'Choked Estuary', 'Rift Bolt', 'Xenagos, the Reveler', 'Wayward Guide-Beast', 'Rites of Initiation', 'Disenchant', 'Staff of Domination', 'Champion of Wits', 'Invasion of Regatha', 'Vapor Snag', 'Abundant Harvest', 'Fyndhorn Elves', 'Smother', 'Faeburrow Elder', 'Shimmerdrift Vale', 'Lochmere Serpent', 'Grave Titan', 'Into the Story', 'Night of Souls'' Betrayal', 'Goblin Dark-Dwellers', 'Spell Burst', 'Sunpetal Grove', 'Epic Experiment', 'Curse of Exhaustion', 'Gideon''s Intervention', 'Shivan Reef', 'Talisman of Unity', 'Elite Inquisitor', 'Verduran Enchantress', 'Ghostly Flicker', 'Vedalken Heretic', 'Oona''s Prowler', 'Seal of Fire', 'Judge''s Familiar', 'Drowned Catacomb', 'Shimmer Dragon', 'Steppe Lynx', 'Gideon Jura', 'Ensoul Artifact', 'Knight of the White Orchid', 'Jokulhaups', 'Ancestral Blade', 'Hyena Umbra', 'Precursor Golem', 'Dead of Winter', 'Invasion of Amonkhet', 'Ayli, Eternal Pilgrim', 'Liliana Vess', 'Mirage Mirror', 'Assemble the Legion', 'Rule of Law', 'Council''s Judgment', 'Cathedral of War', 'Hero''s Downfall', 'Bituminous Blast', 'Succumb to Temptation', 'Blue Sun''s Zenith', 'Dross Skullbomb', 'Solitary Confinement', 'Grave Scrabbler', 'Seal of Removal', 'Stoke the Flames', 'Sunlit Marsh', 'Dead Weight', 'Elves of Deep Shadow', 'Throat Slitter', 'Search for Azcanta', 'River of Tears', 'Varolz, the Scar-Striped', 'Day of Judgment', 'Vines of Vastwood', 'Sever the Bloodline', 'Vivid Marsh', 'Ruric Thar, the Unbowed', 'Tribute to Hunger', 'Draugr Necromancer', 'Tendrils of Agony', 'Gravelgill Duo', 'Kessig Wolf Run', 'Melira, the Living Cure', 'Demonic Bargain', 'Inevitable Betrayal', 'Brokers Hideout', 'Gitaxian Probe', 'Mazemind Tome', 'Stupor', 'Sandsteppe Citadel', 'Reckoner''s Bargain', 'Shizo, Death''s Storehouse', 'Tocasia''s Dig Site', 'Seedcradle Witch', 'Tilling Treefolk', 'Distorted Curiosity', 'Marauding Blight-Priest', 'Nekrataal', 'Raise the Alarm', 'Combat Thresher', 'Energy Refractor', 'Cathartic Reunion', 'Notorious Throng', 'Kemba, Kha Regent', 'Phyrexian Revoker', 'Norn''s Inquisitor', 'Sunken Hollow', 'Argentum Armor', 'Discovery // Dispersal', 'Mind''s Desire', 'Brainstone', 'Concealing Curtains', 'Fiery Temper', 'Abzan Charm', 'Hideous End', 'Tribute to Horobi', 'Unmarked Grave', 'Duress', 'Nimble Obstructionist', 'Demolition Field', 'Geothermal Bog', 'Nevermore', 'Tangle', 'Become Immense', 'Surge of Salvation', 'Bloodchief Ascension', 'Nested Shambler', 'Dark Petition', 'Deafening Clarion', 'Scrapwork Mutt', 'Apostle''s Blessing', 'Venser, Corpse Puppet', 'Raven''s Crime', 'Hope of Ghirapur', 'Memoricide', 'Stasis Snare', 'Quest for the Holy Relic', 'Lantern-Lit Graveyard', 'Duplicant', 'Garruk Wildspeaker', 'Llanowar Tribe', 'Dead // Gone', 'Voyaging Satyr', 'Elemental Masterpiece', 'Detention Sphere', 'Guile', 'Folio of Fancies', 'Botanical Plaza', 'Call to the Grave', 'Wonder', 'Wooded Bastion', 'Ishkanah, Grafwidow', 'Saproling Migration', 'Rakdos Cackler', 'Magister of Worth', 'Hieroglyphic Illumination', 'Fact or Fiction', 'Arcbound Ravager', 'Kazandu Blademaster', 'Mindslaver', 'Thaumatic Compass', 'Abyssal Persecutor', 'Condemn', 'Big Game Hunter', 'Founding the Third Path', 'Hada Freeblade', 'Stir the Grave', 'Porphyry Nodes', 'Polukranos, World Eater', 'Gloomshrieker', 'Murderous Cut', 'Forbid', 'Nimbus Maze', 'Knowledge Pool', 'Elderscale Wurm', 'Viscera Seer', 'Vivid Crag', 'Grenzo, Dungeon Warden', 'Mystical Teachings', 'Treasure Cruise', 'Tidehollow Sculler', 'Hooting Mandrills', 'Prologue to Phyresis', 'Ashen Rider', 'Dakkon, Shadow Slayer', 'Platinum Angel', 'Repeal', 'Frontier Bivouac', 'Izzet Guildgate', 'Dusk // Dawn', 'Recurring Nightmare', 'Dimir Guildgate', 'Sculpted Perfection', 'Corpse Cur', 'Kaito, Dancing Shadow', 'Racers'' Ring', 'Swooping Lookout', 'Squadron Hawk', 'Invasion of Ergamon', 'Earthquake', 'Knight of Glory', 'Oath of Teferi', 'Titania, Protector of Argoth', 'Izzet Charm', 'Gigadrowse', 'Seismic Assault', 'Experimental Synthesizer', 'Mikokoro, Center of the Sea', 'Chamber Sentry', 'General Ferrous Rokiric', 'Lost Legacy', 'Vigor', 'Possibility Storm', 'Fiery Justice', 'Ulvenwald Hydra', 'Cabaretti Courtyard', 'Ally Encampment', 'Myr Battlesphere', 'Madcap Experiment', 'Orzhov Guildgate', 'Victim of Night', 'Woe Strider', 'Raffine''s Informant', 'Trace of Abundance', 'Sea-Dasher Octopus', 'Anafenza, Kin-Tree Spirit', 'Grand Abolisher', 'Llanowar Augur', 'Yahenni''s Expertise', 'Big Score', 'Wrench Mind', 'Whispersilk Cloak', 'Slagwoods Bridge', 'Narcomoeba', 'World Shaper', 'Angel of Condemnation', 'Ghostfire Blade', 'Unholy Heat', 'Knight of New Alara', 'Hour of Promise', 'Mulldrifter', 'Shardless Agent', 'Vampire Lacerator', 'Orzhov Basilica', 'Hanweir Garrison', 'Jor Kadeen, First Goldwarden', 'Forgotten Cave', 'Kefnet the Mindful', 'Ashenmoor Liege', 'Drowned Rusalka', 'Sheoldred''s Edict', 'Thraben Inspector', 'Network Disruptor', 'Farhaven Elf', 'Ranger of Eos', 'Froghemoth', 'Ground Seal', 'Nephalia Drownyard', 'Doomed Traveler', 'Icehide Golem', 'Glimpse of Tomorrow', 'Kiora Bests the Sea God', 'Festering Newt', 'Bubbling Muck', 'Universal Automaton', 'Riveteers Overlook', 'Temple of Enlightenment', 'Rakdos Guildgate', 'Timely Reinforcements', 'Moorland Haunt', 'Birds of Paradise', 'Heliod''s Pilgrim', 'Acidic Slime', 'Crawling Barrens', 'Rain of Tears', 'Spirited Companion', 'Galerider Sliver', 'Rise and Shine', 'Mulch', 'Temple of Triumph', 'Kitesail Freebooter', 'Drowner of Hope', 'Commune with Nature', 'Akiri, Fearless Voyager', 'Jwari Shapeshifter', 'Chandra, Pyromaster', 'Darksteel Colossus', 'Woodfall Primus', 'Wood Elves', 'Oath of Kaya', 'Bolas''s Citadel', 'Ivory Tower', 'Consuming Vapors', 'Maelstrom Pulse', 'Late to Dinner', 'Faerie Vandal', 'Idyllic Beachfront', 'Caves of Koilos', 'Marble Diamond', 'Reflector Mage', 'Rootbound Crag', 'Blood Artist', 'Otherworldly Journey', 'Wizard''s Retort', 'Obstinate Baloth', 'Kunoros, Hound of Athreos', 'See Beyond', 'Colossal Skyturtle', 'Canyon Slough', 'Ornithopter', 'Fetid Pools', 'Mystic Monastery', 'Simian Sling', 'Stone Rain', 'Mirran Crusader', 'Bitter Reunion', 'Empyrial Armor', 'Bring the Ending', 'Ethersworn Sphinx', 'Sylvan Advocate', 'Bloodvial Purveyor', 'Mina and Denn, Wildborn', 'Malakir Rebirth', 'Cabal Ritual', 'Destroy Evil', 'Dark-Dweller Oracle', 'Weapons Trainer', 'Far // Away', 'Angel of Serenity', 'Kor Skyfisher', 'Marit Lage''s Slumber', 'Experimental Augury', 'Shape Anew', 'Scour All Possibilities', 'Baneful Omen', 'Sylvan Caryatid', 'Elas il-Kor, Sadistic Pilgrim', 'Fearless Fledgling', 'Divinity of Pride', 'Open the Gates', 'Augur of Bolas', 'Rites of Spring', 'Oracle of Tragedy', 'Stern Dismissal', 'Temple of Malady', 'Kogla, the Titan Ape', 'Tyrant''s Choice', 'Mesmeric Fiend', 'Sterling Grove', 'Barbed Sextant', 'Ghitu Lavarunner', 'Oona''s Grace', 'Golgari Guildgate', 'Knight of the Reliquary', 'Ancient Ziggurat', 'Electrolyze', 'Pharika''s Libation', 'Farseek', 'Vryn Wingmare', 'Bump in the Night', 'Yavimaya Coast', 'Deprive', 'Mortuary Mire', 'Deep Analysis', 'Blightbelly Rat', 'Game Trail', 'Sin Collector', 'Saffi Eriksdotter', 'Brineborn Cutthroat', 'Blanchwood Prowler', 'Touch the Spirit Realm', 'Joint Exploration', 'Green Sun''s Twilight', 'Slogurk, the Overslime', 'Temple of Abandon', 'Kitchen Imp', 'Nissa, Steward of Elements', 'Drake Haven', 'Ethereal Armor', 'Tocatli Honor Guard', 'Siege Rhino', 'Faith''s Reward', 'Talisman of Curiosity', 'Pyroclasm', 'Yawgmoth''s Bargain', 'Tymaret, Chosen from Death', 'Jungle Shrine', 'Myr Superion', 'Lotus Cobra', 'Incinerate', 'Necrogen Spellbomb', 'Doomskar', 'Putrid Imp', 'Altar of the Goyf', 'Ignite Memories', 'Dragonskull Summit', 'Changeling Outcast', 'Cleansing Wildfire', 'Armored Scrapgorger', 'Eternal Scourge', 'Stoic Rebuttal', 'Sea Gate Oracle', 'Chandra, Flamecaller', 'Geomancer''s Gambit', 'Frost Titan', 'Marwyn, the Nurturer', 'Golgari Rot Farm', 'Huatli, Radiant Champion', 'Explore', 'Leonin Warleader', 'Control Magic', 'Corrupted Crossroads', 'Crack the Earth', 'Dread Wanderer', 'Raze to the Ground', 'Circuit Mender', 'Argentum Masticore', 'Scrapheap Scrounger', 'Secluded Courtyard', 'Sigil of the Empty Throne', 'Pardic Miner', 'Loxodon Smiter', 'Brave the Elements', 'The Underworld Cookbook', 'Gruul Guildgate', 'Felidar Cub', 'Falkenrath Pit Fighter', 'Fleecemane Lion', 'Artistic Refusal', 'Twinshot Sniper', 'Chain Lightning', 'Mishra''s Factory', 'Sprite Dragon', 'Dawn of Hope', 'Hissing Quagmire', 'Dismal Backwater', 'Izzet Boilerworks', 'Sylvan Library', 'Satyr Wayfinder', 'Godo, Bandit Warlord', 'Out of Time', 'Aetherblade Agent', 'Goblin Electromancer', 'Sire of Insanity', 'Union of the Third Path', 'Thrash // Threat', 'Phyrexian Dreadnought', 'Zuran Orb', 'Mistcutter Hydra', 'Mindcrank', 'Predatory Sliver', 'Dark Ritual', 'Unburial Rites', 'Greater Tanuki', 'Radha, Heart of Keld', 'Bogbrew Witch', 'Obscura Charm', 'Scrabbling Claws', 'Ossification', 'Pore Over the Pages', 'Reveillark', 'Frost Marsh', 'Tooth and Nail', 'Into the Roil', 'Zephyr Singer', 'White Sun''s Zenith', 'Graveborn Muse', 'Kitchen Finks', 'Chief of the Foundry', 'Dauntless Bodyguard', 'Kabira Takedown', 'Phantasmal Image', 'Gnat Miser', 'Mana Leak', 'Arlinn Kord', 'Commence the Endgame', 'Valakut Exploration', 'Vault of the Archangel', 'Negate', 'Eerie Ultimatum', 'Esper Charm', 'Pack Rat', 'Archaeomancer', 'Commune with the Gods', 'Silverbluff Bridge', 'Karn''s Bastion', 'Counterflux', 'Pain Seer', 'Yavimaya Iconoclast', 'Gruul Turf', 'The Flame of Keld', 'Steel Overseer', 'Sandwurm Convergence', 'Stubborn Denial', 'Archangel of Wrath', 'Abundant Growth', 'Figure of Destiny', 'Zur''s Weirding', 'Thragtusk', 'Chandra, Fire Artisan', 'Anguished Unmaking', 'Martyr of Sands', 'Dimensional Infiltrator', 'Contaminated Aquifer', 'Spell Pierce', 'Nomad Outpost', 'Sulfur Falls', 'Tribal Flames', 'Ponder', 'Oracle of Mul Daya', 'Venerated Loxodon', 'Wrath of God', 'Vivid Grove', 'Murmuring Bosk', 'Silundi Vision', 'Resurgent Belief', 'Increasing Ambition', 'Enchantress''s Presence', 'Jungle Hollow', 'Herd Migration', 'Flaying Tendrils', 'Mothdust Changeling', 'Sudden Edict', 'Blade Splicer', 'Avacyn''s Pilgrim', 'Jukai Naturalist', 'Kalastria Healer', 'Heartless Act', 'Nature''s Lore', 'Ravenous Squirrel', 'Yasharn, Implacable Earth', 'Arch of Orazca', 'Fruit of Tizerus', 'Think Twice', 'Altar of the Brood', 'Bloodsoaked Champion', 'Decree of Justice', 'Hypnotic Specter', 'Flooded Grove', 'Terramorphic Expanse', 'Llanowar Mentor', 'Myth Realized', 'Psychic Possession', 'Coiling Oracle', 'Teferi, Mage of Zhalfir', 'Nissa, Worldwaker', 'Nullpriest of Oblivion', 'Tectonic Edge', 'Check for Traps', 'The Celestus', 'Timeless Dragon', 'Rise // Fall', 'Search for Tomorrow', 'Faerie Miscreant', 'Boreal Shelf', 'Temple of Silence', 'Blazing Rootwalla', 'Timeless Witness', 'Mouth of Ronom', 'Mausoleum Secrets', 'Kami of False Hope', 'Shriekmaw', 'Strike It Rich', 'Obscura Storefront', 'Karumonix, the Rat King', 'Moderation', 'Arbor Elf', 'Eldrazi Skyspawner', 'Bident of Thassa', 'Diabolic Tutor', 'Call of the Death-Dweller', 'Glistener Elf', 'Azorius Guildgate', 'Goldmire Bridge', 'Basilisk Collar', 'Malicious Malfunction', 'Genesis Ultimatum', 'Curiosity', 'Orim''s Chant', 'Quiet Speculation', 'Sins of the Past', 'Scrying Sheets', 'Tolarian Terror', 'Settle the Wreckage', 'Mirror Entity', 'Obzedat, Ghost Council', 'Kemba, Kha Enduring', 'Lavinia of the Tenth'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Desperate Ritual', 'Earthquake', 'Knight of New Alara', 'Cleansing Wildfire', 'Norn''s Inquisitor', 'Changeling Outcast', 'Giant Killer', 'Maestros Charm', 'Bloodbraid Elf', 'Bubbling Cauldron', 'Temple of Silence', 'Tear Asunder', 'Kaya, Ghost Assassin', 'Nimble Obstructionist', 'Whispersilk Cloak', 'Stoke the Flames', 'Fetid Heath', 'Divest', 'Delver of Secrets', 'Mausoleum Secrets', 'Temple of Abandon', 'Artisan of Kozilek', 'Elixir of Immortality', 'Knight of the White Orchid', 'Malcator, Purity Overseer', 'Disallow', 'Ogre Slumlord', 'Hissing Quagmire', 'Memoricide', 'Lochmere Serpent', 'Makeshift Mannequin', 'Radiant Grove', 'Glint-Sleeve Siphoner', 'Drowned Rusalka', 'Nether Spirit', 'Grave Titan', 'Angel of Grace', 'Viashino Pyromancer', 'Luminarch Ascension', 'Midnight Reaper', 'Abzan Charm', 'Gadrak, the Crown-Scourge', 'Boreal Shelf', 'Drown in Ichor', 'Vivid Marsh', 'Basking Rootwalla', 'Champion of Wits', 'Anguished Unmaking', 'Purify the Grave', 'Temple of Enlightenment', 'Venser, Shaper Savant', 'Varolz, the Scar-Striped', 'Kessig Wolf Run', 'Opulent Palace', 'Hour of Promise', 'Dead // Gone', 'Fertile Ground', 'Ivory Tower', 'Phoenix Chick', 'Dakkon, Shadow Slayer', 'Drake Haven', 'Fact or Fiction', 'Ulvenwald Hydra', 'Eldrazi Displacer', 'Elvish Visionary', 'Ancestral Blade', 'Kemba, Kha Regent', 'Kher Keep', 'Ertai''s Scorn', 'Destiny Spinner', 'Evolving Wilds', 'Tooth and Nail', 'Herald of the Pantheon', 'Kabira Takedown', 'Assemble the Legion', 'Darksteel Colossus', 'Melira, the Living Cure', 'Cauldron Familiar', 'Ramunap Excavator', 'Sweltering Suns', 'Control Magic', 'Oust', 'Phyrexian Dreadnought', 'Tranquil Thicket', 'Leonin Relic-Warder', 'Mulch', 'Inscribed Tablet', 'Haunted Fengraf', 'Abiding Grace', 'Maelstrom Pulse', 'Yisan, the Wanderer Bard', 'Rabbit Battery', 'The Scorpion God', 'Festering Newt', 'Zuran Orb', 'Sigrid, God-Favored', 'Nine Lives', 'Verduran Enchantress', 'Elvish Rejuvenator', 'Bilious Skulldweller', 'Vault of the Archangel', 'Flaying Tendrils', 'Kiora, the Crashing Wave', 'Misery Charm', 'Lizard Blades', 'Orcish Lumberjack', 'Worship', 'Lingering Souls', 'Vindicate', 'Selesnya Guildgate', 'Frantic Inventory', 'Explore', 'Nested Shambler', 'Drossforge Bridge', 'Felidar Cub', 'Bontu''s Last Reckoning', 'Kazandu Blademaster', 'Grand Arbiter Augustin IV', 'Shimmer Dragon', 'Sylvan Library', 'Prosperous Thief', 'Ravenous Squirrel', 'Empyrial Plate', 'Caves of Koilos', 'Faerie Miscreant', 'World Shaper', 'Abundant Harvest', 'Apostle''s Blessing', 'Predatory Sliver', 'Boon-Bringer Valkyrie', 'Combat Thresher', 'Disrupting Shoal', 'Rise // Fall', 'Genesis Ultimatum', 'Silver-Fur Master', 'Lazotep Chancellor', 'Summary Dismissal', 'Scour All Possibilities', 'Thraben Inspector', 'Dead of Winter', 'Quiet Speculation', 'Battle of Frost and Fire', 'Heartless Act', 'Ephara, God of the Polis', 'Voltage Surge', 'Psychic Possession', 'Idyllic Tutor', 'Kumano Faces Kakkazan', 'Canyon Slough', 'Energy Refractor', 'Return to the Ranks', 'Embodiment of Fury', 'Doomskar', 'Oblivion Ring', 'Oona, Queen of the Fae', 'Dimir Aqueduct', 'Experimental Synthesizer', 'Second Sunrise', 'Trace of Abundance', 'Benevolent Bodyguard', 'Hard Evidence', 'Counterflux', 'Raffine''s Informant', 'Aegis of the Gods', 'Unctus, Grand Metatect', 'Colossal Skyturtle', 'Secluded Steppe', 'Glamerdye', 'Temple of Deceit', 'Nimbus Maze', 'Dragon''s Hoard', 'Throat Slitter', 'Ivy Lane Denizen', 'Chief Engineer', 'Quicken', 'Notorious Throng', 'Llanowar Mentor', 'Choked Estuary', 'Eiganjo Castle', 'Elves of Deep Shadow', 'Mesmeric Fiend', 'Bident of Thassa', 'Vines of Vastwood', 'Electrolyze', 'Viscera Seer', 'Kappa Tech-Wrecker', 'Draugr Necromancer', 'Corrupted Conviction', 'Obliterate', 'Combat Research', 'Temple of Triumph', 'Inevitable Betrayal', 'Esper Charm', 'Llanowar Augur', 'Diabolic Tutor', 'Plated Geopede', 'Baneful Omen', 'Spirited Companion', 'Heap Doll', 'Obzedat, Ghost Council', 'Pyrite Spellbomb', 'Sin Collector', 'Kiora Bests the Sea God', 'Skyclave Shade', 'Liliana Vess', 'Bolas''s Citadel', 'Seething Song', 'Tresserhorn Sinks', 'Cathartic Reunion', 'Carven Caryatid', 'Talisman of Unity', 'Myr Battlesphere', 'Ignite Memories', 'Harmonize', 'Sarkhan, the Dragonspeaker', 'Archpriest of Shadows', 'Upheaval', 'Fae of Wishes', 'Sinister Concoction', 'Corrupted Crossroads', 'White Sun''s Zenith', 'Sign in Blood', 'Pharika''s Cure', 'Llanowar Tribe', 'Invigorate', 'Marit Lage''s Slumber', 'Mouth of Ronom', 'Teshar, Ancestor''s Apostle', 'Madcap Experiment', 'Erebos''s Intervention', 'Forbidden Alchemy', 'Brave the Sands', 'Arlinn Kord', 'Botanical Plaza', 'Bloodvial Purveyor', 'Woodfall Primus', 'Temple of Plenty', 'Folio of Fancies', 'Orzhov Charm', 'Greater Gargadon', 'Tectonic Edge', 'Falkenrath Pit Fighter', 'Odds // Ends', 'Fearless Fledgling', 'Ghitu Lavarunner', 'Waking the Trolls', 'Check for Traps', 'Gruul Guildgate', 'Galerider Sliver', 'Vadrik, Astral Archmage', 'Izzet Guildgate', 'Ulcerate', 'Sphinx''s Herald', 'Burst Lightning', 'Murderous Cut', 'Mistblade Shinobi', 'Oath of Kaya', 'Teneb, the Harvester', 'Master of Death', 'Kalastria Healer', 'Restoration Angel', 'Forsake the Worldly', 'Disenchant', 'Thornwood Falls', 'Cloudpost', 'Timely Reinforcements', 'Cabaretti Courtyard', 'Epic Experiment', 'Devious Cover-Up', 'Grim Haruspex', 'Demolition Field', 'Titania, Protector of Argoth', 'Repudiate // Replicate', 'Needle Spires', 'Summer Bloom', 'Ally Encampment', 'Declaration in Stone', 'Dovin''s Acuity', 'Reckoner''s Bargain', 'Resurgent Belief', 'Rocco, Cabaretti Caterer', 'Springleaf Drum', 'Yasharn, Implacable Earth', 'Bloodline Keeper', 'Rites of Initiation', 'Sin Prodder', 'Swooping Lookout', 'Consuming Vapors', 'Tymaret, Chosen from Death', 'Silversmote Ghoul', 'Search for Azcanta', 'Oni-Cult Anvil', 'Reinforced Ronin', 'Revitalize', 'Prophetic Prism', 'Orzhov Guildgate', 'Scrapwork Mutt', 'Siege Rhino', 'Mirror Entity', 'Zur''s Weirding', 'Devil''s Play', 'Rally the Ancestors', 'Skyshroud Elf', 'Change the Equation', 'Dragonskull Summit', 'Drowned Catacomb', 'Precursor Golem', 'Gnawing Vermin', 'Groundswell', 'Fleecemane Lion', 'Silumgar''s Scorn', 'Halana and Alena, Partners', 'Martyr of Sands', 'Simian Spirit Guide', 'Knight of the Reliquary', 'Frenetic Sliver', 'Tendrils of Agony', 'Snow-Covered Mountain', 'Riveteers Charm', 'Scab-Clan Berserker', 'Narcomoeba', 'Sea-Dasher Octopus', 'Obscura Storefront', 'Thundermaw Hellkite', 'Ethereal Armor', 'Phyrexian Censor', 'Glacial Fortress', 'Bituminous Blast', 'Protect the Negotiators', 'Remorseful Cleric', 'Drainpipe Vermin', 'Ensoul Artifact', 'Terminus', 'River of Tears', 'Far // Away', 'Bogardan Hellkite', 'Grave Scrabbler', 'Hypergenesis', 'Spell Burst', 'Deep Analysis', 'Gnat Miser', 'Kitesail Freebooter', 'Jungle Shrine', 'Putrefy', 'Unholy Heat', 'Barbed Sextant', 'Cryptic Caves', 'Halimar Excavator', 'Phantasmal Image', 'General''s Enforcer', 'Hanweir Garrison', 'Frontier Bivouac', 'Ovika, Enigma Goliath', 'Bump in the Night', 'Wooded Bastion', 'Dokuchi Silencer', 'Ayara, First of Locthwain', 'Cartel Aristocrat', 'Mistcutter Hydra', 'Toolcraft Exemplar', 'Ethersworn Sphinx', 'Fruit of Tizerus', 'Ghostly Pilferer', 'Raven''s Crime', 'Open the Gates', 'Ammit Eternal', 'Vexing Shusher', 'Etherium Sculptor', 'Fireblade Charger', 'Geyadrone Dihada', 'Shimmerdrift Vale', 'Darksteel Citadel', 'Nezahal, Primal Tide', 'Wrath of God', 'Rix Maadi Reveler', 'Silverbluff Bridge', 'Briarbridge Tracker', 'Ancient Ziggurat', 'Obscura Charm', 'Frantic Search', 'Geomancer''s Gambit', 'Vampire Lacerator', 'Presence of Gond', 'Silent Gravestone', 'Succumb to Temptation', 'Kambal, Consul of Allocation', 'Chandra, Flamecaller', 'Graveborn Muse', 'Tempest Djinn', 'Repeal', 'Spatial Contortion', 'Duress', 'Executioner''s Capsule', 'Mikokoro, Center of the Sea', 'Prologue to Phyresis', 'Stinkdrinker Bandit', 'Witching Well', 'Voidwing Hybrid', 'Geothermal Bog', 'Silundi Vision', 'Mothdust Changeling', 'Go for the Throat', 'Kaito, Dancing Shadow', 'Westvale Abbey', 'Grafted Butcher', 'Patchwork Automaton', 'Supreme Will', 'Vampire Neonate', 'Floriferous Vinewall', 'Jor Kadeen, First Goldwarden', 'Vivid Grove', 'Lavaclaw Reaches', 'Mnemonic Sphere', 'Dawn of Hope', 'Decree of Justice', 'Thassa''s Intervention', 'Simian Sling', 'Angrath, the Flame-Chained', 'Invoke Calamity', 'Yahenni''s Expertise', 'All That Glitters', 'Ruric Thar, the Unbowed', 'Grand Architect', 'Stasis Snare', 'Serra Ascendant', 'Faerie Vandal', 'General Ferrous Rokiric', 'Shardless Agent', 'Venerated Loxodon', 'Tainted Indulgence', 'Genesis Hydra', 'Expedition Envoy', 'Sol Talisman', 'Rakdos Cackler', 'Sprite Dragon', 'Chamber Sentry', 'Kor Skyfisher', 'Flame Rift', 'Kozilek''s Predator', 'Invasion of Regatha', 'Karumonix, the Rat King', 'Karn''s Bastion', 'Stromkirk Noble', 'Artistic Refusal', 'Volt Charge', 'Raging Ravine', 'Forgotten Cave', 'Aether Spellbomb', 'Dreadhorde Butcher', 'Smallpox', 'Big Score', 'Hooting Mandrills', 'Cliffside Lookout', 'Steel Overseer', 'Gideon Jura', 'Ghost Quarter', 'Ranger of Eos', 'Frostwalk Bastion', 'Figure of Destiny', 'Sunstrike Legionnaire', 'Assault // Battery', 'Buried Ruin', 'Arcbound Ravager', 'Duplicant', 'Castigate', 'Recurring Nightmare', 'Elemental Masterpiece', 'Smother', 'Kjeldoran Outpost', 'Psychatog', 'Blight Mamba', 'Lightning Strike', 'Hinterland Harbor', 'Hideous End', 'Knowledge Pool', 'Flametongue Kavu', 'Chaotic Transformation', 'Racers'' Ring', 'Seismic Assault', 'Timeless Witness', 'Gruul Turf', 'Cremate', 'Pain Seer', 'Tolarian Terror', 'Game Trail', 'Demigod of Revenge', 'Soltari Priest', 'Mana Leak', 'Talisman of Curiosity', 'Mistveil Plains', 'Fallaji Archaeologist', 'Engulf the Shore', 'Syphon Life', 'Orzhov Basilica', 'Wanderwine Hub', 'Oath of Teferi', 'Yawgmoth''s Bargain', 'Dusk // Dawn', 'Scuttling Doom Engine', 'Forbid', 'Krosan Grip', 'Condemn', 'Sudden Edict', 'Rise and Shine', 'Necrogen Spellbomb', 'Arguel''s Blood Fast', 'Chief of the Foundry', 'Torens, Fist of the Angels', 'Dying to Serve', 'Vivid Crag', 'Nature''s Lore', 'Ambush Viper', 'Fade from Memory', 'Network Disruptor', 'Elderscale Wurm', 'Lotus Cobra', 'Annex Sentry', 'Pariah', 'Destroy Evil', 'Rootbound Crag', 'Sever the Bloodline', 'Vigor', 'Deep Forest Hermit', 'Hostage Taker', 'Ancient Amphitheater', 'Jace Beleren', 'Rampant Growth', 'Ossification', 'Venser, Corpse Puppet', 'Raze to the Ground', 'Kemba, Kha Enduring', 'Nephalia Drownyard', 'Dark Ritual', 'Mystical Teachings', 'Satyr Wayfinder', 'Avacyn''s Pilgrim', 'Master of Etherium', 'Pull from Tomorrow', 'Terastodon', 'Mirran Crusader', 'Shriekmaw', 'Knight of Glory', 'Curiosity', 'Eldrazi Skyspawner', 'Blue Sun''s Zenith', 'Touch the Spirit Realm', 'Altar of the Goyf', 'Tocasia''s Dig Site', 'Sacred Peaks', 'Strike It Rich', 'Rakdos Guildgate', 'Dream Trawler', 'Phyrexian Unlife', 'Slaughter Pact', 'Dread Wanderer', 'Chandra, Fire Artisan', 'Bring the Ending', 'Wayward Guide-Beast', 'Bloodsoaked Champion', 'Anger of the Gods', 'Azorius Guildgate', 'Sinew Sliver', 'Hada Freeblade', 'Archon of Sun''s Grace', 'Stone Haven Outfitter', 'Cloudshredder Sliver', 'Chain Lightning', 'Pyroclasm', 'Surge of Salvation', 'Cataclysmic Gearhulk', 'Glimpse of Tomorrow', 'Heliod''s Pilgrim', 'Birds of Paradise', 'Thaumatic Compass', 'Sleight of Hand', 'Sylvan Caryatid', 'Jungle Hollow', 'Eternal Scourge', 'Kruphix''s Insight', 'Rotting Rats', 'Xenagos, the Reveler', 'Thawing Glaciers', 'Yavimaya Iconoclast', 'Oona''s Grace', 'Gift of Estates', 'Otherworldly Journey', 'Nevermore', 'Open the Armory', 'Blessed Alliance', 'Brokers Hideout', 'Fierce Empath', 'Disciple of Bolas', 'Sigil of the Empty Throne', 'Ral, Storm Conduit', 'Circuit Mender', 'Oracle of Mul Daya', 'Experimental Augury', 'Wonder', 'Dead Weight', 'Reflector Mage', 'Eerie Ultimatum', 'Basilisk Collar', 'Treasure Cruise', 'Felidar Retreat', 'Platinum Angel', 'Scrabbling Claws', 'Goblin Bombardment', 'Doomed Traveler', 'The Seedcore', 'Sarkhan the Masterless', 'Altar of the Brood', 'Cabal Ritual', 'Clifftop Retreat', 'Blood on the Snow', 'Turnabout', 'Squadron Hawk', 'Pardic Miner', 'Meeting of Minds', 'Sphere of Safety', 'Grenzo, Dungeon Warden', 'Dimensional Infiltrator', 'Possibility Storm', 'Jokulhaups', 'Frost Marsh', 'Ishkanah, Grafwidow', 'Gutterbones', 'Vraska''s Contempt', 'Ground Seal', 'Sea Gate Oracle', 'Shred Memory', 'Out of Time', 'Blood Artist', 'Tidehollow Sculler', 'Elvish Mystic', 'Winds of Abandon', 'Time of Need', 'Garruk Wildspeaker', 'Arch of Orazca', 'Invasion of Amonkhet', 'Priest of the Haunted Edge', 'Izzet Charm', 'Pore Over the Pages', 'Blightning', 'Herd Migration', 'Leonin Arbiter', 'Myr Superion', 'Phyrexian Revoker', 'Hornet Queen', 'Tocatli Honor Guard', 'Rift Bolt', 'Marble Diamond', 'Yavimaya Coast', 'Tezzeret, Artifice Master', 'The Underworld Cookbook', 'Detention Sphere', 'Weathered Wayfarer', 'Akiri, Fearless Voyager', 'Sheoldred''s Edict', 'Mindcrank', 'Wood Elves', 'Delay', 'Flooded Grove', 'Sulfur Falls', 'Acidic Slime', 'Demonic Bargain', 'Crux of Fate', 'Invasion of Azgol', 'Call to the Grave', 'Commune with Spirits', 'Union of the Third Path', 'Zephyr Singer', 'Inkwell Leviathan', 'The Celestus', 'Victim of Night', 'Bloodchief Ascension', 'Crawling Barrens', 'Steppe Lynx', 'Rune Snag', 'Crack the Earth', 'Distorted Curiosity', 'Ghostly Flicker', 'Might of Old Krosa', 'Malakir Rebirth', 'Forging the Anchor', 'Glorybringer', 'Shambling Vent', 'Slogurk, the Overslime', 'Gideon''s Intervention', 'Magister of Worth', 'Woodland Cemetery', 'Rule of Law', 'Gilt-Leaf Archdruid', 'Fyndhorn Elves', 'Mystic Monastery', 'Big Game Hunter', 'Monument to Perfection', 'Joint Exploration', 'Sandsteppe Citadel', 'Progenitor Exarch', 'Mind''s Desire', 'Scarab Feast', 'Incinerate', 'Sylvan Advocate', 'Commune with Nature', 'Hypnotic Specter', 'Overgrowth', 'Malicious Malfunction', 'Tanglepool Bridge', 'Sterling Grove', 'Universal Automaton', 'Blazing Rootwalla', 'Woe Strider', 'Vessel of Nascency', 'Lose Focus', 'Ral, Izzet Viceroy', 'Dark-Dweller Oracle', 'Triumphant Adventurer', 'Urban Evolution', 'Agonizing Remorse', 'Jace, Architect of Thought', 'Vampiric Rites', 'Polukranos, World Eater', 'Koth, Fire of Resistance', 'Pyretic Ritual', 'Anafenza, Kin-Tree Spirit', 'Gigadrowse', 'Kor Firewalker', 'Vraan, Executioner Thane', 'Nomad Outpost', 'Shape Anew', 'Evangel of Synthesis', 'Silumgar, the Drifting Death', 'Black Sun''s Zenith', 'Argentum Armor', 'Solitary Confinement', 'Murmuring Bosk', 'Goldmire Bridge', 'Into the Roil', 'Settle the Wreckage', 'Day of Judgment', 'Llanowar Elves', 'Heliod''s Intervention', 'Vampire Hexmage', 'Loxodon Smiter', 'Invisible Stalker', 'Gateway Plaza', 'Huatli, Radiant Champion', 'Vampire Nighthawk', 'Search for Tomorrow', 'Canopy Vista', 'Ashen Rider', 'Concealing Curtains', 'Thrill of Possibility', 'Chittering Rats', 'Careful Cultivation', 'Founding the Third Path', 'Thrash // Threat', 'Corpse Cur', 'Blanchwood Prowler', 'Wall of Omens', 'Death Cloud', 'Approach of the Second Sun', 'Thornglint Bridge', 'Brainstone', 'Banishing Slash', 'Elspeth Conquers Death', 'Scrapheap Scrounger', 'Herd Baloth', 'Council''s Judgment', 'Temple of Malady', 'Mina and Denn, Wildborn', 'Nimble Trapfinder', 'Wasteland Strangler', 'Invasion of Ergamon', 'Temple of Mystery', 'Jwari Disruption', 'Boros Guildgate', 'Unlucky Witness', 'Wrench Mind', 'Seal of Fire', 'Deprive', 'Mazemind Tome', 'Voldaren Pariah', 'Utter End', 'Saproling Migration', 'Third Path Iconoclast', 'Bloodchief''s Thirst', 'Obstinate Baloth', 'Think Twice', 'Quest for the Holy Relic', 'Isolated Chapel', 'Endbringer', 'Scrying Sheets', 'Arcane Sanctum', 'Vryn Wingmare', 'Chandra, Pyromaster', 'Circular Logic', 'Argentum Masticore', 'Sire of Insanity', 'Kami of False Hope', 'Solemnity', 'Saffi Eriksdotter', 'Dire-Strain Rampage', 'Spell Pierce', 'Orim''s Chant', 'Dregscape Zombie', 'Vraska''s Fall', 'Shard Volley', 'Hall of Oracles', 'Pack Rat', 'Wandering Fumarole', 'Primal Command', 'Molten Tributary', 'Sunken Hollow', 'Seal of Removal', 'Oracle of Tragedy', 'Lay Down Arms', 'Arbor Elf', 'Sheltered Thicket', 'Mulldrifter', 'Marwyn, the Nurturer', 'Blightbelly Rat', 'Kitchen Finks', 'Hope of Ghirapur', 'Swiftfoot Boots', 'Brave the Elements', 'Price of Progress', 'Vapor Snag', 'Wolfbriar Elemental', 'Mastermind''s Acquisition', 'Call of the Death-Dweller', 'Lavinia of the Tenth', 'Coiling Oracle', 'Sins of the Past', 'Moderation', 'Wilt', 'Seedcradle Witch', 'Kitchen Imp', 'Maze''s End', 'Greater Tanuki', 'Snow-Covered Plains', 'Consult the Necrosages', 'Jwari Shapeshifter', 'Scattered Groves', 'Abyssal Persecutor', 'Port Town', 'Bogbrew Witch', 'Mortuary Mire', 'Mistvault Bridge', 'Kunoros, Hound of Athreos', 'Arcum''s Astrolabe', 'Gather the Pack', 'Tribal Flames', 'Fetid Pools', 'Myth Realized', 'Lost Legacy', 'Mindslaver', 'Dimir Guildgate', 'Gallia of the Endless Dance', 'Sandwurm Convergence', 'Stubborn Denial', 'Gift of Immortality', 'Rakdos Charm', 'Ayli, Eternal Pilgrim', 'Brain Freeze', 'Wizard''s Retort', 'Dauntless Bodyguard', 'Nissa, Worldwaker', 'Merciless Eviction', 'Fumigate', 'Tidespout Tyrant', 'Dismal Backwater', 'Kogla, the Titan Ape', 'Frost Titan', 'Stinkweed Imp', 'Ornithopter', 'Diffusion Sliver', 'Wild Cantor', 'Ashnod, Flesh Mechanist', 'Gravelgill Duo', 'Radha, Heart of Keld', 'Ghostfire Blade', 'Tilling Treefolk', 'Stir the Grave', 'Ancient Stirrings', 'Venser, the Sojourner', 'Pharika''s Libation', 'Valakut Exploration', 'Consume the Meek', 'Hero''s Downfall', 'Wrenn''s Resolve', 'Reveillark', 'Icehide Golem', 'Snow-Covered Swamp', 'Rakdos''s Return', 'Servo Exhibition', 'Thopter Spy Network', 'Elas il-Kor, Sadistic Pilgrim', 'Sunpetal Grove', 'Sculpting Steel', 'Idyllic Beachfront', 'Shivan Reef', 'Twinshot Sniper', 'Riveteers Overlook', 'Divinity of Pride', 'Moorland Haunt', 'Lagrella, the Magpie', 'Shrapnel Blast', 'Helm of the Host', 'Razortide Bridge', 'Goblin Dark-Dwellers', 'Late to Dinner', 'Vault Skirge', 'Farseek', 'Deafening Clarion', 'Cathedral of War', 'Hieroglyphic Illumination', 'Barter in Blood', 'Terminate', 'Glistener Elf', 'Farhaven Elf', 'Tezzeret''s Gambit', 'Kefnet the Mindful', 'Slagstorm', 'Tendo Ice Bridge', 'Abundant Growth', 'Mindsplice Apparatus', 'Bone Shards', 'Nissa, Steward of Elements', 'Archaeomancer', 'Stirring Wildwood', 'Vedalken Heretic', 'Dreams of Steel and Oil', 'Collected Conjuring', 'Archangel of Wrath', 'Fracturing Gust', 'Putrid Imp', 'Nullpriest of Oblivion', 'Yorion, Sky Nomad', 'Memory Lapse', 'Barbarian Ring', 'Healer''s Hawk', 'Become Immense', 'Enchantress''s Presence', 'Silverblade Paladin', 'Evacuation', 'Morsel Theft', 'Elvish Archdruid', 'Impulse', 'Izzet Boilerworks', 'Goblin Electromancer', 'Faeburrow Elder', 'Mirage Mirror', 'Eidolon of Blossoms', 'Mesa Enchantress', 'Stone Rain', 'Cabal Initiate', 'Murderous Redcap', 'Secluded Courtyard', 'Godo, Bandit Warlord', 'Spectral Shift', 'Sorin, Vengeful Bloodlord', 'The Flame of Keld', 'Commence the Endgame', 'Commit // Memory', 'Thragtusk', 'Caldera Hellion', 'Cabal Therapist', 'Elite Inquisitor', 'Blade Splicer', 'Pillar of the Paruns', 'Voidslime', 'Alms of the Vein', 'Akoum Hellhound', 'Melira, Sylvok Outcast', 'Timeless Dragon', 'Hesitation', 'Contaminated Aquifer', 'Battle of Wits', 'Glimmerpost', 'Tyrant''s Choice', 'Feed the Swarm', 'Bitter Reunion', 'Honor of the Pure', 'Unburial Rites', 'Nimble Larcenist', 'Forked Bolt', 'Smoldering Marsh', 'Angel of Condemnation', 'Discovery // Dispersal', 'Commune with the Gods', 'Green Sun''s Twilight', 'Anafenza, the Foremost', 'Lantern-Lit Graveyard', 'Tribute to Horobi', 'Dissipate', 'Lurrus of the Dream-Den', 'Jukai Naturalist', 'Dryad Militant', 'Gleeful Demolition', 'Night Market Lookout', 'Altered Ego', 'Haunted Mire', 'Augur of Bolas', 'Lodestone Golem', 'Midnight Guard', 'Mishra''s Factory', 'Sculpted Perfection', 'Judge''s Familiar', 'Rites of Spring', 'Into the Story', 'Dark Petition', 'Staff of Domination', 'Gitaxian Probe', 'Armored Scrapgorger', 'Valiant Changeling', 'Runed Halo', 'Aetherblade Agent', 'Invasion of Zendikar', 'Rustvale Bridge', 'Tangle', 'Negate', 'Fiery Temper', 'Doom Blade', 'Marauding Blight-Priest', 'Ardent Recruit', 'Golgari Rot Farm', 'Gloomshrieker', 'Aetherspouts', 'Froghemoth', 'See Beyond', 'Slagwoods Bridge', 'Stern Dismissal', 'Sultai Charm', 'Peek', 'Nameless Inversion', 'Tomebound Lich', 'Sunblade Samurai', 'Seeker of the Way', 'Shizo, Death''s Storehouse', 'Ashenmoor Liege', 'Stoic Rebuttal', 'Sunlit Marsh', 'Territorial Kavu', 'Voyaging Satyr', 'Aetherling', 'Crawling Chorus', 'Exclude', 'Duneblast', 'Leonin Warleader', 'Battlefield Forge', 'Dispatch', 'Grand Abolisher', 'Empyrial Armor', 'Graven Lore', 'Oona''s Prowler', 'Lightning Spear', 'Angel of Despair', 'Cut Down', 'Brineborn Cutthroat', 'Fire Prophecy', 'Curse of Exhaustion', 'Golgari Guildgate', 'Terramorphic Expanse', 'Surrak, the Hunt Caller', 'Stupor', 'Simic Guildgate', 'Cultivate', 'Teferi, Mage of Zhalfir', 'Dread Return', 'Throne of the God-Pharaoh', 'Seal of Cleansing', 'Fight as One', 'Celestial Colonnade', 'Fiery Justice', 'Tangled Islet', 'Gruul Spellbreaker', 'Ponder', 'Weapons Trainer', 'Arbalest Engineers', 'Nekrataal', 'Unmarked Grave', 'Dross Skullbomb', 'Rust Goliath', 'Graaz, Unstoppable Juggernaut', 'Bubbling Muck', 'Raise the Alarm', 'Angel of Serenity', 'Increasing Ambition', 'Squee, Goblin Nabob', 'Ichorclaw Myr', 'Porphyry Nodes', 'Night of Souls'' Betrayal', 'Zombie Infestation', 'Drowner of Hope', 'Grolnok, the Omnivore', 'Graven Cairns', 'Moon-Circuit Hacker', 'Hyena Umbra', 'Azorius Charm', 'King Darien XLVIII', 'Guile', 'Nezumi Graverobber', 'Tribute to Hunger', 'Invasion of New Capenna', 'Burning of Xinye', 'Rain of Tears', 'Archangel Avacyn', 'Nightscape Familiar', 'Faith''s Reward', 'Smuggler''s Copter', 'Xerex Strobe-Knight'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.5 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Krosan Grip', 'Basilisk Collar', 'Doomskar', 'Huatli, Radiant Champion', 'Duneblast', 'Invasion of Ergamon', 'Stone Haven Outfitter', 'Forsake the Worldly', 'Solemnity', 'Ivory Tower', 'Pyretic Ritual', 'Drowned Catacomb', 'Stasis Snare', 'Angel of Serenity', 'Vault Skirge', 'Magister of Worth', 'Careful Cultivation', 'Nezahal, Primal Tide', 'Smoldering Marsh', 'Kemba, Kha Enduring', 'Monument to Perfection', 'Ethereal Armor', 'Leonin Relic-Warder', 'Abiding Grace', 'Aether Spellbomb', 'Viashino Pyromancer', 'Doomed Traveler', 'Archangel Avacyn', 'Nimble Larcenist', 'Selesnya Guildgate', 'Zombie Infestation', 'Vigor', 'Llanowar Mentor', 'Barbarian Ring', 'Rally the Ancestors', 'Stoke the Flames', 'Inevitable Betrayal', 'Stirring Wildwood', 'Shizo, Death''s Storehouse', 'Felidar Retreat', 'Wall of Omens', 'Ethersworn Sphinx', 'Dire-Strain Rampage', 'Chittering Rats', 'Hypergenesis', 'Murderous Redcap', 'Felidar Cub', 'Rule of Law', 'Deprive', 'Stinkdrinker Bandit', 'Surrak, the Hunt Caller', 'Sulfur Falls', 'Succumb to Temptation', 'Enchantress''s Presence', 'Primal Command', 'Sultai Charm', 'Demonic Bargain', 'Greater Gargadon', 'Basking Rootwalla', 'Talisman of Unity', 'Oracle of Mul Daya', 'Arguel''s Blood Fast', 'Smother', 'Voidwing Hybrid', 'Gadrak, the Crown-Scourge', 'Sprite Dragon', 'Ossification', 'Kabira Takedown', 'Mothdust Changeling', 'Gruul Turf', 'Remorseful Cleric', 'Lingering Souls', 'Ivy Lane Denizen', 'Seismic Assault', 'Think Twice', 'Snow-Covered Swamp', 'Burning of Xinye', 'Goblin Bombardment', 'Weathered Wayfarer', 'Glacial Fortress', 'Grand Abolisher', 'Glint-Sleeve Siphoner', 'Halimar Excavator', 'Blight Mamba', 'Tocatli Honor Guard', 'Battle of Frost and Fire', 'Isolated Chapel', 'Thornwood Falls', 'Tribute to Hunger', 'Obzedat, Ghost Council', 'Circuit Mender', 'Champion of Wits', 'Opulent Palace', 'Oona''s Prowler', 'Eidolon of Blossoms', 'Commune with Spirits', 'Unctus, Grand Metatect', 'Corrupted Conviction', 'Raise the Alarm', 'Change the Equation', 'Consume the Meek', 'Collected Conjuring', 'Frostwalk Bastion', 'Xerex Strobe-Knight', 'Jokulhaups', 'Notorious Throng', 'Yorion, Sky Nomad', 'Abundant Growth', 'Elemental Masterpiece', 'Thraben Inspector', 'Skyclave Shade', 'Crack the Earth', 'Stir the Grave', 'Blessed Alliance', 'Fiery Temper', 'Riveteers Charm', 'Exclude', 'Control Magic', 'Chamber Sentry', 'Honor of the Pure', 'Memory Lapse', 'Woodland Cemetery', 'Dakkon, Shadow Slayer', 'Silverbluff Bridge', 'Declaration in Stone', 'Cultivate', 'Raging Ravine', 'Shape Anew', 'Sheoldred''s Edict', 'Ancient Ziggurat', 'Waking the Trolls', 'Psychic Possession', 'Frenetic Sliver', 'Wild Cantor', 'Esper Charm', 'Melira, Sylvok Outcast', 'Needle Spires', 'Brain Freeze', 'Mistveil Plains', 'Out of Time', 'Nested Shambler', 'Argentum Armor', 'Scab-Clan Berserker', 'Kitchen Imp', 'Sarkhan the Masterless', 'Pack Rat', 'Haunted Fengraf', 'Vivid Marsh', 'Frontier Bivouac', 'Shivan Reef', 'Eldrazi Displacer', 'Dead Weight', 'Pharika''s Libation', 'Cryptic Caves', 'Shred Memory', 'Boros Guildgate', 'Geyadrone Dihada', 'Deep Forest Hermit', 'Graven Lore', 'Barbed Sextant', 'Midnight Guard', 'Scarab Feast', 'Arlinn Kord', 'Tyrant''s Choice', 'Eternal Scourge', 'Spatial Contortion', 'Argentum Masticore', 'Murmuring Bosk', 'Putrefy', 'Boreal Shelf', 'Heliod''s Intervention', 'Founding the Third Path', 'Festering Newt', 'Ulcerate', 'Tooth and Nail', 'Go for the Throat', 'Bolas''s Citadel', 'Thaumatic Compass', 'Silverblade Paladin', 'Springleaf Drum', 'Hostage Taker', 'Llanowar Augur', 'Bitter Reunion', 'Avacyn''s Pilgrim', 'Worship', 'Reckless Charge', 'Twinshot Sniper', 'Vedalken Heretic', 'Faerie Vandal', 'Lavinia of the Tenth', 'Kozilek''s Predator', 'Oni-Cult Anvil', 'Wrench Mind', 'Sinew Sliver', 'Ancient Amphitheater', 'Drowned Rusalka', 'Negate', 'Invasion of Azgol', 'Engulf the Shore', 'Approach of the Second Sun', 'Joint Exploration', 'Invasion of Zendikar', 'Radiant Grove', 'Thawing Glaciers', 'Valiant Changeling', 'Bring the Ending', 'Dusk // Dawn', 'Wooded Bastion', 'Drake Haven', 'Lurrus of the Dream-Den', 'King Darien XLVIII', 'Narcomoeba', 'Rift Bolt', 'Talisman of Curiosity', 'Farhaven Elf', 'Blood Artist', 'Ral, Izzet Viceroy', 'Drown in Ichor', 'Koth, Fire of Resistance', 'Sunken Hollow', 'Rakdos''s Return', 'Drowner of Hope', 'Bloodchief Ascension', 'Winds of Abandon', 'Third Path Iconoclast', 'Return to the Ranks', 'Cut Down', 'Pyrite Spellbomb', 'Gilt-Leaf Archdruid', 'Glimmerpost', 'Search for Azcanta', 'Titania, Protector of Argoth', 'Urban Evolution', 'Sorin, Vengeful Bloodlord', 'Reveillark', 'Breya''s Apprentice', 'Commune with Nature', 'Gateway Plaza', 'Ral, Storm Conduit', 'Bubbling Cauldron', 'Hall of Oracles', 'Caldera Hellion', 'Jor Kadeen, First Goldwarden', 'Venser, Shaper Savant', 'Silent Gravestone', 'Dissipate', 'Pyroclasm', 'Sever the Bloodline', 'Mystical Teachings', 'Godo, Bandit Warlord', 'Brainstone', 'Turnabout', 'Cleansing Wildfire', 'Night Market Lookout', 'Benevolent Bodyguard', 'Phalanx Leader', 'Dimensional Infiltrator', 'Assemble the Legion', 'Evolving Wilds', 'Touch the Spirit Realm', 'Glistener Elf', 'Sheltered Thicket', 'Earthquake', 'Throat Slitter', 'Diffusion Sliver', 'Inscribed Tablet', 'Bogbrew Witch', 'Faith''s Reward', 'Gnat Miser', 'Elite Inquisitor', 'Epic Experiment', 'Grafted Butcher', 'Melira, the Living Cure', 'Tymaret, Chosen from Death', 'Hope of Ghirapur', 'Dark Ritual', 'Terramorphic Expanse', 'Price of Progress', 'Fracturing Gust', 'Tresserhorn Sinks', 'Reckoner''s Bargain', 'Devious Cover-Up', 'Temple of Malady', 'Graveborn Muse', 'Ephara, God of the Polis', 'Terminate', 'Scrying Sheets', 'The Flame of Keld', 'Tribute to Horobi', 'Utter End', 'Invoke Calamity', 'Orzhov Charm', 'Karn''s Bastion', 'Moderation', 'Xenagos, the Reveler', 'Cabal Ritual', 'Norn''s Inquisitor', 'Rakdos Charm', 'Midnight Reaper', 'Angrath, the Flame-Chained', 'Alms of the Vein', 'Verduran Enchantress', 'Dead of Winter', 'Tolarian Terror', 'Pariah', 'Ghost Quarter', 'Grand Architect', 'Dokuchi Silencer', 'Cabaretti Courtyard', 'Kappa Tech-Wrecker', 'Open the Armory', 'Favored Hoplite', 'Experimental Synthesizer', 'Glimpse of Tomorrow', 'Kitesail Freebooter', 'Shimmerdrift Vale', 'Arch of Orazca', 'Llanowar Tribe', 'Liliana Vess', 'Jwari Shapeshifter', 'Open the Gates', 'Forgotten Cave', 'Faeburrow Elder', 'Rites of Spring', 'Archangel of Wrath', 'Rustvale Bridge', 'Tezzeret, Artifice Master', 'Artistic Refusal', 'Purify the Grave', 'Hooting Mandrills', 'Sandsteppe Citadel', 'Bloodchief''s Thirst', 'Voldaren Pariah', 'Arbor Elf', 'Triumphant Adventurer', 'Azorius Charm', 'Predatory Sliver', 'Wolfbriar Elemental', 'Pardic Miner', 'Dragonskull Summit', 'Buried Ruin', 'Lose Focus', 'Sylvan Caryatid', 'Pore Over the Pages', 'Pharika''s Cure', 'Lotus Cobra', 'Razortide Bridge', 'Hornet Queen', 'Sea-Dasher Octopus', 'Expedition Envoy', 'Arcane Sanctum', 'Elvish Rejuvenator', 'Nimbus Maze', 'Figure of Destiny', 'Become Immense', 'Brineborn Cutthroat', 'Vraska''s Contempt', 'Helm of the Host', 'Crux of Fate', 'Vampire Hexmage', 'Tezzeret''s Gambit', 'Mortuary Mire', 'Devil''s Play', 'Hero''s Downfall', 'Into the Story', 'Floriferous Vinewall', 'Lazotep Chancellor', 'Rotting Rats', 'Psychatog', 'Might of Old Krosa', 'Heliod''s Pilgrim', 'Guile', 'Torens, Fist of the Angels', 'Commune with the Gods', 'Voidslime', 'Network Disruptor', 'Consuming Vapors', 'Gallia of the Endless Dance', 'Moorland Haunt', 'Anguished Unmaking', 'Fae of Wishes', 'Staff of Domination', 'Mindcrank', 'Dread Return', 'Voltage Surge', 'Temple of Mystery', 'Tomebound Lich', 'Yawgmoth''s Bargain', 'Maze''s End', 'Wonder', 'Leonin Lightscribe', 'Delay', 'Terminus', 'Far // Away', 'Kessig Wolf Run', 'Divest', 'Slagstorm', 'Golgari Rot Farm', 'Icehide Golem', 'Venerated Loxodon', 'Woe Strider', 'Seal of Cleansing', 'Dreadhorde Butcher', 'All That Glitters', 'Universal Automaton', 'Voyaging Satyr', 'Big Game Hunter', 'Upheaval', 'Thundermaw Hellkite', 'Brave the Elements', 'Draugr Necromancer', 'Morsel Theft', 'Kaito, Dancing Shadow', 'Bloodbraid Elf', 'Venser, Corpse Puppet', 'Izzet Charm', 'Assault // Battery', 'Fiery Justice', 'Bident of Thassa', 'Death Cloud', 'Mindsplice Apparatus', 'Orzhov Basilica', 'Whispersilk Cloak', 'Vindicate', 'Shardless Agent', 'Elderscale Wurm', 'Swiftfoot Boots', 'Territorial Kavu', 'Groundswell', 'Garruk Wildspeaker', 'Kumano Faces Kakkazan', 'Martyr of Sands', 'Tranquil Thicket', 'Vampire Lacerator', 'Restoration Angel', 'Skyshroud Elf', 'Bloodvial Purveyor', 'Snow-Covered Mountain', 'Corpse Cur', 'Reflector Mage', 'Malcator, Purity Overseer', 'Surge of Salvation', 'Saffi Eriksdotter', 'Dawn of Hope', 'Froghemoth', 'Graven Cairns', 'Celestial Colonnade', 'Mazemind Tome', 'Timeless Dragon', 'Idyllic Beachfront', 'Invisible Stalker', 'Gloomshrieker', 'Stern Dismissal', 'Phyrexian Revoker', 'Destiny Spinner', 'Sarkhan, the Dragonspeaker', 'Wanderwine Hub', 'Disrupting Shoal', 'Ghostfire Blade', 'Oblivion Ring', 'Shriekmaw', 'Yisan, the Wanderer Bard', 'Nullpriest of Oblivion', 'Fire Prophecy', 'Presence of Gond', 'Steppe Lynx', 'Corrupted Crossroads', 'Spirited Companion', 'Fallaji Archaeologist', 'Mana Leak', 'Canyon Slough', 'Izzet Boilerworks', 'Ishkanah, Grafwidow', 'Deafening Clarion', 'Tangle', 'Elixir of Immortality', 'Electrolyze', 'Folio of Fancies', 'Bloodsoaked Champion', 'Prosperous Thief', 'Westvale Abbey', 'Banishing Slash', 'Nine Lives', 'The Scorpion God', 'Oona, Queen of the Fae', 'Bilious Skulldweller', 'Raven''s Crime', 'Vivid Crag', 'Kambal, Consul of Allocation', 'Genesis Hydra', 'Protect the Negotiators', 'Wood Elves', 'Stoic Rebuttal', 'White Sun''s Zenith', 'Chandra, Flamecaller', 'Burst Lightning', 'Luminarch Ascension', 'Oath of Teferi', 'Changeling Outcast', 'Ghostly Pilferer', 'Grave Titan', 'Master of Death', 'Thrill of Possibility', 'Herd Baloth', 'Geothermal Bog', 'Raze to the Ground', 'Knight of the Reliquary', 'Unlucky Witness', 'Grand Arbiter Augustin IV', 'Thrash // Threat', 'Scattered Groves', 'Blade Splicer', 'Ghostly Flicker', 'Shambling Vent', 'Herald of the Pantheon', 'Phyrexian Censor', 'Nightscape Familiar', 'Night of Souls'' Betrayal', 'Ardent Recruit', 'Disallow', 'Tectonic Edge', 'Kitchen Finks', 'Nezumi Graverobber', 'Mind''s Desire', 'Day of Judgment', 'Rix Maadi Reveler', 'Reinforced Ronin', 'Doom Blade', 'Dregscape Zombie', 'Green Sun''s Twilight', 'Bogardan Hellkite', 'Sigrid, God-Favored', 'Blightning', 'Murderous Cut', 'Game Trail', 'Erebos''s Intervention', 'Gift of Immortality', 'Nevermore', 'Kefnet the Mindful', 'Jace, Architect of Thought', 'Ignite Memories', 'Faerie Miscreant', 'World Shaper', 'Big Score', 'Chandra, Pyromaster', 'Decree of Justice', 'Vadrik, Astral Archmage', 'Mystic Monastery', 'Temple of Plenty', 'Polukranos, World Eater', 'Kemba, Kha Regent', 'Temple of Deceit', 'Wilt', 'Odds // Ends', 'Ogre Slumlord', 'General Ferrous Rokiric', 'Forked Bolt', 'Farseek', 'Frost Titan', 'Eerie Ultimatum', 'Rootbound Crag', 'Cathedral of War', 'Kami of False Hope', 'Lavaclaw Reaches', 'Memoricide', 'Of One Mind', 'Treasure Cruise', 'Sigil of the Empty Throne', 'Soltari Priest', 'Mnemonic Sphere', 'Syphon Life', 'Toolcraft Exemplar', 'Tocasia''s Dig Site', 'Silumgar''s Scorn', 'Oracle of Tragedy', 'Seething Song', 'Nature''s Lore', 'Porphyry Nodes', 'Annex Sentry', 'Sylvan Library', 'Lochmere Serpent', 'Archaeomancer', 'Galerider Sliver', 'Gather the Pack', 'Summer Bloom', 'Secluded Steppe', 'Rust Goliath', 'Dark-Dweller Oracle', 'Choked Estuary', 'Timeless Witness', 'Gitaxian Probe', 'Ghitu Lavarunner', 'Temple of Silence', 'Otherworldly Journey', 'Riveteers Overlook', 'Merciless Eviction', 'Sculpted Perfection', 'Yavimaya Iconoclast', 'Reckless Rage', 'Chief of the Foundry', 'Elves of Deep Shadow', 'Incinerate', 'Hinterland Harbor', 'Drainpipe Vermin', 'Artisan of Kozilek', 'Flame Rift', 'Unholy Heat', 'Sunlit Marsh', 'Lightning Strike', 'Baneful Omen', 'Increasing Ambition', 'Divinity of Pride', 'Malakir Rebirth', 'Dream Trawler', 'Vampire Neonate', 'Thopter Spy Network', 'Grolnok, the Omnivore', 'Mindslaver', 'Abzan Charm', 'Teferi, Mage of Zhalfir', 'Healer''s Hawk', 'Mikokoro, Center of the Sea', 'Kruphix''s Insight', 'Genesis Ultimatum', 'Curse of Exhaustion', 'Rites of Initiation', 'Evacuation', 'Ornithopter', 'Fact or Fiction', 'Sire of Insanity', 'Gravelgill Duo', 'Runed Halo', 'Mastermind''s Acquisition', 'Gideon''s Intervention', 'Goldmire Bridge', 'Stone Rain', 'Fertile Ground', 'Vraska''s Fall', 'Tear Asunder', 'Ensoul Artifact', 'Wizard''s Retort', 'Heartless Act', 'Llanowar Elves', 'Rise // Fall', 'Sign in Blood', 'Rakdos Cackler', 'Blood on the Snow', 'See Beyond', 'Phoenix Chick', 'Yasharn, Implacable Earth', 'Snow-Covered Plains', 'Mirage Mirror', 'Commit // Memory', 'Sandwurm Convergence', 'Sunstrike Legionnaire', 'Brave the Sands', 'Plated Geopede', 'Leonin Warleader', 'Invasion of New Capenna', 'Canopy Vista', 'Ancestral Blade', 'Cartel Aristocrat', 'Izzet Guildgate', 'Flametongue Kavu', 'Cataclysmic Gearhulk', 'Anger of the Gods', 'Scrapwork Mutt', 'Jace Beleren', 'Marwyn, the Nurturer', 'Ranger of Eos', 'Squee, Goblin Nabob', 'Blue Sun''s Zenith', 'Recurring Nightmare', 'Pain Seer', 'Valakut Exploration', 'Wasteland Strangler', 'Sin Collector', 'Kiora Bests the Sea God', 'Giant Killer', 'Diabolic Tutor', 'Serra Ascendant', 'Saproling Migration', 'Idyllic Tutor', 'Endbringer', 'Raffine''s Informant', 'Makeshift Mannequin', 'Sterling Grove', 'Terastodon', 'Cauldron Familiar', 'Stinkweed Imp', 'Sculpting Steel', 'Zur''s Weirding', 'Executioner''s Capsule', 'Spell Burst', 'Chain Lightning', 'Hissing Quagmire', 'Crawling Barrens', 'Empyrial Armor', 'Timely Reinforcements', 'Discovery // Dispersal', 'Agonizing Remorse', 'Orcish Lumberjack', 'Steel Overseer', 'Barter in Blood', 'Hieroglyphic Illumination', 'Volt Charge', 'Vessel of Nascency', 'Duress', 'Bloodline Keeper', 'Ally Encampment', 'Demolition Field', 'Late to Dinner', 'Siege Rhino', 'Altered Ego', 'Grave Scrabbler', 'Supreme Will', 'Briarbridge Tracker', 'Mesmeric Fiend', 'Solitary Confinement', 'Commence the Endgame', 'Chaotic Transformation', 'Mouth of Ronom', 'Dreams of Steel and Oil', 'Elvish Archdruid', 'Putrid Imp', 'Madcap Experiment', 'Phyrexian Unlife', 'Jungle Shrine', 'Hanweir Garrison', 'Simic Guildgate', 'Jwari Disruption', 'Meeting of Minds', 'Slogurk, the Overslime', 'Ramunap Excavator', 'Sunpetal Grove', 'Nameless Inversion', 'Kjeldoran Outpost', 'Fight as One', 'The Seedcore', 'Repeal', 'Demigod of Revenge', 'Marit Lage''s Slumber', 'Ayara, First of Locthwain', 'Greater Tanuki', 'Eiganjo Castle', 'Experimental Augury', 'Council''s Judgment', 'Weapons Trainer', 'Rampant Growth', 'Abyssal Persecutor', 'Akiri, Fearless Voyager', 'Akoum Hellhound', 'Arbalest Engineers', 'Clifftop Retreat', 'Victim of Night', 'Misery Charm', 'Altar of the Goyf', 'Energy Refractor', 'Elspeth Conquers Death', 'Chief Engineer', 'Lantern-Lit Graveyard', 'Prophetic Prism', 'Vryn Wingmare', 'Explore', 'Trace of Abundance', 'Patchwork Automaton', 'Combat Thresher', 'Elvish Mystic', 'Myr Superion', 'Oona''s Grace', 'Gruul Guildgate', 'Into the Roil', 'Forging the Anchor', 'Knight of New Alara', 'Coiling Oracle', 'Settle the Wreckage', 'Sleight of Hand', 'Colossal Skyturtle', 'Distorted Curiosity', 'Servo Exhibition', 'Cabal Initiate', 'Inkwell Leviathan', 'Swooping Lookout', 'Maelstrom Pulse', 'Vampire Nighthawk', 'Varolz, the Scar-Striped', 'Wayward Guide-Beast', 'Quicken', 'Nissa, Worldwaker', 'Satyr Wayfinder', 'Possibility Storm', 'Sacred Peaks', 'Pull from Tomorrow', 'Master of Etherium', 'Summary Dismissal', 'Kor Firewalker', 'Smallpox', 'Gruul Spellbreaker', 'Silundi Vision', 'Tempest Djinn', 'Darksteel Citadel', 'Birds of Paradise', 'Quest for the Holy Relic', 'Vapor Snag', 'Mulch', 'Apostle''s Blessing', 'Shard Volley', 'Nissa, Steward of Elements', 'Peek', 'Vault of the Archangel', 'Seeker of the Way', 'Dark Petition', 'Impulse', 'Flaying Tendrils', 'Ichorclaw Myr', 'Akroan Crusader', 'Prologue to Phyresis', 'Rocco, Cabaretti Caterer', 'Squadron Hawk', 'Vivid Grove', 'Halana and Alena, Partners', 'Blanchwood Prowler', 'Empyrial Plate', 'Flooded Grove', 'Platinum Angel', 'Yahenni''s Expertise', 'Delver of Secrets', 'Chandra, Fire Artisan', 'Ambush Viper', 'Golgari Guildgate', 'Carven Caryatid', 'Drossforge Bridge', 'Check for Traps', 'Dimir Guildgate', 'Fumigate', 'Temple of Triumph', 'Harmonize', 'Grim Haruspex', 'Maestros Charm', 'Teshar, Ancestor''s Apostle', 'Malicious Malfunction', 'Fetid Pools', 'Myr Battlesphere', 'Scrabbling Claws', 'Detention Sphere', 'Obscura Charm', 'The Underworld Cookbook', 'Cliffside Lookout', 'Tilling Treefolk', 'Gutterbones', 'Smuggler''s Copter', 'Battlefield Forge', 'Forbidden Alchemy', 'Scuttling Doom Engine', 'Secluded Courtyard', 'Rune Snag', 'Tainted Indulgence', 'Scour All Possibilities', 'Phantasmal Image', 'Thragtusk', 'Oath of Kaya', 'Ground Seal', 'Lightning Spear', 'Rakdos Guildgate', 'Bump in the Night', 'Marble Diamond', 'Mina and Denn, Wildborn', 'Spell Pierce', 'Karumonix, the Rat King', 'Seedcradle Witch', 'Lagrella, the Magpie', 'Knight of the White Orchid', 'Thopter Mechanic', 'Tidespout Tyrant', 'Wandering Fumarole', 'Bontu''s Last Reckoning', 'Sin Prodder', 'Invasion of Kaladesh', 'Gnawing Vermin', 'Simian Spirit Guide', 'Feed the Swarm', 'Crawling Chorus', 'Tangled Islet', 'Wrath of God', 'Orzhov Guildgate', 'Fearless Fledgling', 'Archon of Sun''s Grace', 'Call of the Death-Dweller', 'Invasion of Amonkhet', 'Obscura Storefront', 'Gideon Jura', 'Kalastria Healer', 'Gigadrowse', 'Circular Logic', 'Grenzo, Dungeon Warden', 'Call to the Grave', 'Armored Scrapgorger', 'Racers'' Ring', 'Knight of Glory', 'Boon-Bringer Valkyrie', 'Moon-Circuit Hacker', 'Gleeful Demolition', 'Myth Realized', 'Temple of Abandon', 'Gird for Battle', 'Mistcutter Hydra', 'Gift of Estates', 'Dross Skullbomb', 'Wrenn''s Resolve', 'Darksteel Colossus', 'Marauding Blight-Priest', 'Zuran Orb', 'Zephyr Singer', 'Satyr Hoplite', 'Altar of the Brood', 'Dimir Aqueduct', 'Hideous End', 'Consult the Necrosages', 'Botanical Plaza', 'Bubbling Muck', 'Ertai''s Scorn', 'Thornglint Bridge', 'Ammit Eternal', 'Tribal Flames', 'Vines of Vastwood', 'Ashnod, Flesh Mechanist', 'Azorius Guildgate', 'Thassa''s Intervention', 'Stupor', 'Deep Analysis', 'Rise and Shine', 'Scrapheap Scrounger', 'Ponder', 'Sunblade Samurai', 'Fetid Heath', 'Dread Wanderer', 'Sins of the Past', 'Cabal Therapist', 'Elvish Visionary', 'Blightbelly Rat', 'Mulldrifter', 'Loxodon Smiter', 'Acidic Slime', 'Dryad Militant', 'Abundant Harvest', 'Lay Down Arms', 'Cloudpost', 'Temple of Enlightenment', 'Stromkirk Noble', 'Precursor Golem', 'Invasion of Regatha', 'Quiet Speculation', 'Ancient Stirrings', 'Counterflux', 'Sphere of Safety', 'Bone Shards', 'Dismal Backwater', 'Graaz, Unstoppable Juggernaut', 'Angel of Condemnation', 'Concealing Curtains', 'Second Sunrise', 'Anafenza, Kin-Tree Spirit', 'Angel of Despair', 'Duplicant', 'Goblin Dark-Dwellers', 'Sphinx''s Herald', 'Nomad Outpost', 'Unmarked Grave', 'Arcbound Ravager', 'Dispatch', 'Phyrexian Dreadnought', 'Ruric Thar, the Unbowed', 'Slaughter Pact', 'Sudden Edict', 'Spectral Shift', 'Fyndhorn Elves', 'Caves of Koilos', 'Ashenmoor Liege', 'Dovin''s Acuity', 'Mistvault Bridge', 'Nether Spirit', 'Pillar of the Paruns', 'Blazing Rootwalla', 'Hypnotic Specter', 'Sinister Concoction', 'Woodfall Primus', 'Nekrataal', 'Fireblade Charger', 'Battle of Wits', 'Embodiment of Fury', 'Nimble Trapfinder', 'Curiosity', 'Shrapnel Blast', 'Hyena Umbra', 'Ovika, Enigma Goliath', 'Lost Legacy', 'Eldrazi Skyspawner', 'Jungle Hollow', 'Ayli, Eternal Pilgrim', 'Silver-Fur Master', 'Sylvan Advocate', 'Dead // Gone', 'Frantic Inventory', 'Obliterate', 'Frantic Search', 'Falkenrath Pit Fighter', 'Desperate Ritual', 'Molten Tributary', 'Shimmer Dragon', 'Ravenous Squirrel', 'Arcum''s Astrolabe', 'Invigorate', 'Castigate', 'Vampiric Rites', 'Teneb, the Harvester', 'Seal of Removal', 'Archpriest of Shadows', 'Contaminated Aquifer', 'Oust', 'Mesa Enchantress', 'Repudiate // Replicate', 'Fade from Memory', 'Hada Freeblade', 'Evangel of Synthesis', 'Disenchant', 'Aetherling', 'Mausoleum Secrets', 'Dragon''s Hoard', 'Port Town', 'Venser, the Sojourner', 'Ulvenwald Hydra', 'Angel of Grace', 'Lizard Blades', 'Revitalize', 'Geomancer''s Gambit', 'Cathartic Reunion', 'Simian Sling', 'Augur of Bolas', 'The Celestus', 'Viscera Seer', 'Defiant Strike', 'Glamerdye', 'Union of the Third Path', 'Witching Well', 'Throne of the God-Pharaoh', 'Tendrils of Agony', 'Kher Keep', 'Sweltering Suns', 'Mistblade Shinobi', 'Fruit of Tizerus', 'Sea Gate Oracle', 'Glorybringer', 'Tendo Ice Bridge', 'Slagwoods Bridge', 'Vexing Shusher', 'Rabbit Battery', 'Silversmote Ghoul', 'Black Sun''s Zenith', 'Forbid', 'Nimble Obstructionist', 'Resurgent Belief', 'Tanglepool Bridge', 'Nephalia Drownyard', 'Yavimaya Coast', 'Expedite', 'Kunoros, Hound of Athreos', 'Necrogen Spellbomb', 'Radha, Heart of Keld', 'Sol Talisman', 'Elas il-Kor, Sadistic Pilgrim', 'Kiora, the Crashing Wave', 'Mirror Entity', 'Herd Migration', 'Unburial Rites', 'Aegis of the Gods', 'Obstinate Baloth', 'Anafenza, the Foremost', 'General''s Enforcer', 'Goblin Electromancer', 'Hesitation', 'Brokers Hideout', 'Kazandu Blademaster', 'Jukai Naturalist', 'Aetherspouts', 'Ashen Rider', 'Haunted Mire', 'Leonin Arbiter', 'Cloudshredder Sliver', 'Tidehollow Sculler', 'Hard Evidence', 'Overgrowth', 'Etherium Sculptor', 'Orim''s Chant', 'Frost Marsh', 'Strike It Rich', 'Bituminous Blast', 'Disciple of Bolas', 'Dauntless Bodyguard', 'Judge''s Familiar', 'Stubborn Denial', 'Vraan, Executioner Thane', 'Cremate', 'Priest of the Haunted Edge', 'Seal of Fire', 'Knowledge Pool', 'Kor Skyfisher', 'Combat Research', 'Dying to Serve', 'Rain of Tears', 'River of Tears', 'Mishra''s Factory', 'Fierce Empath', 'Hour of Promise', 'Search for Tomorrow', 'Condemn', 'Mirran Crusader', 'Silumgar, the Drifting Death', 'Fleecemane Lion', 'Heap Doll', 'Time of Need', 'Progenitor Exarch', 'Kaya, Ghost Assassin', 'Lodestone Golem', 'Aetherblade Agent', 'Kogla, the Titan Ape', 'Destroy Evil'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.5, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Raffine''s Informant', 'Sheltered Thicket', 'Isolated Chapel', 'Haunted Fengraf', 'Reckoner''s Bargain', 'Gruul Spellbreaker', 'Teferi, Mage of Zhalfir', 'Odds // Ends', 'Eldrazi Displacer', 'Mind''s Desire', 'Diffusion Sliver', 'Jwari Disruption', 'Slaughter Pact', 'Sleight of Hand', 'Fetid Pools', 'Vault Skirge', 'Nevermore', 'Ethersworn Sphinx', 'Galerider Sliver', 'Otherworldly Journey', 'Esper Charm', 'Sculpted Perfection', 'Fireblade Charger', 'Open the Armory', 'Reckless Charge', 'Collected Conjuring', 'Elixir of Immortality', 'Jungle Shrine', 'Prophetic Prism', 'Swooping Lookout', 'Slogurk, the Overslime', 'Hypnotic Specter', 'Upheaval', 'Faerie Miscreant', 'Hada Freeblade', 'Flooded Grove', 'Pyroclasm', 'Sinister Concoction', 'Myth Realized', 'Bubbling Muck', 'Tangled Islet', 'Ancient Amphitheater', 'Volt Charge', 'Magister of Worth', 'Mistblade Shinobi', 'Divinity of Pride', 'The Seedcore', 'Gideon Jura', 'Earthquake', 'Putrefy', 'Reinforced Ronin', 'Venser, Shaper Savant', 'Scab-Clan Berserker', 'Azorius Charm', 'Fire Prophecy', 'Psychatog', 'Melira, Sylvok Outcast', 'Embodiment of Fury', 'Exclude', 'Dregscape Zombie', 'Forked Bolt', 'Murmuring Bosk', 'Mystical Teachings', 'Venerated Loxodon', 'Rakdos Guildgate', 'Dead // Gone', 'Forging the Anchor', 'Yahenni''s Expertise', 'Martyr of Sands', 'Gift of Immortality', 'All That Glitters', 'Yavimaya Iconoclast', 'Sin Collector', 'Lavinia of the Tenth', 'Sphere of Safety', 'Artistic Refusal', 'Meeting of Minds', 'Herd Migration', 'Golgari Rot Farm', 'Feed the Swarm', 'Precursor Golem', 'Temple of Plenty', 'Sunken Hollow', 'Halimar Excavator', 'Tribute to Horobi', 'Rampant Growth', 'Sweltering Suns', 'Aegis of the Gods', 'Molten Tributary', 'Snow-Covered Swamp', 'Vexing Shusher', 'Chandra, Flamecaller', 'Elvish Archdruid', 'Might of Old Krosa', 'Ertai''s Scorn', 'Mortuary Mire', 'Worship', 'Seedcradle Witch', 'Grand Architect', 'Settle the Wreckage', 'Augur of Bolas', 'Tempest Djinn', 'Twinshot Sniper', 'Devil''s Play', 'Rule of Law', 'Port Town', 'Chief Engineer', 'Silverblade Paladin', 'Hour of Promise', 'Kami of False Hope', 'Shambling Vent', 'Pore Over the Pages', 'Caldera Hellion', 'Dark-Dweller Oracle', 'Blightbelly Rat', 'Seal of Removal', 'Ephara, God of the Polis', 'Condemn', 'Buried Ruin', 'Territorial Kavu', 'Silver-Fur Master', 'Nekrataal', 'Orzhov Guildgate', 'Commune with Spirits', 'Mystic Monastery', 'Izzet Charm', 'Basking Rootwalla', 'Timeless Dragon', 'Cleansing Wildfire', 'Falkenrath Pit Fighter', 'Arcum''s Astrolabe', 'Mishra''s Factory', 'Expedition Envoy', 'Orzhov Basilica', 'Ignite Memories', 'Big Game Hunter', 'Apostle''s Blessing', 'Expedite', 'Barbed Sextant', 'Bolas''s Citadel', 'Luminarch Ascension', 'Become Immense', 'Sunblade Samurai', 'Bring the Ending', 'Obliterate', 'Soltari Priest', 'Kjeldoran Outpost', 'Vampiric Rites', 'Krosan Grip', 'Shimmer Dragon', 'Assault // Battery', 'Llanowar Elves', 'Siege Rhino', 'Silumgar''s Scorn', 'Faeburrow Elder', 'Lightning Spear', 'Bituminous Blast', 'Dreams of Steel and Oil', 'Desperate Ritual', 'River of Tears', 'Snow-Covered Plains', 'Phyrexian Censor', 'Contaminated Aquifer', 'Simic Guildgate', 'Aether Spellbomb', 'Tidespout Tyrant', 'World Shaper', 'Vryn Wingmare', 'Explore', 'Dimensional Infiltrator', 'Akoum Hellhound', 'Archaeomancer', 'Kher Keep', 'Throat Slitter', 'Ivy Lane Denizen', 'Vessel of Nascency', 'Yawgmoth''s Bargain', 'Aetherspouts', 'Union of the Third Path', 'Fetid Heath', 'Kogla, the Titan Ape', 'Rakdos Charm', 'Lavaclaw Reaches', 'Of One Mind', 'Scattered Groves', 'Check for Traps', 'Dissipate', 'Dismal Backwater', 'Mirage Mirror', 'Mesmeric Fiend', 'Breya''s Apprentice', 'Utter End', 'Dokuchi Silencer', 'Unmarked Grave', 'Vivid Marsh', 'Invoke Calamity', 'Snow-Covered Mountain', 'Reflector Mage', 'Kumano Faces Kakkazan', 'Surge of Salvation', 'Deep Forest Hermit', 'Fleecemane Lion', 'Call to the Grave', 'Sea-Dasher Octopus', 'Lay Down Arms', 'Timeless Witness', 'Arcbound Ravager', 'Blazing Rootwalla', 'Izzet Guildgate', 'Sprite Dragon', 'Dragon''s Hoard', 'The Underworld Cookbook', 'Springleaf Drum', 'Thaumatic Compass', 'Invasion of Amonkhet', 'Unholy Heat', 'Vindicate', 'Armored Scrapgorger', 'Frost Titan', 'Kemba, Kha Enduring', 'Quest for the Holy Relic', 'Huatli, Radiant Champion', 'Increasing Ambition', 'Endbringer', 'Phyrexian Unlife', 'White Sun''s Zenith', 'Elvish Visionary', 'Hooting Mandrills', 'Dark Ritual', 'Mesa Enchantress', 'Chain Lightning', 'Dying to Serve', 'Weathered Wayfarer', 'Goblin Electromancer', 'Obscura Storefront', 'Gateway Plaza', 'Halana and Alena, Partners', 'Dispatch', 'Rift Bolt', 'Price of Progress', 'Arch of Orazca', 'Disallow', 'Nested Shambler', 'Nissa, Worldwaker', 'Crawling Barrens', 'Groundswell', 'Blight Mamba', 'Boon-Bringer Valkyrie', 'Venser, Corpse Puppet', 'Empyrial Plate', 'Secluded Steppe', 'Inkwell Leviathan', 'Psychic Possession', 'Haunted Mire', 'Electrolyze', 'Llanowar Tribe', 'Simian Sling', 'Corrupted Conviction', 'Gitaxian Probe', 'Big Score', 'Energy Refractor', 'Elves of Deep Shadow', 'Tezzeret''s Gambit', 'Faith''s Reward', 'Steppe Lynx', 'Abzan Charm', 'Gather the Pack', 'Pharika''s Libation', 'Primal Command', 'Kalastria Healer', 'Leonin Warleader', 'Restoration Angel', 'Oath of Teferi', 'Sarkhan the Masterless', 'The Celestus', 'Runed Halo', 'Jace Beleren', 'Thrill of Possibility', 'Ramunap Excavator', 'Detention Sphere', 'Slagwoods Bridge', 'Titania, Protector of Argoth', 'Archangel of Wrath', 'Basilisk Collar', 'Pain Seer', 'Cremate', 'Change the Equation', 'Lotus Cobra', 'Tangle', 'Rites of Spring', 'Harmonize', 'Rain of Tears', 'Agonizing Remorse', 'Sterling Grove', 'Madcap Experiment', 'Castigate', 'Sorin, Vengeful Bloodlord', 'Voidwing Hybrid', 'Yasharn, Implacable Earth', 'Scour All Possibilities', 'Koth, Fire of Resistance', 'Anafenza, Kin-Tree Spirit', 'Dead Weight', 'Shrapnel Blast', 'Norn''s Inquisitor', 'Helm of the Host', 'Ichorclaw Myr', 'Goldmire Bridge', 'Consult the Necrosages', 'Myr Superion', 'Valiant Changeling', 'Drake Haven', 'Death Cloud', 'Glistener Elf', 'Gnat Miser', 'Ancient Ziggurat', 'Knowledge Pool', 'Kor Skyfisher', 'Battle of Frost and Fire', 'Seismic Assault', 'Terminate', 'Vraska''s Contempt', 'Ally Encampment', 'Delver of Secrets', 'Drainpipe Vermin', 'Arbor Elf', 'Possibility Storm', 'Orcish Lumberjack', 'Vault of the Archangel', 'Oona''s Grace', 'Fierce Empath', 'Supreme Will', 'Abundant Growth', 'Zephyr Singer', 'Network Disruptor', 'Devious Cover-Up', 'Solitary Confinement', 'Greater Tanuki', 'Tilling Treefolk', 'Yorion, Sky Nomad', 'Hanweir Garrison', 'Master of Etherium', 'Invasion of Regatha', 'Misery Charm', 'Pardic Miner', 'Barter in Blood', 'Thornwood Falls', 'Bitter Reunion', 'Sire of Insanity', 'Hyena Umbra', 'Combat Research', 'Phoenix Chick', 'Godo, Bandit Warlord', 'Skyclave Shade', 'Experimental Synthesizer', 'Dread Wanderer', 'Commune with Nature', 'Frantic Inventory', 'Engulf the Shore', 'Obstinate Baloth', 'Smuggler''s Copter', 'Mausoleum Secrets', 'Control Magic', 'Murderous Cut', 'Idyllic Tutor', 'Vraska''s Fall', 'Second Sunrise', 'Sylvan Caryatid', 'Moon-Circuit Hacker', 'General''s Enforcer', 'Doomed Traveler', 'Sulfur Falls', 'Rise and Shine', 'Ashnod, Flesh Mechanist', 'Bone Shards', 'Dryad Militant', 'Barbarian Ring', 'Slagstorm', 'Ravenous Squirrel', 'Ground Seal', 'Dawn of Hope', 'Anger of the Gods', 'Oracle of Mul Daya', 'Thrash // Threat', 'Eternal Scourge', 'Hope of Ghirapur', 'Tainted Indulgence', 'Lurrus of the Dream-Den', 'Bogbrew Witch', 'Gleeful Demolition', 'Fumigate', 'Orzhov Charm', 'Xerex Strobe-Knight', 'Pillar of the Paruns', 'Ayli, Eternal Pilgrim', 'Mindsplice Apparatus', 'Sphinx''s Herald', 'Syphon Life', 'Tezzeret, Artifice Master', 'Destroy Evil', 'Rites of Initiation', 'Fearless Fledgling', 'Temple of Mystery', 'Hornet Queen', 'Dragonskull Summit', 'Llanowar Augur', 'Mindslaver', 'Goblin Dark-Dwellers', 'Putrid Imp', 'Glint-Sleeve Siphoner', 'Crack the Earth', 'Touch the Spirit Realm', 'Combat Thresher', 'Oni-Cult Anvil', 'Nezahal, Primal Tide', 'Dakkon, Shadow Slayer', 'Cultivate', 'Summer Bloom', 'Farseek', 'Repudiate // Replicate', 'Kiora, the Crashing Wave', 'Marit Lage''s Slumber', 'Think Twice', 'Cut Down', 'Marwyn, the Nurturer', 'Angel of Condemnation', 'Bloodvial Purveyor', 'Rakdos''s Return', 'Disrupting Shoal', 'Mothdust Changeling', 'Tolarian Terror', 'Cathartic Reunion', 'Vivid Grove', 'Sever the Bloodline', 'Wayward Guide-Beast', 'Oona''s Prowler', 'Search for Azcanta', 'Dovin''s Acuity', 'Thassa''s Intervention', 'Flaying Tendrils', 'Shardless Agent', 'Demolition Field', 'Epic Experiment', 'Sylvan Advocate', 'Memoricide', 'Silverbluff Bridge', 'Waking the Trolls', 'Silversmote Ghoul', 'Sigrid, God-Favored', 'Celestial Colonnade', 'Morsel Theft', 'Doomskar', 'Cathedral of War', 'Dreadhorde Butcher', 'Gloomshrieker', 'Vapor Snag', 'Voyaging Satyr', 'Battle of Wits', 'Lost Legacy', 'Phalanx Leader', 'Vadrik, Astral Archmage', 'Silundi Vision', 'Disciple of Bolas', 'Stone Haven Outfitter', 'Frontier Bivouac', 'Temple of Abandon', 'Tear Asunder', 'Treasure Cruise', 'Gird for Battle', 'Invigorate', 'Inevitable Betrayal', 'Drown in Ichor', 'Genesis Hydra', 'Thragtusk', 'Winds of Abandon', 'Blightning', 'Spell Pierce', 'Declaration in Stone', 'Nissa, Steward of Elements', 'Wood Elves', 'Remorseful Cleric', 'Gilt-Leaf Archdruid', 'Ghitu Lavarunner', 'Blanchwood Prowler', 'Altered Ego', 'Kaya, Ghost Assassin', 'Cliffside Lookout', 'Azorius Guildgate', 'Bogardan Hellkite', 'Elas il-Kor, Sadistic Pilgrim', 'Incinerate', 'Izzet Boilerworks', 'Makeshift Mannequin', 'Marble Diamond', 'Bloodchief''s Thirst', 'Voldaren Pariah', 'Counterflux', 'Timely Reinforcements', 'Enchantress''s Presence', 'Nine Lives', 'Eerie Ultimatum', 'Darksteel Citadel', 'Heap Doll', 'Mulch', 'Overgrowth', 'Goblin Bombardment', 'Seething Song', 'Tresserhorn Sinks', 'Forbidden Alchemy', 'Grenzo, Dungeon Warden', 'Ogre Slumlord', 'Felidar Cub', 'Assemble the Legion', 'Obscura Charm', 'Yisan, the Wanderer Bard', 'Zuran Orb', 'Arlinn Kord', 'Vines of Vastwood', 'Wasteland Strangler', 'Thirst for Meaning', 'Protect the Negotiators', 'Opulent Palace', 'Lingering Souls', 'Carven Caryatid', 'Kabira Takedown', 'Night of Souls'' Betrayal', 'Jace, Architect of Thought', 'Teshar, Ancestor''s Apostle', 'Out of Time', 'General Ferrous Rokiric', 'Patchwork Automaton', 'Sign in Blood', 'Revitalize', 'Darksteel Colossus', 'King Darien XLVIII', 'Deprive', 'Gigadrowse', 'Ruric Thar, the Unbowed', 'Porphyry Nodes', 'Shred Memory', 'Geyadrone Dihada', 'Dead of Winter', 'Vivid Crag', 'Experimental Augury', 'Nameless Inversion', 'Delay', 'Prosperous Thief', 'Spectral Shift', 'Fertile Ground', 'Graaz, Unstoppable Juggernaut', 'Distorted Curiosity', 'Frenetic Sliver', 'Vampire Neonate', 'Quicken', 'Ghostly Pilferer', 'Bump in the Night', 'Peek', 'Argentum Armor', 'Cryptic Caves', 'Rix Maadi Reveler', 'Felidar Retreat', 'Joint Exploration', 'Pack Rat', 'Woodland Cemetery', 'Ensoul Artifact', 'Terminus', 'Kor Firewalker', 'Curiosity', 'Tanglepool Bridge', 'Time of Need', 'Trace of Abundance', 'Mouth of Ronom', 'Sunstrike Legionnaire', 'Nimbus Maze', 'Victim of Night', 'Grave Titan', 'Hostage Taker', 'Leonin Relic-Warder', 'Unlucky Witness', 'Sunlit Marsh', 'Corpse Cur', 'Aetherling', 'Blue Sun''s Zenith', 'Urban Evolution', 'Arbalest Engineers', 'Grand Arbiter Augustin IV', 'Cabaretti Courtyard', 'Froghemoth', 'Malcator, Purity Overseer', 'Tocatli Honor Guard', 'Giant Killer', 'Stasis Snare', 'Ranger of Eos', 'Briarbridge Tracker', 'Myr Battlesphere', 'Stinkdrinker Bandit', 'Talisman of Curiosity', 'Pariah', 'Angel of Despair', 'Polukranos, World Eater', 'Plated Geopede', 'Satyr Hoplite', 'Grolnok, the Omnivore', 'Etherium Sculptor', 'Presence of Gond', 'Battlefield Forge', 'Sunpetal Grove', 'Shard Volley', 'Viscera Seer', 'Rabbit Battery', 'Toolcraft Exemplar', 'Seeker of the Way', 'Karumonix, the Rat King', 'Mistvault Bridge', 'Scrapwork Mutt', 'Priest of the Haunted Edge', 'Sigil of the Empty Throne', 'Sacred Peaks', 'Akroan Crusader', 'Abundant Harvest', 'Kitesail Freebooter', 'Woodfall Primus', 'Frostwalk Bastion', 'Turnabout', 'Tribal Flames', 'Resurgent Belief', 'Voidslime', 'Phantasmal Image', 'Jokulhaups', 'Destiny Spinner', 'Decree of Justice', 'Diabolic Tutor', 'Green Sun''s Twilight', 'Genesis Ultimatum', 'Forgotten Cave', 'Oblivion Ring', 'Evangel of Synthesis', 'Mikokoro, Center of the Sea', 'Dimir Guildgate', 'Inscribed Tablet', 'Kemba, Kha Regent', 'Pyrite Spellbomb', 'Temple of Malady', 'Gnawing Vermin', 'Duplicant', 'Return to the Ranks', 'Tranquil Thicket', 'Sea Gate Oracle', 'Chandra, Pyromaster', 'Brave the Elements', 'Baneful Omen', 'Kessig Wolf Run', 'Moorland Haunt', 'Hideous End', 'Merciless Eviction', 'Smother', 'Vigor', 'Thopter Mechanic', 'Wooded Bastion', 'Annex Sentry', 'Ghost Quarter', 'Servo Exhibition', 'Tocasia''s Dig Site', 'Throne of the God-Pharaoh', 'Sudden Edict', 'Wandering Fumarole', 'Mastermind''s Acquisition', 'Gruul Turf', 'Scrying Sheets', 'Squee, Goblin Nabob', 'Jungle Hollow', 'Midnight Guard', 'Commune with the Gods', 'Kozilek''s Predator', 'Radha, Heart of Keld', 'Moderation', 'Doom Blade', 'Ancient Stirrings', 'Blessed Alliance', 'Lodestone Golem', 'Mirror Entity', 'Stromkirk Noble', 'Mistcutter Hydra', 'Karn''s Bastion', 'Brainstone', 'Ivory Tower', 'Lochmere Serpent', 'Acidic Slime', 'Deafening Clarion', 'Zombie Infestation', 'Kaito, Dancing Shadow', 'Clifftop Retreat', 'Sin Prodder', 'Wolfbriar Elemental', 'Unburial Rites', 'See Beyond', 'Wrench Mind', 'Spirited Companion', 'Scarab Feast', 'Rocco, Cabaretti Caterer', 'Nomad Outpost', 'Invasion of Ergamon', 'Fallaji Archaeologist', 'Burst Lightning', 'Dross Skullbomb', 'Saffi Eriksdotter', 'Simian Spirit Guide', 'Wizard''s Retort', 'Impulse', 'Consume the Meek', 'Kappa Tech-Wrecker', 'Rotting Rats', 'Grave Scrabbler', 'Day of Judgment', 'Corrupted Crossroads', 'Temple of Deceit', 'Elemental Masterpiece', 'Cloudshredder Sliver', 'Tidehollow Sculler', 'Geothermal Bog', 'Knight of the Reliquary', 'Vampire Lacerator', 'Fade from Memory', 'Idyllic Beachfront', 'Invasion of New Capenna', 'Caves of Koilos', 'Ambush Viper', 'Dire-Strain Rampage', 'Blade Splicer', 'Weapons Trainer', 'Cabal Ritual', 'Night Market Lookout', 'Wall of Omens', 'Mnemonic Sphere', 'Angrath, the Flame-Chained', 'Rakdos Cackler', 'Smoldering Marsh', 'Grim Haruspex', 'Judge''s Familiar', 'Staff of Domination', 'Necrogen Spellbomb', 'Bloodchief Ascension', 'Honor of the Pure', 'Temple of Silence', 'Teneb, the Harvester', 'Invisible Stalker', 'Elvish Mystic', 'Executioner''s Capsule', 'Elite Inquisitor', 'Alms of the Vein', 'Nimble Larcenist', 'Wrenn''s Resolve', 'Unctus, Grand Metatect', 'Scuttling Doom Engine', 'Malicious Malfunction', 'Glorybringer', 'Shape Anew', 'Nullpriest of Oblivion', 'Rust Goliath', 'Grand Abolisher', 'Anguished Unmaking', 'Oona, Queen of the Fae', 'Xenagos, the Reveler', 'Dauntless Bodyguard', 'Mulldrifter', 'Dread Return', 'Temple of Enlightenment', 'Brokers Hideout', 'Herd Baloth', 'Elvish Rejuvenator', 'Skyshroud Elf', 'Angel of Grace', 'Canopy Vista', 'Spatial Contortion', 'Lantern-Lit Graveyard', 'Gallia of the Endless Dance', 'Frantic Search', 'Sol Talisman', 'Shivan Reef', 'Figure of Destiny', 'Thopter Spy Network', 'Arcane Sanctum', 'Ashen Rider', 'Pull from Tomorrow', 'Gruul Guildgate', 'Leonin Lightscribe', 'Seal of Cleansing', 'Careful Cultivation', 'Hypergenesis', 'Sarkhan, the Dragonspeaker', 'Ghostly Flicker', 'Arguel''s Blood Fast', 'Stubborn Denial', 'Mana Leak', 'Crawling Chorus', 'Hinterland Harbor', 'Consuming Vapors', 'Mindcrank', 'Lose Focus', 'Discovery // Dispersal', 'Ponder', 'Burning of Xinye', 'Tomebound Lich', 'Rally the Ancestors', 'Council''s Judgment', 'Deep Analysis', 'Mazemind Tome', 'Stone Rain', 'Guile', 'Brain Freeze', 'Hissing Quagmire', 'Phyrexian Dreadnought', 'Tendo Ice Bridge', 'Kitchen Finks', 'Drowned Rusalka', 'Wrath of God', 'Icehide Golem', 'Terramorphic Expanse', 'Abiding Grace', 'Heliod''s Intervention', 'Jor Kadeen, First Goldwarden', 'Predatory Sliver', 'Chaotic Transformation', 'Pyretic Ritual', 'Gravelgill Duo', 'Melira, the Living Cure', 'Glacial Fortress', 'Kiora Bests the Sea God', 'Yavimaya Coast', 'Tyrant''s Choice', 'Changeling Outcast', 'Triumphant Adventurer', 'Silumgar, the Drifting Death', 'Aetherblade Agent', 'Favored Hoplite', 'Tymaret, Chosen from Death', 'Sultai Charm', 'Graven Cairns', 'Stirring Wildwood', 'Far // Away', 'Fight as One', 'Call of the Death-Dweller', 'Commit // Memory', 'Boros Guildgate', 'Varolz, the Scar-Striped', 'Whispersilk Cloak', 'Purify the Grave', 'Ovika, Enigma Goliath', 'Mina and Denn, Wildborn', 'Drossforge Bridge', 'Gideon''s Intervention', 'Riveteers Overlook', 'Ulvenwald Hydra', 'Oracle of Tragedy', 'Duneblast', 'Quiet Speculation', 'Nature''s Lore', 'Brineborn Cutthroat', 'Platinum Angel', 'Llanowar Mentor', 'Sinew Sliver', 'Demigod of Revenge', 'Into the Roil', 'Oath of Kaya', 'Hard Evidence', 'Wonder', 'Reveillark', 'Serra Ascendant', 'Loxodon Smiter', 'Hall of Oracles', 'Jukai Naturalist', 'Summary Dismissal', 'Maze''s End', 'Concealing Curtains', 'Rune Snag', 'Black Sun''s Zenith', 'Bilious Skulldweller', 'Nether Spirit', 'Grafted Butcher', 'Radiant Grove', 'Herald of the Pantheon', 'Crux of Fate', 'Tooth and Nail', 'Eldrazi Skyspawner', 'Approach of the Second Sun', 'Ancestral Blade', 'Blood on the Snow', 'Cabal Therapist', 'Spell Burst', 'Cabal Initiate', 'Gadrak, the Crown-Scourge', 'Glamerdye', 'Fruit of Tizerus', 'Choked Estuary', 'Strike It Rich', 'Glimpse of Tomorrow', 'Vampire Hexmage', 'Torens, Fist of the Angels', 'Stupor', 'Stir the Grave', 'Kunoros, Hound of Athreos', 'Dark Petition', 'Woe Strider', 'Dimir Aqueduct', 'Argentum Masticore', 'Nephalia Drownyard', 'Duress', 'Into the Story', 'Ardent Recruit', 'Healer''s Hawk', 'Demonic Bargain', 'Tribute to Hunger', 'Valakut Exploration', 'Kazandu Blademaster', 'Swiftfoot Boots', 'Chandra, Fire Artisan', 'Smallpox', 'Voltage Surge', 'Ulcerate', 'Archon of Sun''s Grace', 'Kambal, Consul of Allocation', 'Raging Ravine', 'Anafenza, the Foremost', 'Festering Newt', 'Fracturing Gust', 'Angel of Serenity', 'Floriferous Vinewall', 'Hieroglyphic Illumination', 'Sins of the Past', 'Akiri, Fearless Voyager', 'Drowned Catacomb', 'Solemnity', 'Eiganjo Castle', 'Ral, Storm Conduit', 'Heartless Act', 'Divest', 'Sheoldred''s Edict', 'Thundermaw Hellkite', 'Curse of Exhaustion', 'Flame Rift', 'Altar of the Goyf', 'Vraan, Executioner Thane', 'Rise // Fall', 'Zur''s Weirding', 'Erebos''s Intervention', 'Forsake the Worldly', 'The Scorpion God', 'Progenitor Exarch', 'Shizo, Death''s Storehouse', 'Pharika''s Cure', 'Graven Lore', 'Benevolent Bodyguard', 'Malakir Rebirth', 'Chief of the Foundry', 'Late to Dinner', 'Saproling Migration', 'Maelstrom Pulse', 'Razortide Bridge', 'Notorious Throng', 'Silent Gravestone', 'Obzedat, Ghost Council', 'Kitchen Imp', 'Master of Death', 'Seal of Fire', 'Lizard Blades', 'Prologue to Phyresis', 'Greater Gargadon', 'Avacyn''s Pilgrim', 'Murderous Redcap', 'Sculpting Steel', 'Defiant Strike', 'Cauldron Familiar', 'Ethereal Armor', 'Folio of Fancies', 'Circuit Mender', 'Invasion of Kaladesh', 'Chamber Sentry', 'Raven''s Crime', 'Memory Lapse', 'Farhaven Elf', 'Drowner of Hope', 'Coiling Oracle', 'Search for Tomorrow', 'Shriekmaw', 'Liliana Vess', 'Invasion of Azgol', 'Tendrils of Agony', 'Ammit Eternal', 'Surrak, the Hunt Caller', 'Hesitation', 'Sandsteppe Citadel', 'Gutterbones', 'Botanical Plaza', 'Archangel Avacyn', 'Nimble Trapfinder', 'Wild Cantor', 'Cloudpost', 'Universal Automaton', 'Rustvale Bridge', 'Elspeth Conquers Death', 'Ornithopter', 'The Flame of Keld', 'Artisan of Kozilek', 'Lightning Strike', 'Selesnya Guildgate', 'Third Path Iconoclast', 'Bloodsoaked Champion', 'Fae of Wishes', 'Mistveil Plains', 'Knight of New Alara', 'Sandwurm Convergence', 'Westvale Abbey', 'Stinkweed Imp', 'Narcomoeba', 'Geomancer''s Gambit', 'Altar of the Brood', 'Heliod''s Pilgrim', 'Mirran Crusader', 'Flametongue Kavu', 'Vedalken Heretic', 'Abyssal Persecutor', 'Evacuation', 'Scrapheap Scrounger', 'Fiery Temper', 'Empyrial Armor', 'Brave the Sands', 'Stern Dismissal', 'Boreal Shelf', 'Raise the Alarm', 'Scrabbling Claws', 'Lazotep Chancellor', 'Kruphix''s Insight', 'Verduran Enchantress', 'Succumb to Temptation', 'Dusk // Dawn', 'Negate', 'Ghostfire Blade', 'Knight of the White Orchid', 'Needle Spires', 'Jwari Shapeshifter', 'Archpriest of Shadows', 'Blood Artist', 'Banishing Slash', 'Nightscape Familiar', 'Evolving Wilds', 'Champion of Wits', 'Disenchant', 'Wilt', 'Rootbound Crag', 'Stoic Rebuttal', 'Bident of Thassa', 'Circular Logic', 'Wanderwine Hub', 'Riveteers Charm', 'Thornglint Bridge', 'Reckless Rage', 'Bloodbraid Elf', 'Venser, the Sojourner', 'Golgari Guildgate', 'Nimble Obstructionist', 'Bloodline Keeper', 'Draugr Necromancer', 'Ishkanah, Grafwidow', 'Witching Well', 'Cartel Aristocrat', 'Talisman of Unity', 'Canyon Slough', 'Temple of Triumph', 'Glimmerpost', 'Nezumi Graverobber', 'Bubbling Cauldron', 'Open the Gates', 'Garruk Wildspeaker', 'Racers'' Ring', 'Vampire Nighthawk', 'Monument to Perfection', 'Elderscale Wurm', 'Thraben Inspector', 'Birds of Paradise', 'Game Trail', 'Recurring Nightmare', 'Satyr Wayfinder', 'Shimmerdrift Vale', 'Midnight Reaper', 'Eidolon of Blossoms', 'Tectonic Edge', 'Founding the Third Path', 'Hero''s Downfall', 'Phyrexian Revoker', 'Colossal Skyturtle', 'Bontu''s Last Reckoning', 'Chittering Rats', 'Sylvan Library', 'Dream Trawler', 'Fyndhorn Elves', 'Ral, Izzet Viceroy', 'Leonin Arbiter', 'Cataclysmic Gearhulk', 'Forbid', 'Repeal', 'Thawing Glaciers', 'Terastodon', 'Commence the Endgame', 'Fact or Fiction', 'Oust', 'Invasion of Zendikar', 'Go for the Throat', 'Marauding Blight-Priest', 'Viashino Pyromancer', 'Graveborn Muse', 'Raze to the Ground', 'Steel Overseer', 'Gift of Estates', 'Kefnet the Mindful', 'Secluded Courtyard', 'Stoke the Flames', 'Fiery Justice', 'Orim''s Chant', 'Lagrella, the Magpie', 'Ayara, First of Locthwain', 'Ossification', 'Maestros Charm', 'Faerie Vandal', 'Knight of Glory', 'Ashenmoor Liege', 'Frost Marsh', 'Squadron Hawk'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.5 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Possibility Storm', 'The Celestus', 'Pyrite Spellbomb', 'Cabal Ritual', 'Yahenni''s Expertise', 'Dispatch', 'Utter End', 'Anafenza, Kin-Tree Spirit', 'Drowned Rusalka', 'Network Disruptor', 'Lightning Spear', 'Ground Seal', 'Enchantress''s Presence', 'Think Twice', 'Deprive', 'Thirst for Meaning', 'Embodiment of Fury', 'Fallaji Archaeologist', 'Gravelgill Duo', 'Knight of New Alara', 'Akiri, Fearless Voyager', 'Wanderwine Hub', 'Aetherling', 'Secluded Steppe', 'Cultivate', 'Goblin Dark-Dwellers', 'Heartless Act', 'Westvale Abbey', 'Control Magic', 'Vraska''s Contempt', 'Kitchen Finks', 'Mesa Enchantress', 'Vapor Snag', 'Kemba, Kha Regent', 'Arguel''s Blood Fast', 'Vampiric Rites', 'Bump in the Night', 'Ulcerate', 'Invoke Calamity', 'Into the Roil', 'Inevitable Betrayal', 'Shardless Agent', 'Golgari Guildgate', 'Buried Ruin', 'Genesis Ultimatum', 'Mystical Teachings', 'Floriferous Vinewall', 'Cartel Aristocrat', 'Gloomshrieker', 'Return to the Ranks', 'Elas il-Kor, Sadistic Pilgrim', 'Lizard Blades', 'Dimensional Infiltrator', 'Stasis Snare', 'Izzet Guildgate', 'Ammit Eternal', 'Squee, Goblin Nabob', 'Eiganjo Castle', 'Elderscale Wurm', 'Xerex Strobe-Knight', 'Bloodvial Purveyor', 'Rampant Growth', 'Oona''s Prowler', 'Eerie Ultimatum', 'Martyr of Sands', 'Doom Blade', 'Smoldering Marsh', 'Prosperous Thief', 'Sign in Blood', 'Thornglint Bridge', 'Battlefield Forge', 'Frost Marsh', 'Grand Architect', 'Terastodon', 'Odds // Ends', 'Go for the Throat', 'Gruul Turf', 'Sandwurm Convergence', 'Ulvenwald Hydra', 'Glimmerpost', 'Sylvan Advocate', 'Rakdos Charm', 'Tooth and Nail', 'Stromkirk Noble', 'Prophetic Prism', 'Jace Beleren', 'Commit // Memory', 'Folio of Fancies', 'Solemnity', 'Cabaretti Courtyard', 'Greater Tanuki', 'Jor Kadeen, First Goldwarden', 'Sunlit Marsh', 'Abzan Charm', 'Blight Mamba', 'Ponder', 'Reckless Charge', 'Far // Away', 'Mulch', 'Open the Armory', 'Orzhov Guildgate', 'Forbid', 'Invasion of Azgol', 'Temple of Deceit', 'Purify the Grave', 'Strike It Rich', 'Raging Ravine', 'Kabira Takedown', 'Nine Lives', 'Toolcraft Exemplar', 'Swooping Lookout', 'Raze to the Ground', 'Midnight Guard', 'Breya''s Apprentice', 'Reckless Rage', 'Jungle Hollow', 'Experimental Synthesizer', 'General''s Enforcer', 'Venerated Loxodon', 'Llanowar Mentor', 'Armored Scrapgorger', 'Scrapheap Scrounger', 'Rakdos Cackler', 'Titania, Protector of Argoth', 'Sleight of Hand', 'Experimental Augury', 'Shimmerdrift Vale', 'Rites of Spring', 'Blue Sun''s Zenith', 'Wrench Mind', 'Drainpipe Vermin', 'Faeburrow Elder', 'Sins of the Past', 'Yavimaya Coast', 'The Seedcore', 'Tribute to Horobi', 'Cryptic Caves', 'Memoricide', 'Sea Gate Oracle', 'Doomskar', 'Selesnya Guildgate', 'Oath of Kaya', 'Fiery Temper', 'Porphyry Nodes', 'Chandra, Pyromaster', 'King Darien XLVIII', 'Fyndhorn Elves', 'Might of Old Krosa', 'Invasion of New Capenna', 'Whispersilk Cloak', 'Aegis of the Gods', 'Healer''s Hawk', 'Precursor Golem', 'Bilious Skulldweller', 'Rocco, Cabaretti Caterer', 'Lochmere Serpent', 'Draugr Necromancer', 'Vedalken Heretic', 'Thrill of Possibility', 'Spirited Companion', 'Evolving Wilds', 'Devious Cover-Up', 'Sylvan Library', 'Rally the Ancestors', 'Groundswell', 'Summer Bloom', 'Turnabout', 'Galerider Sliver', 'Apostle''s Blessing', 'Tocatli Honor Guard', 'Grenzo, Dungeon Warden', 'Ayli, Eternal Pilgrim', 'Bubbling Muck', 'Artisan of Kozilek', 'Shriekmaw', 'Favored Hoplite', 'Vraan, Executioner Thane', 'Condemn', 'Rootbound Crag', 'Mirran Crusader', 'Ertai''s Scorn', 'Contaminated Aquifer', 'Changeling Outcast', 'Leonin Lightscribe', 'Yavimaya Iconoclast', 'Gnat Miser', 'Tyrant''s Choice', 'Radiant Grove', 'Twinshot Sniper', 'Sunpetal Grove', 'Sacred Peaks', 'Collected Conjuring', 'Festering Newt', 'Nephalia Drownyard', 'Brave the Elements', 'Bring the Ending', 'Snow-Covered Swamp', 'Putrid Imp', 'Combat Research', 'Bubbling Cauldron', 'Scour All Possibilities', 'Kruphix''s Insight', 'Voyaging Satyr', 'Tectonic Edge', 'Knight of Glory', 'Temple of Mystery', 'Necrogen Spellbomb', 'Nimble Obstructionist', 'Torens, Fist of the Angels', 'Clifftop Retreat', 'Expedite', 'Woodland Cemetery', 'Progenitor Exarch', 'Razortide Bridge', 'Grafted Butcher', 'Shred Memory', 'Ignite Memories', 'Guile', 'Eldrazi Displacer', 'Abundant Growth', 'Thornwood Falls', 'Into the Story', 'Change the Equation', 'Drowned Catacomb', 'Flame Rift', 'Agonizing Remorse', 'Kogla, the Titan Ape', 'Yorion, Sky Nomad', 'Vampire Hexmage', 'Sylvan Caryatid', 'Ivory Tower', 'Dread Wanderer', 'Cliffside Lookout', 'Altered Ego', 'Raffine''s Informant', 'Kemba, Kha Enduring', 'Fetid Heath', 'Concealing Curtains', 'Obliterate', 'Explore', 'Duress', 'Faerie Vandal', 'Waking the Trolls', 'Search for Tomorrow', 'Curiosity', 'Careful Cultivation', 'Teneb, the Harvester', 'Triumphant Adventurer', 'Founding the Third Path', 'Riveteers Overlook', 'Raven''s Crime', 'Rise and Shine', 'Lose Focus', 'Mistveil Plains', 'Terminate', 'Rotting Rats', 'Dark-Dweller Oracle', 'Blightbelly Rat', 'Defiant Strike', 'Commune with the Gods', 'Gutterbones', 'Acidic Slime', 'Graven Lore', 'Servo Exhibition', 'Squadron Hawk', 'Forked Bolt', 'Kiora, the Crashing Wave', 'Madcap Experiment', 'Elite Inquisitor', 'Viashino Pyromancer', 'Dying to Serve', 'Black Sun''s Zenith', 'Grolnok, the Omnivore', 'Mindslaver', 'Green Sun''s Twilight', 'Flametongue Kavu', 'Melira, the Living Cure', 'Rustvale Bridge', 'Verduran Enchantress', 'Tomebound Lich', 'Meeting of Minds', 'Destroy Evil', 'Gallia of the Endless Dance', 'Tendo Ice Bridge', 'Fracturing Gust', 'Springleaf Drum', 'Lavaclaw Reaches', 'Mothdust Changeling', 'Smuggler''s Copter', 'Izzet Charm', 'Lavinia of the Tenth', 'Akroan Crusader', 'Temple of Abandon', 'Etherium Sculptor', 'Duneblast', 'Silundi Vision', 'Otherworldly Journey', 'Heap Doll', 'Divest', 'Joint Exploration', 'Vault Skirge', 'Terramorphic Expanse', 'Vindicate', 'Shivan Reef', 'Wall of Omens', 'Ancestral Blade', 'Sunken Hollow', 'Council''s Judgment', 'Isolated Chapel', 'Kazandu Blademaster', 'Wasteland Strangler', 'See Beyond', 'Wilt', 'Benevolent Bodyguard', 'Hesitation', 'Third Path Iconoclast', 'Oona, Queen of the Fae', 'Fruit of Tizerus', 'Graven Cairns', 'Stubborn Denial', 'Zombie Infestation', 'Koth, Fire of Resistance', 'All That Glitters', 'Quest for the Holy Relic', 'Elixir of Immortality', 'Kiora Bests the Sea God', 'World Shaper', 'Bitter Reunion', 'Hypergenesis', 'Dream Trawler', 'Vivid Marsh', 'Silversmote Ghoul', 'Diabolic Tutor', 'Kitesail Freebooter', 'Negate', 'Heliod''s Pilgrim', 'Fleecemane Lion', 'Gigadrowse', 'Tilling Treefolk', 'Canopy Vista', 'Tresserhorn Sinks', 'Lingering Souls', 'Maestros Charm', 'Tribute to Hunger', 'Hideous End', 'Sheoldred''s Edict', 'Tanglepool Bridge', 'Fumigate', 'Spell Pierce', 'Arcum''s Astrolabe', 'Voidwing Hybrid', 'Declaration in Stone', 'Rakdos Guildgate', 'Reckoner''s Bargain', 'Circuit Mender', 'Ghostly Flicker', 'Eidolon of Blossoms', 'Fetid Pools', 'Nullpriest of Oblivion', 'Jwari Shapeshifter', 'Assemble the Legion', 'Chamber Sentry', 'Goblin Electromancer', 'Faerie Miscreant', 'Viscera Seer', 'Trace of Abundance', 'Timely Reinforcements', 'Disenchant', 'Kher Keep', 'Frantic Inventory', 'Merciless Eviction', 'Froghemoth', 'Dire-Strain Rampage', 'Nested Shambler', 'Ardent Recruit', 'Consuming Vapors', 'Dovin''s Acuity', 'Unburial Rites', 'Angel of Serenity', 'Choked Estuary', 'Sire of Insanity', 'Nightscape Familiar', 'Coiling Oracle', 'Polukranos, World Eater', 'Fierce Empath', 'Tymaret, Chosen from Death', 'Pain Seer', 'Zur''s Weirding', 'Angel of Grace', 'Temple of Plenty', 'Mirror Entity', 'Seedcradle Witch', 'Caves of Koilos', 'Blanchwood Prowler', 'Kambal, Consul of Allocation', 'Woe Strider', 'Spell Burst', 'Drown in Ichor', 'Ghostly Pilferer', 'Fearless Fledgling', 'Stirring Wildwood', 'Mistblade Shinobi', 'Dead of Winter', 'Molten Tributary', 'Archangel Avacyn', 'Anguished Unmaking', 'Glacial Fortress', 'Commence the Endgame', 'Falkenrath Pit Fighter', 'Myth Realized', 'Phalanx Leader', 'Bloodchief Ascension', 'Phyrexian Unlife', 'Mina and Denn, Wildborn', 'Deep Analysis', 'Goblin Bombardment', 'Racers'' Ring', 'The Flame of Keld', 'Farseek', 'Peek', 'Mnemonic Sphere', 'Arcane Sanctum', 'Cauldron Familiar', 'Wizard''s Retort', 'Wayward Guide-Beast', 'Brainstone', 'Forging the Anchor', 'Marauding Blight-Priest', 'Chaotic Transformation', 'Nekrataal', 'Morsel Theft', 'Disrupting Shoal', 'Tangle', 'Felidar Retreat', 'Ral, Storm Conduit', 'Lotus Cobra', 'Hard Evidence', 'Ishkanah, Grafwidow', 'Dusk // Dawn', 'Corrupted Conviction', 'Thragtusk', 'Maelstrom Pulse', 'Combat Thresher', 'Death Cloud', 'Frostwalk Bastion', 'Wood Elves', 'Scrabbling Claws', 'Altar of the Brood', 'Norn''s Inquisitor', 'Silumgar, the Drifting Death', 'Obscura Charm', 'Grand Arbiter Augustin IV', 'Wonder', 'Stern Dismissal', 'Rule of Law', 'Crawling Chorus', 'Steel Overseer', 'Azorius Charm', 'Dimir Guildgate', 'Drake Haven', 'Assault // Battery', 'Nissa, Steward of Elements', 'Ivy Lane Denizen', 'Nezahal, Primal Tide', 'Vigor', 'Crawling Barrens', 'Idyllic Tutor', 'Doomed Traveler', 'Karn''s Bastion', 'Earthquake', 'Lantern-Lit Graveyard', 'Approach of the Second Sun', 'Sweltering Suns', 'Supreme Will', 'Frantic Search', 'Priest of the Haunted Edge', 'Sculpting Steel', 'Incinerate', 'Night of Souls'' Betrayal', 'Ensoul Artifact', 'Sphere of Safety', 'Blade Splicer', 'Mesmeric Fiend', 'Simic Guildgate', 'Orcish Lumberjack', 'Pardic Miner', 'Big Score', 'Scarab Feast', 'Runed Halo', 'Dawn of Hope', 'Throne of the God-Pharaoh', 'Smother', 'Tranquil Thicket', 'Talisman of Curiosity', 'Akoum Hellhound', 'Sphinx''s Herald', 'Battle of Frost and Fire', 'Drossforge Bridge', 'Consume the Meek', 'Temple of Malady', 'Mirage Mirror', 'Forgotten Cave', 'Winds of Abandon', 'Shimmer Dragon', 'Pharika''s Cure', 'Herald of the Pantheon', 'Hope of Ghirapur', 'Empyrial Plate', 'Mortuary Mire', 'Silverblade Paladin', 'Master of Etherium', 'Discovery // Dispersal', 'Sol Talisman', 'Mouth of Ronom', 'Expedition Envoy', 'Check for Traps', 'Honor of the Pure', 'Vines of Vastwood', 'Goldmire Bridge', 'Hieroglyphic Illumination', 'Vexing Shusher', 'Tribal Flames', 'Ethereal Armor', 'Terminus', 'Icehide Golem', 'Universal Automaton', 'Angrath, the Flame-Chained', 'Dark Petition', 'Mishra''s Factory', 'Sigil of the Empty Throne', 'Desperate Ritual', 'Myr Superion', 'Lay Down Arms', 'Ancient Amphitheater', 'Leonin Relic-Warder', 'Kalastria Healer', 'Krosan Grip', 'Moon-Circuit Hacker', 'Bone Shards', 'Pariah', 'The Underworld Cookbook', 'Darksteel Colossus', 'Geothermal Bog', 'Vivid Crag', 'Spatial Contortion', 'Seething Song', 'Cataclysmic Gearhulk', 'Llanowar Augur', 'Nameless Inversion', 'Increasing Ambition', 'Invasion of Zendikar', 'Stinkdrinker Bandit', 'Greater Gargadon', 'Gift of Immortality', 'Elspeth Conquers Death', 'Archpriest of Shadows', 'Barter in Blood', 'Bontu''s Last Reckoning', 'Blood on the Snow', 'Jace, Architect of Thought', 'Urban Evolution', 'Syphon Life', 'Patchwork Automaton', 'Slagstorm', 'Halimar Excavator', 'Territorial Kavu', 'Celestial Colonnade', 'Nissa, Worldwaker', 'Tezzeret''s Gambit', 'Opulent Palace', 'Myr Battlesphere', 'Scab-Clan Berserker', 'Glamerdye', 'Tidehollow Sculler', 'Repudiate // Replicate', 'Call of the Death-Dweller', 'Phyrexian Dreadnought', 'Glorybringer', 'Kami of False Hope', 'Wrath of God', 'Annex Sentry', 'Thraben Inspector', 'Grand Abolisher', 'Bloodsoaked Champion', 'Dauntless Bodyguard', 'Alms of the Vein', 'Chandra, Flamecaller', 'Blood Artist', 'Arch of Orazca', 'Hour of Promise', 'Sunstrike Legionnaire', 'Gather the Pack', 'Arlinn Kord', 'Jwari Disruption', 'Drowner of Hope', 'Giant Killer', 'Gruul Spellbreaker', 'Felidar Cub', 'Victim of Night', 'Tangled Islet', 'Ramunap Excavator', 'Erebos''s Intervention', 'Satyr Hoplite', 'Chain Lightning', 'Brain Freeze', 'Vivid Grove', 'Dead Weight', 'Birds of Paradise', 'Tolarian Terror', 'Wild Cantor', 'Rift Bolt', 'Canyon Slough', 'Makeshift Mannequin', 'Orzhov Charm', 'Delver of Secrets', 'Needle Spires', 'Weathered Wayfarer', 'Karumonix, the Rat King', 'Scrying Sheets', 'Moderation', 'Fertile Ground', 'Executioner''s Capsule', 'Harmonize', 'Sea-Dasher Octopus', 'Solitary Confinement', 'Banishing Slash', 'Soltari Priest', 'Dismal Backwater', 'Mastermind''s Acquisition', 'Burst Lightning', 'Ashnod, Flesh Mechanist', 'Platinum Angel', 'Frenetic Sliver', 'Putrefy', 'Nomad Outpost', 'Voldaren Pariah', 'Elvish Visionary', 'Venser, the Sojourner', 'Pillar of the Paruns', 'Geyadrone Dihada', 'Decree of Justice', 'Ephara, God of the Polis', 'Basilisk Collar', 'Nimbus Maze', 'Dark Ritual', 'Voltage Surge', 'Anafenza, the Foremost', 'Halana and Alena, Partners', 'Genesis Hydra', 'Satyr Wayfinder', 'Monument to Perfection', 'Malcator, Purity Overseer', 'Malicious Malfunction', 'Izzet Boilerworks', 'Skyclave Shade', 'Champion of Wits', 'Siege Rhino', 'Revitalize', 'Mindcrank', 'Aetherspouts', 'Sorin, Vengeful Bloodlord', 'Summary Dismissal', 'Misery Charm', 'Bogbrew Witch', 'Epic Experiment', 'Vampire Nighthawk', 'Mana Leak', 'Quicken', 'Augur of Bolas', 'Port Town', 'Brokers Hideout', 'Timeless Witness', 'Ally Encampment', 'Vadrik, Astral Archmage', 'Skyshroud Elf', 'Crux of Fate', 'Electrolyze', 'Ral, Izzet Viceroy', 'Tendrils of Agony', 'Ruric Thar, the Unbowed', 'Baneful Omen', 'Weapons Trainer', 'Succumb to Temptation', 'Deafening Clarion', 'Obscura Storefront', 'Raise the Alarm', 'Master of Death', 'Shambling Vent', 'Evangel of Synthesis', 'Inscribed Tablet', 'Dregscape Zombie', 'Psychatog', 'Fiery Justice', 'Grave Scrabbler', 'Hero''s Downfall', 'Chief Engineer', 'Corpse Cur', 'Scrapwork Mutt', 'Search for Azcanta', 'Dead // Gone', 'Ichorclaw Myr', 'Fade from Memory', 'Lurrus of the Dream-Den', 'Cut Down', 'Graaz, Unstoppable Juggernaut', 'Reveillark', 'Saproling Migration', 'Demonic Bargain', 'Vraska''s Fall', 'Snow-Covered Mountain', 'Pyroclasm', 'Remorseful Cleric', 'Phoenix Chick', 'Invasion of Amonkhet', 'Kessig Wolf Run', 'Invasion of Ergamon', 'Tempest Djinn', 'Oracle of Tragedy', 'Pharika''s Libation', 'Knight of the Reliquary', 'Sultai Charm', 'Fire Prophecy', 'Haunted Fengraf', 'Staff of Domination', 'Fireblade Charger', 'Gruul Guildgate', 'Bloodline Keeper', 'Sinew Sliver', 'Delay', 'Dakkon, Shadow Slayer', 'Engulf the Shore', 'Wandering Fumarole', 'Forsake the Worldly', 'Thrash // Threat', 'Flooded Grove', 'Shrapnel Blast', 'Dokuchi Silencer', 'Cabal Therapist', 'Invigorate', 'Murderous Cut', 'Empyrial Armor', 'Ancient Stirrings', 'Late to Dinner', 'Ashen Rider', 'Cathartic Reunion', 'Ranger of Eos', 'White Sun''s Zenith', 'Argentum Masticore', 'Eternal Scourge', 'Ghitu Lavarunner', 'Unctus, Grand Metatect', 'Luminarch Ascension', 'Murmuring Bosk', 'Angel of Condemnation', 'Haunted Mire', 'Castigate', 'Spectral Shift', 'Scattered Groves', 'Nezumi Graverobber', 'Tainted Indulgence', 'Sculpted Perfection', 'Dissipate', 'Witching Well', 'Sever the Bloodline', 'Blightning', 'Dreams of Steel and Oil', 'Anger of the Gods', 'Distorted Curiosity', 'Wooded Bastion', 'Divinity of Pride', 'Oona''s Grace', 'Lightning Strike', 'Oblivion Ring', 'Stir the Grave', 'Surrak, the Hunt Caller', 'Stoke the Flames', 'Seal of Cleansing', 'Sinister Concoction', 'Woodfall Primus', 'Gitaxian Probe', 'Pyretic Ritual', 'Basking Rootwalla', 'Rix Maadi Reveler', 'Teferi, Mage of Zhalfir', 'Deep Forest Hermit', 'Yisan, the Wanderer Bard', 'Boros Guildgate', 'Rites of Initiation', 'Scuttling Doom Engine', 'Llanowar Tribe', 'General Ferrous Rokiric', 'Hypnotic Specter', 'Circular Logic', 'Venser, Shaper Savant', 'Thundermaw Hellkite', 'Call to the Grave', 'Orim''s Chant', 'Kunoros, Hound of Athreos', 'Feed the Swarm', 'Bloodbraid Elf', 'Brave the Sands', 'Varolz, the Scar-Striped', 'Boon-Bringer Valkyrie', 'Marble Diamond', 'Pull from Tomorrow', 'Steppe Lynx', 'Slaughter Pact', 'Botanical Plaza', 'Timeless Dragon', 'Silumgar''s Scorn', 'Union of the Third Path', 'Jukai Naturalist', 'Maze''s End', 'Judge''s Familiar', 'Sulfur Falls', 'Gadrak, the Crown-Scourge', 'Voidslime', 'Kaito, Dancing Shadow', 'Lodestone Golem', 'Ancient Ziggurat', 'Ossification', 'Elemental Masterpiece', 'Graveborn Muse', 'Sheltered Thicket', 'Out of Time', 'Geomancer''s Gambit', 'Day of Judgment', 'Seeker of the Way', 'Thopter Mechanic', 'Grave Titan', 'Elves of Deep Shadow', 'Touch the Spirit Realm', 'Corrupted Crossroads', 'Mikokoro, Center of the Sea', 'Cathedral of War', 'Bident of Thassa', 'Avacyn''s Pilgrim', 'Kozilek''s Predator', 'Hada Freeblade', 'Ovika, Enigma Goliath', 'Xenagos, the Reveler', 'Snow-Covered Plains', 'Evacuation', 'Glimpse of Tomorrow', 'Tear Asunder', 'Cloudpost', 'Ashenmoor Liege', 'Ogre Slumlord', 'Malakir Rebirth', 'Golgari Rot Farm', 'Ornithopter', 'Inkwell Leviathan', 'Temple of Silence', 'Sin Collector', 'Saffi Eriksdotter', 'Night Market Lookout', 'Farhaven Elf', 'Gleeful Demolition', 'Disciple of Bolas', 'Angel of Despair', 'Seismic Assault', 'Swiftfoot Boots', 'Tocasia''s Dig Site', 'Exclude', 'Bituminous Blast', 'Oath of Teferi', 'Secluded Courtyard', 'Arbalest Engineers', 'Thassa''s Intervention', 'Herd Migration', 'Jungle Shrine', 'Serra Ascendant', 'The Scorpion God', 'Sprite Dragon', 'Rakdos''s Return', 'Frontier Bivouac', 'Ambush Viper', 'Dimir Aqueduct', 'Rune Snag', 'Orzhov Basilica', 'Destiny Spinner', 'Phyrexian Censor', 'Blazing Rootwalla', 'Treasure Cruise', 'Oracle of Mul Daya', 'Wolfbriar Elemental', 'Hanweir Garrison', 'Curse of Exhaustion', 'Ravenous Squirrel', 'Mistvault Bridge', 'Obzedat, Ghost Council', 'Gift of Estates', 'Unholy Heat', 'Repeal', 'River of Tears', 'Unlucky Witness', 'Sarkhan, the Dragonspeaker', 'Phantasmal Image', 'Mulldrifter', 'Kjeldoran Outpost', 'Lazotep Chancellor', 'Sterling Grove', 'Battle of Wits', 'Hall of Oracles', 'Mausoleum Secrets', 'Stupor', 'Invasion of Regatha', 'Game Trail', 'Upheaval', 'Counterflux', 'Mistcutter Hydra', 'Notorious Throng', 'Valiant Changeling', 'Marwyn, the Nurturer', 'Rain of Tears', 'Reflector Mage', 'Stone Rain', 'Psychic Possession', 'Kefnet the Mindful', 'Dreadhorde Butcher', 'Archon of Sun''s Grace', 'Kappa Tech-Wrecker', 'Phyrexian Revoker', 'Bloodchief''s Thirst', 'Sigrid, God-Favored', 'Bogardan Hellkite', 'Open the Gates', 'Demigod of Revenge', 'Brineborn Cutthroat', 'Thaumatic Compass', 'Pore Over the Pages', 'Faith''s Reward', 'Zephyr Singer', 'Of One Mind', 'Hooting Mandrills', 'Teshar, Ancestor''s Apostle', 'Stone Haven Outfitter', 'Llanowar Elves', 'Barbarian Ring', 'Oni-Cult Anvil', 'Commune with Spirits', 'Crack the Earth', 'Endbringer', 'Garruk Wildspeaker', 'Cremate', 'Forbidden Alchemy', 'Dross Skullbomb', 'Kitchen Imp', 'Vryn Wingmare', 'Figure of Destiny', 'Riveteers Charm', 'Abyssal Persecutor', 'Argentum Armor', 'Arbor Elf', 'Carven Caryatid', 'Throat Slitter', 'Consult the Necrosages', 'Dragonskull Summit', 'Melira, Sylvok Outcast', 'Elvish Rejuvenator', 'Archaeomancer', 'Eldrazi Skyspawner', 'Reinforced Ronin', 'Shape Anew', 'Glistener Elf', 'Zuran Orb', 'Surge of Salvation', 'Invasion of Kaladesh', 'Narcomoeba', 'Dryad Militant', 'Smallpox', 'Cloudshredder Sliver', 'Nimble Larcenist', 'Rust Goliath', 'Disallow', 'Knight of the White Orchid', 'Time of Need', 'Silver-Fur Master', 'Rabbit Battery', 'Slogurk, the Overslime', 'Hyena Umbra', 'Vampire Lacerator', 'Vampire Neonate', 'Wrenn''s Resolve', 'Temple of Triumph', 'Devil''s Play', 'Burning of Xinye', 'Grim Haruspex', 'Ethersworn Sphinx', 'Hinterland Harbor', 'Vault of the Archangel', 'Sandsteppe Citadel', 'Gideon Jura', 'Cabal Initiate', 'Simian Spirit Guide', 'Ayara, First of Locthwain', 'Talisman of Unity', 'Protect the Negotiators', 'Kumano Faces Kakkazan', 'Memory Lapse', 'Quiet Speculation', 'Shizo, Death''s Storehouse', 'Leonin Arbiter', 'Venser, Corpse Puppet', 'Sarkhan the Masterless', 'Mind''s Desire', 'Abiding Grace', 'Chittering Rats', 'Radha, Heart of Keld', 'Volt Charge', 'Esper Charm', 'Second Sunrise', 'Thopter Spy Network', 'Lagrella, the Magpie', 'Energy Refractor', 'Magister of Worth', 'Pack Rat', 'Prologue to Phyresis', 'Fact or Fiction', 'Shard Volley', 'Recurring Nightmare', 'Demolition Field', 'Diffusion Sliver', 'Silent Gravestone', 'Elvish Mystic', 'Altar of the Goyf', 'Resurgent Belief', 'Ghostfire Blade', 'Hornet Queen', 'Commune with Nature', 'Herd Baloth', 'Kor Firewalker', 'Abundant Harvest', 'Impulse', 'Temple of Enlightenment', 'Silverbluff Bridge', 'Moorland Haunt', 'Helm of the Host', 'Plated Geopede', 'Briarbridge Tracker', 'Nimble Trapfinder', 'Gilt-Leaf Archdruid', 'Nevermore', 'Detention Sphere', 'Lost Legacy', 'Simian Sling', 'Become Immense', 'Yasharn, Implacable Earth', 'Dragon''s Hoard', 'Thawing Glaciers', 'Settle the Wreckage', 'Vessel of Nascency', 'Stoic Rebuttal', 'Kaya, Ghost Assassin', 'Hissing Quagmire', 'Mystic Monastery', 'Rise // Fall', 'Predatory Sliver', 'Seal of Fire', 'Heliod''s Intervention', 'Gird for Battle', 'Darksteel Citadel', 'Worship', 'Midnight Reaper', 'Sunblade Samurai', 'Oust', 'Tezzeret, Artifice Master', 'Barbed Sextant', 'Tidespout Tyrant', 'Flaying Tendrils', 'Yawgmoth''s Bargain', 'Arcbound Ravager', 'Sin Prodder', 'Azorius Guildgate', 'Leonin Warleader', 'Kor Skyfisher', 'Loxodon Smiter', 'Chandra, Fire Artisan', 'Dread Return', 'Price of Progress', 'Gideon''s Intervention', 'Frost Titan', 'Caldera Hellion', 'Aetherblade Agent', 'Overgrowth', 'Blessed Alliance', 'Gnawing Vermin', 'Slagwoods Bridge', 'Fight as One', 'Bolas''s Citadel', 'Boreal Shelf', 'Murderous Redcap', 'Huatli, Radiant Champion', 'Gateway Plaza', 'Mazemind Tome', 'Chief of the Foundry', 'Nature''s Lore', 'Liliana Vess', 'Fae of Wishes', 'Presence of Gond', 'Mindsplice Apparatus', 'Restoration Angel', 'Stinkweed Imp', 'Cleansing Wildfire', 'Idyllic Beachfront', 'Unmarked Grave', 'Marit Lage''s Slumber', 'Aether Spellbomb', 'Jokulhaups', 'Artistic Refusal', 'Archangel of Wrath', 'Duplicant', 'Seal of Removal', 'Primal Command', 'Colossal Skyturtle', 'Big Game Hunter', 'Glint-Sleeve Siphoner', 'Obstinate Baloth', 'Sudden Edict', 'Invisible Stalker', 'Hostage Taker', 'Valakut Exploration', 'Knowledge Pool', 'Nether Spirit', 'Ghost Quarter', 'Elvish Archdruid', 'Godo, Bandit Warlord'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.5, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Rocco, Cabaretti Caterer', 'Geyadrone Dihada', 'Reflector Mage', 'Figure of Destiny', 'Vedalken Heretic', 'Bloodbraid Elf', 'Elspeth Conquers Death', 'Barbed Sextant', 'Bogardan Hellkite', 'Idyllic Beachfront', 'Azorius Guildgate', 'Necrogen Spellbomb', 'Rune Snag', 'Cataclysmic Gearhulk', 'Bloodchief''s Thirst', 'Blight Mamba', 'Blazing Rootwalla', 'Sol Talisman', 'Saproling Migration', 'Voldaren Pariah', 'Barter in Blood', 'Incinerate', 'Unlucky Witness', 'Gruul Spellbreaker', 'Ephara, God of the Polis', 'Glamerdye', 'Dying to Serve', 'Third Path Iconoclast', 'Pyroclasm', 'All That Glitters', 'Mirran Crusader', 'Drowner of Hope', 'Ally Encampment', 'Unburial Rites', 'Vapor Snag', 'Abyssal Persecutor', 'Oona''s Prowler', 'Executioner''s Capsule', 'Stern Dismissal', 'Thornglint Bridge', 'Disciple of Bolas', 'Ivory Tower', 'Sheoldred''s Edict', 'Pain Seer', 'Teneb, the Harvester', 'Koth, Fire of Resistance', 'Lightning Spear', 'Artistic Refusal', 'Goblin Bombardment', 'Botanical Plaza', 'Recurring Nightmare', 'Oath of Kaya', 'Hanweir Garrison', 'Esper Charm', 'Sphere of Safety', 'Llanowar Mentor', 'Yasharn, Implacable Earth', 'Snow-Covered Mountain', 'Experimental Synthesizer', 'Briarbridge Tracker', 'Stirring Wildwood', 'Caldera Hellion', 'Porphyry Nodes', 'Inscribed Tablet', 'Hypnotic Specter', 'Radiant Grove', 'Cleansing Wildfire', 'Geothermal Bog', 'Plated Geopede', 'Utter End', 'Return to the Ranks', 'Nephalia Drownyard', 'Brave the Elements', 'Saffi Eriksdotter', 'Crawling Chorus', 'Far // Away', 'Gilt-Leaf Archdruid', 'Grand Arbiter Augustin IV', 'Kambal, Consul of Allocation', 'Dusk // Dawn', 'Mana Leak', 'Ral, Storm Conduit', 'Mesa Enchantress', 'Groundswell', 'Tezzeret, Artifice Master', 'Eldrazi Displacer', 'Hornet Queen', 'Gravelgill Duo', 'Presence of Gond', 'Woe Strider', 'Ranger of Eos', 'Think Twice', 'Consult the Necrosages', 'Kaya, Ghost Assassin', 'Trace of Abundance', 'Temple of Deceit', 'Grand Architect', 'Supreme Will', 'Squee, Goblin Nabob', 'Polukranos, World Eater', 'Snow-Covered Swamp', 'Woodland Cemetery', 'Anger of the Gods', 'Commune with the Gods', 'Oona''s Grace', 'Feed the Swarm', 'Flaying Tendrils', 'Winds of Abandon', 'Kessig Wolf Run', 'Goldmire Bridge', 'Tidehollow Sculler', 'Dimir Guildgate', 'Vessel of Nascency', 'Viscera Seer', 'Silumgar, the Drifting Death', 'Azorius Charm', 'Heliod''s Pilgrim', 'Crawling Barrens', 'Rust Goliath', 'Mindsplice Apparatus', 'Dead of Winter', 'Hooting Mandrills', 'Cliffside Lookout', 'Quest for the Holy Relic', 'Steel Overseer', 'Empyrial Armor', 'Sylvan Advocate', 'Otherworldly Journey', 'Hour of Promise', 'Wilt', 'Ishkanah, Grafwidow', 'Terramorphic Expanse', 'Frenetic Sliver', 'Varolz, the Scar-Striped', 'Akiri, Fearless Voyager', 'Boros Guildgate', 'Ashnod, Flesh Mechanist', 'Faeburrow Elder', 'Gallia of the Endless Dance', 'Galerider Sliver', 'Big Game Hunter', 'Graven Cairns', 'Mindcrank', 'Midnight Guard', 'Kumano Faces Kakkazan', 'Hada Freeblade', 'Divest', 'Chandra, Pyromaster', 'Lavinia of the Tenth', 'Leonin Lightscribe', 'Cloudshredder Sliver', 'Rule of Law', 'Detention Sphere', 'Summary Dismissal', 'Ghitu Lavarunner', 'Monument to Perfection', 'Frost Titan', 'Succumb to Temptation', 'Aether Spellbomb', 'Elixir of Immortality', 'Kiora Bests the Sea God', 'Dissipate', 'Heartless Act', 'Orzhov Guildgate', 'Jukai Naturalist', 'Pyretic Ritual', 'Blue Sun''s Zenith', 'Vivid Grove', 'Gideon''s Intervention', 'Stupor', 'Invasion of Zendikar', 'Cathedral of War', 'Spell Burst', 'Wandering Fumarole', 'Fetid Pools', 'Nimble Trapfinder', 'Marwyn, the Nurturer', 'Banishing Slash', 'Pardic Miner', 'Nimbus Maze', 'Of One Mind', 'Jungle Shrine', 'Frantic Search', 'Mirage Mirror', 'Dregscape Zombie', 'Drown in Ichor', 'Search for Tomorrow', 'Abundant Harvest', 'Elvish Mystic', 'Champion of Wits', 'Brainstone', 'Bolas''s Citadel', 'Mystical Teachings', 'Thornwood Falls', 'Nissa, Steward of Elements', 'Izzet Charm', 'Meeting of Minds', 'Triumphant Adventurer', 'Viashino Pyromancer', 'Kazandu Blademaster', 'Night Market Lookout', 'Loxodon Smiter', 'Commune with Spirits', 'Gitaxian Probe', 'Territorial Kavu', 'Peek', 'Gruul Guildgate', 'Halimar Excavator', 'Founding the Third Path', 'Empyrial Plate', 'Bone Shards', 'Thraben Inspector', 'Frantic Inventory', 'Mirror Entity', 'General Ferrous Rokiric', 'Unholy Heat', 'Eternal Scourge', 'Abzan Charm', 'Fierce Empath', 'Mesmeric Fiend', 'Glacial Fortress', 'Ghostly Pilferer', 'Angel of Despair', 'Fiery Justice', 'Grolnok, the Omnivore', 'Obstinate Baloth', 'Squadron Hawk', 'Declaration in Stone', 'Brokers Hideout', 'Tocasia''s Dig Site', 'Nekrataal', 'Throat Slitter', 'Lantern-Lit Graveyard', 'Primal Command', 'Increasing Ambition', 'Leonin Relic-Warder', 'Notorious Throng', 'Burst Lightning', 'Angel of Grace', 'Duneblast', 'Venser, Shaper Savant', 'Assault // Battery', 'Chief Engineer', 'Spatial Contortion', 'Llanowar Elves', 'Bituminous Blast', 'Delver of Secrets', 'Icehide Golem', 'Elderscale Wurm', 'Guile', 'Anafenza, Kin-Tree Spirit', 'Nameless Inversion', 'Sandwurm Convergence', 'Seedcradle Witch', 'Merciless Eviction', 'Pack Rat', 'Arbor Elf', 'Knight of New Alara', 'Rift Bolt', 'Whispersilk Cloak', 'Serra Ascendant', 'Llanowar Augur', 'Inkwell Leviathan', 'Ancient Ziggurat', 'Aetherling', 'Curse of Exhaustion', 'Sculpting Steel', 'Marauding Blight-Priest', 'Disallow', 'Anafenza, the Foremost', 'Evolving Wilds', 'The Underworld Cookbook', 'Expedition Envoy', 'Stubborn Denial', 'Wood Elves', 'Genesis Ultimatum', 'Invasion of Regatha', 'Carven Caryatid', 'Battlefield Forge', 'Ramunap Excavator', 'Solemnity', 'Faerie Vandal', 'Change the Equation', 'Pharika''s Libation', 'Chamber Sentry', 'Greater Gargadon', 'Electrolyze', 'Magister of Worth', 'Smuggler''s Copter', 'Master of Death', 'Wild Cantor', 'Scrapwork Mutt', 'Hinterland Harbor', 'Bloodline Keeper', 'Dross Skullbomb', 'Giant Killer', 'Diffusion Sliver', 'Chaotic Transformation', 'Dryad Militant', 'Resurgent Belief', 'Dreadhorde Butcher', 'Rakdos Cackler', 'Mishra''s Factory', 'Temple of Silence', 'Leonin Warleader', 'Grenzo, Dungeon Warden', 'Coiling Oracle', 'Summer Bloom', 'Elite Inquisitor', 'Silverbluff Bridge', 'Judge''s Familiar', 'Sea-Dasher Octopus', 'Flame Rift', 'Check for Traps', 'Vampiric Rites', 'Yavimaya Coast', 'Chief of the Foundry', 'Grave Scrabbler', 'Terminate', 'Commune with Nature', 'Archangel of Wrath', 'Rampant Growth', 'Shambling Vent', 'Kor Skyfisher', 'Kami of False Hope', 'Victim of Night', 'Chain Lightning', 'Fertile Ground', 'Krosan Grip', 'Gateway Plaza', 'Malicious Malfunction', 'Drowned Catacomb', 'Demigod of Revenge', 'Norn''s Inquisitor', 'Opulent Palace', 'Goblin Dark-Dwellers', 'Obscura Charm', 'Sculpted Perfection', 'Unmarked Grave', 'Energy Refractor', 'Moorland Haunt', 'Smoldering Marsh', 'Scrying Sheets', 'Touch the Spirit Realm', 'Aetherblade Agent', 'Corpse Cur', 'Melira, Sylvok Outcast', 'Battle of Wits', 'Rites of Spring', 'Grand Abolisher', 'Ghostly Flicker', 'Morsel Theft', 'Patchwork Automaton', 'Quicken', 'Scrabbling Claws', 'Kjeldoran Outpost', 'Knight of the White Orchid', 'Satyr Wayfinder', 'Repeal', 'Dead Weight', 'Vindicate', 'Wall of Omens', 'Elemental Masterpiece', 'Psychic Possession', 'Gigadrowse', 'Careful Cultivation', 'Torens, Fist of the Angels', 'Wizard''s Retort', 'Dauntless Bodyguard', 'Dread Return', 'Tyrant''s Choice', 'Spell Pierce', 'Reckless Charge', 'Xenagos, the Reveler', 'Teferi, Mage of Zhalfir', 'Lazotep Chancellor', 'Nether Spirit', 'Bump in the Night', 'Needle Spires', 'Thassa''s Intervention', 'Smother', 'Vampire Hexmage', 'Goblin Electromancer', 'Tanglepool Bridge', 'Barbarian Ring', 'Sylvan Library', 'Game Trail', 'Sin Prodder', 'Earthquake', 'Orcish Lumberjack', 'Deep Forest Hermit', 'Archangel Avacyn', 'Fearless Fledgling', 'Fiery Temper', 'Vault of the Archangel', 'Dakkon, Shadow Slayer', 'Elvish Rejuvenator', 'Ayara, First of Locthwain', 'Ashen Rider', 'Seismic Assault', 'Mina and Denn, Wildborn', 'Augur of Bolas', 'Harmonize', 'Commit // Memory', 'Time of Need', 'Golgari Rot Farm', 'Tainted Indulgence', 'Hard Evidence', 'Corrupted Crossroads', 'Sunblade Samurai', 'Murderous Redcap', 'Shriekmaw', 'Bubbling Cauldron', 'Satyr Hoplite', 'Siege Rhino', 'Mistvault Bridge', 'Circuit Mender', 'Moderation', 'Venser, Corpse Puppet', 'Drossforge Bridge', 'Cut Down', 'Duplicant', 'Contaminated Aquifer', 'Talisman of Curiosity', 'Herd Migration', 'Fruit of Tizerus', 'Rise // Fall', 'Sinew Sliver', 'Epic Experiment', 'Nimble Larcenist', 'Open the Armory', 'Thopter Spy Network', 'Heap Doll', 'Mothdust Changeling', 'Brave the Sands', 'Sunpetal Grove', 'Exclude', 'Protect the Negotiators', 'Twinshot Sniper', 'Combat Research', 'Swiftfoot Boots', 'Nimble Obstructionist', 'Drake Haven', 'Gadrak, the Crown-Scourge', 'Glimpse of Tomorrow', 'Silver-Fur Master', 'Lodestone Golem', 'Bogbrew Witch', 'Shimmerdrift Vale', 'Mortuary Mire', 'Haunted Fengraf', 'Kruphix''s Insight', 'Baneful Omen', 'Blessed Alliance', 'Melira, the Living Cure', 'Madcap Experiment', 'Favored Hoplite', 'Racers'' Ring', 'Second Sunrise', 'Canopy Vista', 'Ulvenwald Hydra', 'Late to Dinner', 'Soltari Priest', 'Oust', 'Silumgar''s Scorn', 'Swooping Lookout', 'Angel of Serenity', 'Seal of Removal', 'Doomed Traveler', 'Myr Superion', 'Genesis Hydra', 'Fight as One', 'Festering Newt', 'Mistveil Plains', 'Heliod''s Intervention', 'Dark-Dweller Oracle', 'Shard Volley', 'Agonizing Remorse', 'Yorion, Sky Nomad', 'Strike It Rich', 'Garruk Wildspeaker', 'Leonin Arbiter', 'Kitesail Freebooter', 'Gather the Pack', 'Dreams of Steel and Oil', 'Honor of the Pure', 'Night of Souls'' Betrayal', 'Lurrus of the Dream-Den', 'Bilious Skulldweller', 'Scattered Groves', 'Bring the Ending', 'Mystic Monastery', 'Karumonix, the Rat King', 'Death Cloud', 'Forging the Anchor', 'Farhaven Elf', 'Eldrazi Skyspawner', 'Thirst for Meaning', 'Kemba, Kha Regent', 'Dread Wanderer', 'Rain of Tears', 'Isolated Chapel', 'Misery Charm', 'Oblivion Ring', 'Bident of Thassa', 'Stoic Rebuttal', 'Thragtusk', 'Martyr of Sands', 'Eidolon of Blossoms', 'Thawing Glaciers', 'Dovin''s Acuity', 'Boon-Bringer Valkyrie', 'Vexing Shusher', 'Cabal Therapist', 'Vines of Vastwood', 'Bloodchief Ascension', 'Jace Beleren', 'Frost Marsh', 'Might of Old Krosa', 'Flametongue Kavu', 'Benevolent Bodyguard', 'Fallaji Archaeologist', 'Divinity of Pride', 'Jor Kadeen, First Goldwarden', 'Wasteland Strangler', 'Ruric Thar, the Unbowed', 'Tomebound Lich', 'Archaeomancer', 'Tribute to Horobi', 'Go for the Throat', 'Altar of the Goyf', 'Karn''s Bastion', 'Voidslime', 'Graveborn Muse', 'Pyrite Spellbomb', 'Marble Diamond', 'The Seedcore', 'Nine Lives', 'Tolarian Terror', 'Scarab Feast', 'Molten Tributary', 'Thrill of Possibility', 'Tranquil Thicket', 'Clifftop Retreat', 'Evacuation', 'Open the Gates', 'Jwari Disruption', 'Argentum Masticore', 'Shivan Reef', 'Angel of Condemnation', 'Gird for Battle', 'Throne of the God-Pharaoh', 'Nature''s Lore', 'Elves of Deep Shadow', 'Dawn of Hope', 'Sheltered Thicket', 'Weathered Wayfarer', 'Evangel of Synthesis', 'Curiosity', 'Tectonic Edge', 'Greater Tanuki', 'Herald of the Pantheon', 'Secluded Courtyard', 'Rakdos''s Return', 'Nightscape Familiar', 'Dokuchi Silencer', 'Avacyn''s Pilgrim', 'Reckoner''s Bargain', 'Pore Over the Pages', 'Prosperous Thief', 'Collected Conjuring', 'Quiet Speculation', 'Myth Realized', 'Demolition Field', 'Yawgmoth''s Bargain', 'Lose Focus', 'Impulse', 'Simian Sling', 'Fire Prophecy', 'Ancient Stirrings', 'Vault Skirge', 'Explore', 'Aegis of the Gods', 'Mastermind''s Acquisition', 'Union of the Third Path', 'Zephyr Singer', 'Burning of Xinye', 'Surrak, the Hunt Caller', 'Ignite Memories', 'Turnabout', 'Forsake the Worldly', 'Obzedat, Ghost Council', 'Abiding Grace', 'Chandra, Fire Artisan', 'Arlinn Kord', 'Invisible Stalker', 'Scour All Possibilities', 'Price of Progress', 'Runed Halo', 'Farseek', 'Deprive', 'Memoricide', 'Shimmer Dragon', 'Hall of Oracles', 'Simian Spirit Guide', 'Lizard Blades', 'Kher Keep', 'Fleecemane Lion', 'Sigrid, God-Favored', 'Hyena Umbra', 'Ground Seal', 'Aetherspouts', 'Restoration Angel', 'Sultai Charm', 'Stinkdrinker Bandit', 'Fyndhorn Elves', 'Gloomshrieker', 'Orim''s Chant', 'Fetid Heath', 'Arcane Sanctum', 'Zuran Orb', 'Volt Charge', 'Breya''s Apprentice', 'Llanowar Tribe', 'Sandsteppe Citadel', 'Dark Petition', 'Putrefy', 'Stone Rain', 'Zombie Infestation', 'Wrench Mind', 'Faith''s Reward', 'Desperate Ritual', 'Seal of Fire', 'Treasure Cruise', 'Yahenni''s Expertise', 'Blade Splicer', 'Shape Anew', 'Nezumi Graverobber', 'Folio of Fancies', 'Tear Asunder', 'Hieroglyphic Illumination', 'Kitchen Imp', 'Makeshift Mannequin', 'Armored Scrapgorger', 'Yavimaya Iconoclast', 'Delay', 'Ghost Quarter', 'Helm of the Host', 'Odds // Ends', 'Kappa Tech-Wrecker', 'Bloodvial Purveyor', 'Nissa, Worldwaker', 'Overgrowth', 'Sulfur Falls', 'Grafted Butcher', 'Ossification', 'Dream Trawler', 'Ambush Viper', 'Consuming Vapors', 'Kalastria Healer', 'Slogurk, the Overslime', 'Dispatch', 'Out of Time', 'Sylvan Caryatid', 'Stromkirk Noble', 'Steppe Lynx', 'Erebos''s Intervention', 'Snow-Covered Plains', 'Invigorate', 'Seal of Cleansing', 'Memory Lapse', 'Tempest Djinn', 'Archon of Sun''s Grace', 'Ghostfire Blade', 'Consume the Meek', 'Timely Reinforcements', 'Izzet Guildgate', 'Priest of the Haunted Edge', 'Surge of Salvation', 'Hideous End', 'Westvale Abbey', 'Lingering Souls', 'Haunted Mire', 'Jungle Hollow', 'Changeling Outcast', 'Ancestral Blade', 'Temple of Abandon', 'Phyrexian Revoker', 'Ertai''s Scorn', 'Graven Lore', 'Battle of Frost and Fire', 'Drainpipe Vermin', 'Gnat Miser', 'Cartel Aristocrat', 'Glimmerpost', 'Hero''s Downfall', 'Sunken Hollow', 'Seeker of the Way', 'Temple of Plenty', 'Tribute to Hunger', 'Thrash // Threat', 'Sterling Grove', 'Nevermore', 'Sacred Peaks', 'Endbringer', 'Jwari Shapeshifter', 'Invasion of Ergamon', 'Blanchwood Prowler', 'Riveteers Overlook', 'Vivid Crag', 'Faerie Miscreant', 'Weapons Trainer', 'Liliana Vess', 'Counterflux', 'Caves of Koilos', 'Scuttling Doom Engine', 'Obliterate', 'Lagrella, the Magpie', 'Raven''s Crime', 'Possibility Storm', 'Maestros Charm', 'Etherium Sculptor', 'World Shaper', 'Hostage Taker', 'Pharika''s Cure', 'Falkenrath Pit Fighter', 'Draugr Necromancer', 'Boreal Shelf', 'Phantasmal Image', 'Mulch', 'Rootbound Crag', 'Bloodsoaked Champion', 'Castigate', 'Spectral Shift', 'Precursor Golem', 'Sea Gate Oracle', 'Sinister Concoction', 'Titania, Protector of Argoth', 'Concealing Curtains', 'Knight of the Reliquary', 'Grave Titan', 'Oracle of Tragedy', 'Wolfbriar Elemental', 'Floriferous Vinewall', 'Obscura Storefront', 'Knight of Glory', 'Knowledge Pool', 'Fracturing Gust', 'Syphon Life', 'Mistblade Shinobi', 'Arcbound Ravager', 'Crack the Earth', 'Ensoul Artifact', 'Vampire Nighthawk', 'Gleeful Demolition', 'Godo, Bandit Warlord', 'Sorin, Vengeful Bloodlord', 'Defiant Strike', 'Prophetic Prism', 'Sunlit Marsh', 'Rise and Shine', 'Kefnet the Mindful', 'Huatli, Radiant Champion', 'Basking Rootwalla', 'Valakut Exploration', 'Waking the Trolls', 'Ovika, Enigma Goliath', 'Inevitable Betrayal', 'Duress', 'Simic Guildgate', 'Elas il-Kor, Sadistic Pilgrim', 'Cloudpost', 'Flooded Grove', 'Vryn Wingmare', 'Doomskar', 'Hesitation', 'Verduran Enchantress', 'Green Sun''s Twilight', 'Settle the Wreckage', 'Healer''s Hawk', 'Sign in Blood', 'Rally the Ancestors', 'Revitalize', 'Dismal Backwater', 'Felidar Retreat', 'Stinkweed Imp', 'Teshar, Ancestor''s Apostle', 'Purify the Grave', 'Universal Automaton', 'Tendrils of Agony', 'Destroy Evil', 'Rix Maadi Reveler', 'Tangle', 'Secluded Steppe', 'Wrath of God', 'Progenitor Exarch', 'Master of Etherium', 'Reinforced Ronin', 'Altar of the Brood', 'Circular Logic', 'Staff of Domination', 'Voltage Surge', 'Vigor', 'See Beyond', 'Alms of the Vein', 'Voyaging Satyr', 'Razortide Bridge', 'Demonic Bargain', 'Experimental Augury', 'Ivy Lane Denizen', 'Forgotten Cave', 'Spirited Companion', 'Fumigate', 'Slagwoods Bridge', 'Oni-Cult Anvil', 'Predatory Sliver', 'Radha, Heart of Keld', 'Buried Ruin', 'Ogre Slumlord', 'Gnawing Vermin', 'Rakdos Guildgate', 'Dragonskull Summit', 'Blightning', 'Smallpox', 'Raging Ravine', 'Lotus Cobra', 'Oona, Queen of the Fae', 'Temple of Mystery', 'Abundant Growth', 'Sins of the Past', 'Vampire Lacerator', 'Golgari Guildgate', 'The Scorpion God', 'Rites of Initiation', 'Ulcerate', 'Kor Firewalker', 'Joint Exploration', 'Disrupting Shoal', 'Big Score', 'The Flame of Keld', 'Glint-Sleeve Siphoner', 'Corrupted Conviction', 'Silundi Vision', 'Cathartic Reunion', 'Stone Haven Outfitter', 'Drowned Rusalka', 'Negate', 'Reckless Rage', 'Mindslaver', 'Deafening Clarion', 'Malakir Rebirth', 'Control Magic', 'Grim Haruspex', 'Into the Story', 'Blood on the Snow', 'Ammit Eternal', 'Sarkhan the Masterless', 'Silverblade Paladin', 'Arguel''s Blood Fast', 'Hissing Quagmire', 'Nested Shambler', 'Zur''s Weirding', 'Vraska''s Fall', 'Springleaf Drum', 'Pariah', 'Wanderwine Hub', 'Rotting Rats', 'Sire of Insanity', 'Scrapheap Scrounger', 'Murderous Cut', 'Skyclave Shade', 'Kaito, Dancing Shadow', 'Fact or Fiction', 'Stir the Grave', 'Devil''s Play', 'Kiora, the Crashing Wave', 'Geomancer''s Gambit', 'Repudiate // Replicate', 'Halana and Alena, Partners', 'Venerated Loxodon', 'Altered Ego', 'Sprite Dragon', 'Froghemoth', 'Stoke the Flames', 'Putrid Imp', 'Diabolic Tutor', 'Phyrexian Unlife', 'Temple of Malady', 'Servo Exhibition', 'Invoke Calamity', 'Kabira Takedown', 'Terminus', 'Pillar of the Paruns', 'Shizo, Death''s Storehouse', 'Cryptic Caves', 'Graaz, Unstoppable Juggernaut', 'White Sun''s Zenith', 'Combat Thresher', 'Sever the Bloodline', 'Wrenn''s Resolve', 'Sunstrike Legionnaire', 'Sigil of the Empty Throne', 'Crux of Fate', 'Dire-Strain Rampage', 'Arch of Orazca', 'Ornithopter', 'Solitary Confinement', 'Ethersworn Sphinx', 'Seething Song', 'Angrath, the Flame-Chained', 'Eerie Ultimatum', 'Gideon Jura', 'Dimir Aqueduct', 'Terastodon', 'Port Town', 'Become Immense', 'Ravenous Squirrel', 'Ral, Izzet Viceroy', 'Temple of Triumph', 'Vampire Neonate', 'Tendo Ice Bridge', 'Brineborn Cutthroat', 'Commence the Endgame', 'Toolcraft Exemplar', 'Thopter Mechanic', 'Timeless Witness', 'Tresserhorn Sinks', 'Basilisk Collar', 'Sphinx''s Herald', 'Frostwalk Bastion', 'Mistcutter Hydra', 'Colossal Skyturtle', 'Elvish Visionary', 'Choked Estuary', 'Gift of Estates', 'Mouth of Ronom', 'Voidwing Hybrid', 'Mulldrifter', 'Lost Legacy', 'Vivid Marsh', 'Raffine''s Informant', 'Chandra, Flamecaller', 'Ashenmoor Liege', 'Vraska''s Contempt', 'Into the Roil', 'Slagstorm', 'Jace, Architect of Thought', 'Myr Battlesphere', 'Remorseful Cleric', 'King Darien XLVIII', 'Ponder', 'Rabbit Battery', 'Oracle of Mul Daya', 'Destiny Spinner', 'Slaughter Pact', 'Kitchen Finks', 'Valiant Changeling', 'Engulf the Shore', 'Kogla, the Titan Ape', 'Invasion of Kaladesh', 'Felidar Cub', 'Nomad Outpost', 'Jokulhaups', 'Celestial Colonnade', 'Tilling Treefolk', 'Arbalest Engineers', 'Forbid', 'Orzhov Basilica', 'Timeless Dragon', 'Phyrexian Dreadnought', 'Luminarch Ascension', 'Invasion of Azgol', 'Cultivate', 'Mazemind Tome', 'Ichorclaw Myr', 'Ethereal Armor', 'Embodiment of Fury', 'Idyllic Tutor', 'Talisman of Unity', 'Annex Sentry', 'Fade from Memory', 'Gift of Immortality', 'Yisan, the Wanderer Bard', 'Elvish Archdruid', 'Tooth and Nail', 'Call of the Death-Dweller', 'Invasion of Amonkhet', 'Birds of Paradise', 'Cremate', 'Unctus, Grand Metatect', 'Fireblade Charger', 'Hypergenesis', 'Phalanx Leader', 'Stasis Snare', 'Acidic Slime', 'Forked Bolt', 'Kemba, Kha Enduring', 'Temple of Enlightenment', 'Call to the Grave', 'Prologue to Phyresis', 'Tangled Islet', 'Witching Well', 'Thundermaw Hellkite', 'Sin Collector', 'Psychatog', 'Frontier Bivouac', 'Wonder', 'Worship', 'Disenchant', 'Lavaclaw Reaches', 'Skyshroud Elf', 'Bubbling Muck', 'Bitter Reunion', 'Cauldron Familiar', 'Dragon''s Hoard', 'Gruul Turf', 'Herd Baloth', 'Nezahal, Primal Tide', 'Mnemonic Sphere', 'Cabaretti Courtyard', 'Network Disruptor', 'Reveillark', 'Tribal Flames', 'Enchantress''s Presence', 'Riveteers Charm', 'Mikokoro, Center of the Sea', 'River of Tears', 'Izzet Boilerworks', 'Mausoleum Secrets', 'Arcum''s Astrolabe', 'Chittering Rats', 'Sarkhan, the Dragonspeaker', 'Day of Judgment', 'Shrapnel Blast', 'Decree of Justice', 'Distorted Curiosity', 'Expedite', 'Canyon Slough', 'Maze''s End', 'Maelstrom Pulse', 'Condemn', 'Kunoros, Hound of Athreos', 'Akroan Crusader', 'Glorybringer', 'Devious Cover-Up', 'Hope of Ghirapur', 'Darksteel Colossus', 'Brain Freeze', 'Blightbelly Rat', 'Orzhov Charm', 'Nullpriest of Oblivion', 'Dark Ritual', 'Phyrexian Censor', 'Marit Lage''s Slumber', 'Vadrik, Astral Archmage', 'Raise the Alarm', 'Cabal Ritual', 'Cabal Initiate', 'Discovery // Dispersal', 'Black Sun''s Zenith', 'Akoum Hellhound', 'Artisan of Kozilek', 'Ancient Amphitheater', 'Silent Gravestone', 'Tezzeret''s Gambit', 'Narcomoeba', 'Rakdos Charm', 'Deep Analysis', 'Fae of Wishes', 'Midnight Reaper', 'Platinum Angel', 'Doom Blade', 'Dimensional Infiltrator', 'Tocatli Honor Guard', 'Kozilek''s Predator', 'Selesnya Guildgate', 'Thaumatic Compass', 'Scab-Clan Berserker', 'Murmuring Bosk', 'Oath of Teferi', 'Search for Azcanta', 'Lay Down Arms', 'Gutterbones', 'Phoenix Chick', 'Silversmote Ghoul', 'Argentum Armor', 'Malcator, Purity Overseer', 'Darksteel Citadel', 'Lochmere Serpent', 'Upheaval', 'Pull from Tomorrow', 'Xerex Strobe-Knight', 'Ayli, Eternal Pilgrim', 'Tidespout Tyrant', 'Venser, the Sojourner', 'Anguished Unmaking', 'Apostle''s Blessing', 'Sudden Edict', 'Glistener Elf', 'Urban Evolution', 'Raze to the Ground', 'Shardless Agent', 'Vraan, Executioner Thane', 'General''s Enforcer', 'Approach of the Second Sun', 'Woodfall Primus', 'The Celestus', 'Dead // Gone', 'Rustvale Bridge', 'Archpriest of Shadows', 'Eiganjo Castle', 'Sleight of Hand', 'Moon-Circuit Hacker', 'Shred Memory', 'Assemble the Legion', 'Tymaret, Chosen from Death', 'Sweltering Suns', 'Lightning Strike', 'Wooded Bastion', 'Ardent Recruit', 'Invasion of New Capenna', 'Mind''s Desire', 'Forbidden Alchemy', 'Council''s Judgment', 'Wayward Guide-Beast', 'Blood Artist', 'Bontu''s Last Reckoning'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Oust', 'Azorius Charm', 'Eiganjo Castle', 'Archaeomancer', 'Farhaven Elf', 'Defiant Strike', 'Lost Legacy', 'Moorland Haunt', 'Timely Reinforcements', 'Myth Realized', 'Seething Song', 'Glamerdye', 'Mistblade Shinobi', 'Nimbus Maze', 'Duress', 'Dovin''s Acuity', 'Sterling Grove', 'Nekrataal', 'Incinerate', 'Cleansing Wildfire', 'Invisible Stalker', 'Wonder', 'Energy Refractor', 'Vivid Crag', 'Kor Firewalker', 'Ayli, Eternal Pilgrim', 'Cathedral of War', 'Thragtusk', 'Narcomoeba', 'Squee, Goblin Nabob', 'Hope of Ghirapur', 'Rift Bolt', 'Reflector Mage', 'Goldmire Bridge', 'Arguel''s Blood Fast', 'Distorted Curiosity', 'Honor of the Pure', 'Predatory Sliver', 'Dead Weight', 'Sunstrike Legionnaire', 'Sleight of Hand', 'Destiny Spinner', 'Augur of Bolas', 'Knight of the Reliquary', 'Raffine''s Informant', 'Arcum''s Astrolabe', 'Invasion of Kaladesh', 'Aegis of the Gods', 'Priest of the Haunted Edge', 'Witching Well', 'Chittering Rats', 'Platinum Angel', 'Unmarked Grave', 'Fae of Wishes', 'Monument to Perfection', 'Raging Ravine', 'Supreme Will', 'Nature''s Lore', 'Venser, the Sojourner', 'Dryad Militant', 'Drainpipe Vermin', 'Silver-Fur Master', 'Tribal Flames', 'Ancient Amphitheater', 'Evangel of Synthesis', 'Kefnet the Mindful', 'Deep Analysis', 'Mana Leak', 'Kami of False Hope', 'Tidehollow Sculler', 'Electrolyze', 'Sea Gate Oracle', 'Mesmeric Fiend', 'Nimble Trapfinder', 'Fierce Empath', 'Invasion of Azgol', 'Hanweir Garrison', 'Stir the Grave', 'Eerie Ultimatum', 'Kaito, Dancing Shadow', 'Ral, Izzet Viceroy', 'Sphinx''s Herald', 'Jungle Hollow', 'Temple of Silence', 'Smother', 'Luminarch Ascension', 'Apostle''s Blessing', 'General Ferrous Rokiric', 'Nullpriest of Oblivion', 'Kemba, Kha Enduring', 'Master of Etherium', 'Circular Logic', 'Lizard Blades', 'Cut Down', 'The Celestus', 'Coiling Oracle', 'Goblin Electromancer', 'Mulldrifter', 'Glistener Elf', 'Flame Rift', 'Phoenix Chick', 'Ancient Stirrings', 'Rakdos Cackler', 'Ignite Memories', 'Negate', 'Haunted Mire', 'Arcane Sanctum', 'Fleecemane Lion', 'Open the Armory', 'The Scorpion God', 'Heartless Act', 'Varolz, the Scar-Striped', 'Maelstrom Pulse', 'Endbringer', 'Vraska''s Fall', 'Corrupted Crossroads', 'Sacred Peaks', 'Obzedat, Ghost Council', 'Necrogen Spellbomb', 'Thundermaw Hellkite', 'Vampiric Rites', 'Martyr of Sands', 'Needle Spires', 'Counterflux', 'Tendrils of Agony', 'Seismic Assault', 'Kappa Tech-Wrecker', 'Wandering Fumarole', 'Check for Traps', 'Wolfbriar Elemental', 'Gideon Jura', 'Glimpse of Tomorrow', 'Scrabbling Claws', 'Bogbrew Witch', 'Ally Encampment', 'Fact or Fiction', 'Mystic Monastery', 'Dire-Strain Rampage', 'Kazandu Blademaster', 'Triumphant Adventurer', 'Battle of Wits', 'Brain Freeze', 'Inevitable Betrayal', 'Grim Haruspex', 'Stern Dismissal', 'Pyretic Ritual', 'Wooded Bastion', 'Sins of the Past', 'Myr Battlesphere', 'Saproling Migration', 'Pharika''s Cure', 'Sigil of the Empty Throne', 'Wrath of God', 'Talisman of Unity', 'Halimar Excavator', 'Spell Pierce', 'Putrid Imp', 'Game Trail', 'Marauding Blight-Priest', 'Wilt', 'Silversmote Ghoul', 'Nissa, Steward of Elements', 'Blightbelly Rat', 'Vryn Wingmare', 'Vampire Lacerator', 'Serra Ascendant', 'Mystical Teachings', 'Pharika''s Libation', 'Winds of Abandon', 'Elixir of Immortality', 'Riveteers Overlook', 'Cataclysmic Gearhulk', 'Angel of Despair', 'Corpse Cur', 'Scrapwork Mutt', 'Shimmerdrift Vale', 'Stupor', 'Council''s Judgment', 'Unburial Rites', 'Bloodline Keeper', 'Kemba, Kha Regent', 'Victim of Night', 'Precursor Golem', 'Lavinia of the Tenth', 'Burning of Xinye', 'Judge''s Familiar', 'Gruul Spellbreaker', 'Tear Asunder', 'All That Glitters', 'Fruit of Tizerus', 'Ramunap Excavator', 'Collected Conjuring', 'Grave Scrabbler', 'Goblin Dark-Dwellers', 'Hornet Queen', 'Oona''s Grace', 'Radiant Grove', 'Oblivion Ring', 'Rise and Shine', 'Brokers Hideout', 'Think Twice', 'Thawing Glaciers', 'Shred Memory', 'Enchantress''s Presence', 'Felidar Cub', 'Ephara, God of the Polis', 'Knight of Glory', 'Memory Lapse', 'Ossification', 'Spatial Contortion', 'Castigate', 'Bloodvial Purveyor', 'Nimble Obstructionist', 'Scrapheap Scrounger', 'Arbor Elf', 'Anger of the Gods', 'Valiant Changeling', 'Eternal Scourge', 'Primal Command', 'Knowledge Pool', 'Mind''s Desire', 'Botanical Plaza', 'Darksteel Citadel', 'Graveborn Muse', 'Tymaret, Chosen from Death', 'Lightning Strike', 'Ivy Lane Denizen', 'Oath of Teferi', 'Port Town', 'Deep Forest Hermit', 'Sunblade Samurai', 'Forgotten Cave', 'Frontier Bivouac', 'Vindicate', 'Leonin Warleader', 'Wrenn''s Resolve', 'Tocatli Honor Guard', 'Venerated Loxodon', 'Seal of Fire', 'Festering Newt', 'Haunted Fengraf', 'Artisan of Kozilek', 'Graven Lore', 'Ovika, Enigma Goliath', 'Ravenous Squirrel', 'Waking the Trolls', 'Viscera Seer', 'Mirage Mirror', 'Ethereal Armor', 'Ancestral Blade', 'Mulch', 'Dispatch', 'Stone Haven Outfitter', 'Seal of Removal', 'Universal Automaton', 'Kalastria Healer', 'Corrupted Conviction', 'Arbalest Engineers', 'Curiosity', 'Madcap Experiment', 'Far // Away', 'Oracle of Tragedy', 'Gird for Battle', 'Fade from Memory', 'Weathered Wayfarer', 'Vessel of Nascency', 'Myr Superion', 'Demonic Bargain', 'Lose Focus', 'Consult the Necrosages', 'Combat Thresher', 'Vivid Grove', 'Siege Rhino', 'Second Sunrise', 'Huatli, Radiant Champion', 'Malicious Malfunction', 'Grand Arbiter Augustin IV', 'Aetherspouts', 'Reveillark', 'Raise the Alarm', 'Rakdos Charm', 'Zur''s Weirding', 'Dusk // Dawn', 'Aetherling', 'Fire Prophecy', 'Pack Rat', 'Cauldron Familiar', 'Wall of Omens', 'Norn''s Inquisitor', 'Executioner''s Capsule', 'Stoke the Flames', 'Shrapnel Blast', 'Secluded Steppe', 'Gift of Estates', 'Bubbling Cauldron', 'Invoke Calamity', 'Oona''s Prowler', 'Ensoul Artifact', 'Oni-Cult Anvil', 'Falkenrath Pit Fighter', 'Llanowar Mentor', 'Inscribed Tablet', 'Runed Halo', 'Ranger of Eos', 'Shardless Agent', 'Maestros Charm', 'Radha, Heart of Keld', 'Forbid', 'Kambal, Consul of Allocation', 'Malakir Rebirth', 'Hada Freeblade', 'Phyrexian Unlife', 'Ruric Thar, the Unbowed', 'Tangled Islet', 'Rune Snag', 'Dying to Serve', 'Smallpox', 'Shimmer Dragon', 'Dread Wanderer', 'Angel of Condemnation', 'Kessig Wolf Run', 'Thrash // Threat', 'Terminate', 'Simic Guildgate', 'Rocco, Cabaretti Caterer', 'Fireblade Charger', 'The Underworld Cookbook', 'Herd Migration', 'Wizard''s Retort', 'Desperate Ritual', 'Pain Seer', 'Tezzeret''s Gambit', 'Impulse', 'Sunken Hollow', 'Archpriest of Shadows', 'Cliffside Lookout', 'Frenetic Sliver', 'Groundswell', 'Tomebound Lich', 'Dragon''s Hoard', 'Blanchwood Prowler', 'Tezzeret, Artifice Master', 'Change the Equation', 'Rabbit Battery', 'Psychic Possession', 'Loxodon Smiter', 'Azorius Guildgate', 'Night of Souls'' Betrayal', 'Heliod''s Intervention', 'Upheaval', 'Sandwurm Convergence', 'Talisman of Curiosity', 'Rix Maadi Reveler', 'Ivory Tower', 'Might of Old Krosa', 'Jukai Naturalist', 'Careful Cultivation', 'Patchwork Automaton', 'Anafenza, the Foremost', 'Ghostly Flicker', 'Grand Architect', 'Torens, Fist of the Angels', 'Glorybringer', 'Duplicant', 'Maze''s End', 'Union of the Third Path', 'Disrupting Shoal', 'Bump in the Night', 'Empyrial Plate', 'Mesa Enchantress', 'Commit // Memory', 'Increasing Ambition', 'Cathartic Reunion', 'Thaumatic Compass', 'Yisan, the Wanderer Bard', 'Battlefield Forge', 'Idyllic Tutor', 'Selesnya Guildgate', 'Devil''s Play', 'Geothermal Bog', 'Darksteel Colossus', 'Tendo Ice Bridge', 'Hooting Mandrills', 'Kitesail Freebooter', 'Breya''s Apprentice', 'Flaying Tendrils', 'Jor Kadeen, First Goldwarden', 'Bituminous Blast', 'Chief of the Foundry', 'Bontu''s Last Reckoning', 'Nezahal, Primal Tide', 'Surrak, the Hunt Caller', 'Commune with the Gods', 'Big Score', 'Inkwell Leviathan', 'Acidic Slime', 'Teferi, Mage of Zhalfir', 'Kher Keep', 'Ishkanah, Grafwidow', 'Merciless Eviction', 'Dross Skullbomb', 'Gift of Immortality', 'Sweltering Suns', 'Chain Lightning', 'Founding the Third Path', 'Mindsplice Apparatus', 'Barbed Sextant', 'Protect the Negotiators', 'Idyllic Beachfront', 'Felidar Retreat', 'Phyrexian Dreadnought', 'Bloodsoaked Champion', 'Porphyry Nodes', 'Wasteland Strangler', 'Death Cloud', 'Anguished Unmaking', 'Hideous End', 'Vault Skirge', 'Sculpting Steel', 'Angel of Serenity', 'Dark-Dweller Oracle', 'Exclude', 'Auriok Sunchaser', 'Succumb to Temptation', 'Lurrus of the Dream-Den', 'Toolcraft Exemplar', 'Canyon Slough', 'Icehide Golem', 'Rootbound Crag', 'Thornwood Falls', 'Forging the Anchor', 'Terminus', 'Divinity of Pride', 'Viashino Pyromancer', 'Day of Judgment', 'Disenchant', 'Restoration Angel', 'Devious Cover-Up', 'Zombie Infestation', 'Eldrazi Skyspawner', 'Buried Ruin', 'Orzhov Guildgate', 'Faeburrow Elder', 'Master of Death', 'Knight of the White Orchid', 'Thraben Inspector', 'Commune with Spirits', 'Gigadrowse', 'Cloudshredder Sliver', 'Kogla, the Titan Ape', 'Tooth and Nail', 'Grenzo, Dungeon Warden', 'Terrarion', 'Memoricide', 'Mindslaver', 'Scrying Sheets', 'Tilling Treefolk', 'Prologue to Phyresis', 'Genesis Hydra', 'Elvish Visionary', 'Jwari Shapeshifter', 'Jungle Shrine', 'Rain of Tears', 'Kitchen Finks', 'Nameless Inversion', 'Commune with Nature', 'Invasion of Zendikar', 'Benevolent Bodyguard', 'Nightscape Familiar', 'Snow-Covered Mountain', 'Temple of Malady', 'Satyr Hoplite', 'Basilisk Collar', 'Dakkon, Shadow Slayer', 'Hostage Taker', 'Tocasia''s Dig Site', 'Woodfall Primus', 'Orzhov Basilica', 'Woe Strider', 'Crawling Barrens', 'Jace Beleren', 'Abiding Grace', 'Venser, Corpse Puppet', 'Rustvale Bridge', 'Nomad Outpost', 'Brave the Sands', 'Silent Gravestone', 'Elvish Rejuvenator', 'Third Path Iconoclast', 'Dissipate', 'Nimble Larcenist', 'Progenitor Exarch', 'Silundi Vision', 'Orim''s Chant', 'Spirited Companion', 'Odds // Ends', 'Mistvault Bridge', 'Farseek', 'Spectral Shift', 'Flametongue Kavu', 'Stubborn Denial', 'Turnabout', 'Greater Tanuki', 'Quiet Speculation', 'Vraska''s Contempt', 'Snow-Covered Swamp', 'Grave Titan', 'Ayara, First of Locthwain', 'Cryptic Caves', 'Zephyr Singer', 'Contaminated Aquifer', 'Vault of the Archangel', 'Wrench Mind', 'Voyaging Satyr', 'Urban Evolution', 'Westvale Abbey', 'Gideon''s Intervention', 'Detention Sphere', 'Thopter Mechanic', 'Oath of Kaya', 'The Seedcore', 'Mirran Crusader', 'Oracle of Mul Daya', 'Izzet Guildgate', 'Tribute to Hunger', 'Wild Cantor', 'Commence the Endgame', 'Greater Gargadon', 'Tempest Djinn', 'Mnemonic Sphere', 'Feed the Swarm', 'Assemble the Legion', 'Purify the Grave', 'Search for Azcanta', 'Steel Overseer', 'Frantic Inventory', 'Birds of Paradise', 'Boon-Bringer Valkyrie', 'Dokuchi Silencer', 'Abyssal Persecutor', 'Thrill of Possibility', 'Altar of the Goyf', 'Elemental Masterpiece', 'Thornglint Bridge', 'Vraan, Executioner Thane', 'Cabal Therapist', 'See Beyond', 'Sire of Insanity', 'Quest for the Holy Relic', 'Jokulhaups', 'Rally the Ancestors', 'Blood on the Snow', 'Seeker of the Way', 'Lotus Cobra', 'Crux of Fate', 'Out of Time', 'Blight Mamba', 'Boros Guildgate', 'Murderous Redcap', 'Riveteers Charm', 'Sunlit Marsh', 'Whispersilk Cloak', 'Aetherblade Agent', 'Jace, Architect of Thought', 'Orzhov Charm', 'Rally the Peasants', 'Liliana Vess', 'Shivan Reef', 'Sphere of Safety', 'Hyena Umbra', 'Sorin, Vengeful Bloodlord', 'Mausoleum Secrets', 'Disciple of Bolas', 'Dimir Guildgate', 'Timeless Witness', 'Diabolic Tutor', 'Stinkdrinker Bandit', 'Simian Spirit Guide', 'Bolas''s Citadel', 'Kabira Takedown', 'Slagstorm', 'Anafenza, Kin-Tree Spirit', 'Discovery // Dispersal', 'Phyrexian Revoker', 'Yorion, Sky Nomad', 'Angel of Grace', 'Scuttling Doom Engine', 'Kjeldoran Outpost', 'Settle the Wreckage', 'Moon-Circuit Hacker', 'Evacuation', 'Reckless Charge', 'Dark Petition', 'Gather the Pack', 'Elspeth Conquers Death', 'Pardic Miner', 'Hypnotic Specter', 'Molten Tributary', 'Scab-Clan Berserker', 'Tanglepool Bridge', 'Prosperous Thief', 'Nether Spirit', 'Blade Splicer', 'Terastodon', 'Invasion of New Capenna', 'Lay Down Arms', 'Tresserhorn Sinks', 'Ogre Slumlord', 'Become Immense', 'Earthquake', 'Vedalken Heretic', 'Of One Mind', 'Fertile Ground', 'Swooping Lookout', 'Black Sun''s Zenith', 'Lantern-Lit Graveyard', 'Orcish Lumberjack', 'Experimental Augury', 'Gravelgill Duo', 'Geomancer''s Gambit', 'Crawling Chorus', 'Scarab Feast', 'Sarkhan the Masterless', 'Vigor', 'Obscura Charm', 'Silumgar''s Scorn', 'Vexing Shusher', 'Combat Research', 'Fumigate', 'Favored Hoplite', 'Blood Artist', 'Teshar, Ancestor''s Apostle', 'Fetid Heath', 'Dimensional Infiltrator', 'Bone Shards', 'Elderscale Wurm', 'Stoic Rebuttal', 'Ornithopter', 'Blazing Rootwalla', 'Magister of Worth', 'Reckoner''s Bargain', 'White Sun''s Zenith', 'Dread Return', 'Argentum Masticore', 'Ulcerate', 'Voldaren Pariah', 'Cultivate', 'Reckless Rage', 'Shape Anew', 'Boreal Shelf', 'Isolated Chapel', 'Marble Diamond', 'Blue Sun''s Zenith', 'Faerie Vandal', 'Llanowar Elves', 'Thirst for Meaning', 'Surge of Salvation', 'Otherworldly Journey', 'Solitary Confinement', 'Diffusion Sliver', 'Delay', 'Kumano Faces Kakkazan', 'Melira, the Living Cure', 'Ashen Rider', 'Shambling Vent', 'Saffi Eriksdotter', 'Verduran Enchantress', 'Valakut Exploration', 'Midnight Reaper', 'Lagrella, the Magpie', 'Price of Progress', 'Control Magic', 'Marit Lage''s Slumber', 'Obscura Storefront', 'Joint Exploration', 'Sultai Charm', 'Sin Prodder', 'Fetid Pools', 'Altered Ego', 'Temple of Plenty', 'Sinister Concoction', 'World Shaper', 'Gitaxian Probe', 'Alms of the Vein', 'Lightning Spear', 'Tangle', 'Slogurk, the Overslime', 'Prophetic Prism', 'Heliod''s Pilgrim', 'Thassa''s Intervention', 'Voidslime', 'Mothdust Changeling', 'Scattered Groves', 'Brave the Elements', 'Helm of the Host', 'Voltage Surge', 'Leonin Arbiter', 'Utter End', 'Throat Slitter', 'Shriekmaw', 'Resurgent Belief', 'Ghostly Pilferer', 'Changeling Outcast', 'Slaughter Pact', 'Abundant Growth', 'Leonin Relic-Warder', 'Treasure Cruise', 'Drake Haven', 'Drown in Ichor', 'Temple of Mystery', 'Cabal Initiate', 'Abzan Charm', 'Big Game Hunter', 'Green Sun''s Twilight', 'Ammit Eternal', 'Shard Volley', 'Temple of Abandon', 'Hall of Oracles', 'Mirror Entity', 'Ardent Recruit', 'Vines of Vastwood', 'Briarbridge Tracker', 'Glimmerpost', 'Lodestone Golem', 'Hesitation', 'Gateway Plaza', 'Gutterbones', 'Avacyn''s Pilgrim', 'Chief Engineer', 'Network Disruptor', 'Trace of Abundance', 'Drowned Rusalka', 'Forbidden Alchemy', 'Celestial Colonnade', 'Sculpted Perfection', 'Colossal Skyturtle', 'Wayward Guide-Beast', 'Condemn', 'Harmonize', 'Ertai''s Scorn', 'Invigorate', 'Arch of Orazca', 'Kiora, the Crashing Wave', 'Sin Collector', 'Dead // Gone', 'Pyrite Spellbomb', 'Bloodbraid Elf', 'Genesis Ultimatum', 'Mindcrank', 'Yahenni''s Expertise', 'Meeting of Minds', 'Search for Tomorrow', 'Dismal Backwater', 'Annex Sentry', 'Nine Lives', 'Melira, Sylvok Outcast', 'Morsel Theft', 'Ulvenwald Hydra', 'Stromkirk Noble', 'Open the Gates', 'Giant Killer', 'Nissa, Worldwaker', 'Elvish Archdruid', 'Draugr Necromancer', 'General''s Enforcer', 'Tolarian Terror', 'Phyrexian Censor', 'Nested Shambler', 'Mortuary Mire', 'Expedite', 'Grand Abolisher', 'Krosan Grip', 'Epic Experiment', 'Godo, Bandit Warlord', 'Razortide Bridge', 'Heap Doll', 'Sheltered Thicket', 'Demigod of Revenge', 'Terramorphic Expanse', 'Twinshot Sniper', 'Expedition Envoy', 'Golgari Guildgate', 'Vampire Hexmage', 'Pariah', 'Recurring Nightmare', 'Sulfur Falls', 'Dream Trawler', 'Dimir Aqueduct', 'Yavimaya Coast', 'Sinew Sliver', 'Mistcutter Hydra', 'Revitalize', 'Woodland Cemetery', 'Nezumi Graverobber', 'Gleeful Demolition', 'Altar of the Brood', 'Embodiment of Fury', 'Ghostfire Blade', 'Seedcradle Witch', 'Cabaretti Courtyard', 'Worship', 'Gnawing Vermin', 'Summary Dismissal', 'Oona, Queen of the Fae', 'Invasion of Amonkhet', 'Deafening Clarion', 'Polukranos, World Eater', 'Racers'' Ring', 'Into the Story', 'Empyrial Armor', 'Llanowar Tribe', 'Pillar of the Paruns', 'Sigrid, God-Favored', 'Dregscape Zombie', 'Forked Bolt', 'Herald of the Pantheon', 'Doom Blade', 'Dark Ritual', 'Vivid Marsh', 'Destroy Evil', 'Mazemind Tome', 'Sandsteppe Citadel', 'Rites of Initiation', 'Murderous Cut', 'Kozilek''s Predator', 'Wanderwine Hub', 'Syphon Life', 'Vadrik, Astral Archmage', 'Sarkhan, the Dragonspeaker', 'Gallia of the Endless Dance', 'Tranquil Thicket', 'Squadron Hawk', 'Gnat Miser', 'Into the Roil', 'Folio of Fancies', 'Izzet Boilerworks', 'Territorial Kavu', 'Jwari Disruption', 'Experimental Synthesizer', 'Forsake the Worldly', 'Leonin Lightscribe', 'Karn''s Bastion', 'Sol Talisman', 'Invasion of Ergamon', 'Rise // Fall', 'Zuran Orb', 'Solemnity', 'Sylvan Caryatid', 'Remorseful Cleric', 'Akroan Crusader', 'Fight as One', 'Fyndhorn Elves', 'Fallaji Archaeologist', 'Smoldering Marsh', 'Hieroglyphic Illumination', 'Goblin Bombardment', 'Plated Geopede', 'Gruul Guildgate', 'Etherium Sculptor', 'Skyshroud Elf', 'Temple of Triumph', 'Akiri, Fearless Voyager', 'Evolving Wilds', 'Slagwoods Bridge', 'Titania, Protector of Argoth', 'Call of the Death-Dweller', 'Eidolon of Blossoms', 'Seal of Cleansing', 'Curse of Exhaustion', 'Yawgmoth''s Bargain', 'Brainstone', 'Spell Burst', 'Raze to the Ground', 'Bident of Thassa', 'Dauntless Bodyguard', 'Declaration in Stone', 'Dreadhorde Butcher', 'Engulf the Shore', 'Simian Sling', 'Aether Spellbomb', 'Clifftop Retreat', 'Abundant Harvest', 'Wood Elves', 'Baneful Omen', 'Phantasmal Image', 'Froghemoth', 'Chandra, Pyromaster', 'Invasion of Regatha', 'Frost Titan', 'Blightning', 'Thopter Spy Network', 'Kiora Bests the Sea God', 'Dawn of Hope', 'Banishing Slash', 'River of Tears', 'Drowned Catacomb', 'Ichorclaw Myr', 'Phalanx Leader', 'Doomed Traveler', 'Doomskar', 'Hissing Quagmire', 'Lavaclaw Reaches', 'Fiery Temper', 'Figure of Destiny', 'Cremate', 'Gloomshrieker', 'Unctus, Grand Metatect', 'Halana and Alena, Partners', 'Bloodchief Ascension', 'Unholy Heat', 'Gruul Turf', 'Battle of Frost and Fire', 'Sever the Bloodline', 'Call to the Grave', 'Frantic Search', 'Archangel Avacyn', 'Approach of the Second Sun', 'Kruphix''s Insight', 'Tectonic Edge', 'Tidespout Tyrant', 'Graaz, Unstoppable Juggernaut', 'Pull from Tomorrow', 'Pyroclasm', 'Cloudpost', 'Cartel Aristocrat', 'Sylvan Advocate', 'Nevermore', 'Murmuring Bosk', 'Consume the Meek', 'Barter in Blood', 'Caves of Koilos', 'Dragonskull Summit', 'Tribute to Horobi', 'Garruk Wildspeaker', 'Tainted Indulgence', 'Hard Evidence', 'Time of Need', 'Lazotep Chancellor', 'Rites of Spring', 'Stirring Wildwood', 'Elite Inquisitor', 'Blessed Alliance', 'Assault // Battery', 'Armored Scrapgorger', 'Yasharn, Implacable Earth', 'Flooded Grove', 'Gadrak, the Crown-Scourge', 'Ethersworn Sphinx', 'Faith''s Reward', 'Vampire Neonate', 'Ral, Storm Conduit', 'Satyr Wayfinder', 'Stasis Snare', 'Kitchen Imp', 'Late to Dinner', 'Crack the Earth', 'Timeless Dragon', 'Teneb, the Harvester', 'Vampire Nighthawk', 'Sylvan Library', 'Divest', 'Lochmere Serpent', 'Bitter Reunion', 'Reinforced Ronin', 'Concealing Curtains', 'Hinterland Harbor', 'Arlinn Kord', 'Kunoros, Hound of Athreos', 'Archangel of Wrath', 'Overgrowth', 'Argentum Armor', 'Kaya, Ghost Assassin', 'Touch the Spirit Realm', 'Barbarian Ring', 'Return to the Ranks', 'Ponder', 'Deprive', 'Lingering Souls', 'Makeshift Mannequin', 'Grafted Butcher', 'Koth, Fire of Resistance', 'Notorious Throng', 'Graven Cairns', 'Chandra, Flamecaller', 'Swiftfoot Boots', 'Rakdos Guildgate', 'Sign in Blood', 'Eldrazi Displacer', 'Peek', 'Frost Marsh', 'Drowner of Hope', 'Throne of the God-Pharaoh', 'King Darien XLVIII', 'Dead of Winter', 'Midnight Guard', 'Guile', 'Bogardan Hellkite', 'Mastermind''s Acquisition', 'Moderation', 'Summer Bloom', 'Hypergenesis', 'Skyclave Shade', 'Rotting Rats', 'Canopy Vista', 'Hour of Promise', 'Marwyn, the Nurturer', 'Drossforge Bridge', 'Quicken', 'Hero''s Downfall', 'Ghost Quarter', 'Mishra''s Factory', 'Caldera Hellion', 'Artistic Refusal', 'Sea-Dasher Octopus', 'Chaotic Transformation', 'The Flame of Keld', 'Frostwalk Bastion', 'Fracturing Gust', 'Scour All Possibilities', 'Temple of Deceit', 'Ashenmoor Liege', 'Shizo, Death''s Storehouse', 'Dreams of Steel and Oil', 'Chandra, Fire Artisan', 'Delver of Secrets', 'Fearless Fledgling', 'Basking Rootwalla', 'Yavimaya Iconoclast', 'Arcbound Ravager', 'Repeal', 'Steppe Lynx', 'Karumonix, the Rat King', 'Night Market Lookout', 'Stone Rain', 'Sunpetal Grove', 'Champion of Wits', 'Malcator, Purity Overseer', 'Putrefy', 'Ashnod, Flesh Mechanist', 'Voidwing Hybrid', 'Ancient Ziggurat', 'Cabal Ritual', 'Floriferous Vinewall', 'Ambush Viper', 'Healer''s Hawk', 'Stinkweed Imp', 'Obstinate Baloth', 'Explore', 'Staff of Domination', 'Llanowar Augur', 'Servo Exhibition', 'Decree of Justice', 'Consuming Vapors', 'Volt Charge', 'Xerex Strobe-Knight', 'Carven Caryatid', 'Mina and Denn, Wildborn', 'Temple of Enlightenment', 'Xenagos, the Reveler', 'Tyrant''s Choice', 'Mouth of Ronom', 'Silverblade Paladin', 'Geyadrone Dihada', 'Elves of Deep Shadow', 'Gilt-Leaf Archdruid', 'Bilious Skulldweller', 'Brineborn Cutthroat', 'Elvish Mystic', 'Weapons Trainer', 'Archon of Sun''s Grace', 'Pore Over the Pages', 'Venser, Shaper Savant', 'Demolition Field', 'Akoum Hellhound', 'Snow-Covered Plains', 'Bloodchief''s Thirst', 'Angrath, the Flame-Chained', 'Rust Goliath', 'Obliterate', 'Raven''s Crime', 'Silverbluff Bridge', 'Springleaf Drum', 'Rakdos''s Return', 'Possibility Storm', 'Choked Estuary', 'Glint-Sleeve Siphoner', 'Mistveil Plains', 'Rampant Growth', 'Izzet Charm', 'Soltari Priest', 'Misery Charm', 'Knight of New Alara', 'Fiery Justice', 'Repudiate // Replicate', 'Erebos''s Intervention', 'Smuggler''s Copter', 'Grolnok, the Omnivore', 'Opulent Palace', 'Presence of Gond', 'Circuit Mender', 'Ghitu Lavarunner', 'Bring the Ending', 'Vapor Snag', 'Go for the Throat', 'Sprite Dragon', 'Herd Baloth', 'Unlucky Witness', 'Kor Skyfisher', 'Disallow', 'Psychatog', 'Elas il-Kor, Sadistic Pilgrim', 'Strike It Rich', 'Sheoldred''s Edict', 'Agonizing Remorse', 'Nephalia Drownyard', 'Golgari Rot Farm', 'Rule of Law', 'Glacial Fortress', 'Ground Seal', 'Bubbling Muck', 'Galerider Sliver', 'Mikokoro, Center of the Sea', 'Duneblast', 'Chamber Sentry', 'Secluded Courtyard', 'Silumgar, the Drifting Death', 'Faerie Miscreant', 'Burst Lightning', 'Esper Charm', 'Sudden Edict'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 1.0) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Consume the Meek', 'Divest', 'Koth, Fire of Resistance', 'Din of the Fireherd', 'Nimbus Maze', 'Arcane Sanctum', 'Akiri, Fearless Voyager', 'Stern Dismissal', 'Obzedat, Ghost Council', 'Ertai''s Scorn', 'Ambush Viper', 'Night Market Lookout', 'Presence of Gond', 'Kemba, Kha Regent', 'Oona, Queen of the Fae', 'Phyrexian Unlife', 'Restoration Angel', 'Lavaclaw Reaches', 'Feed the Swarm', 'Chandra, Fire Artisan', 'Altar of the Goyf', 'Death Cloud', 'Nested Shambler', 'Invasion of New Capenna', 'Satyr Hoplite', 'Healer''s Hawk', 'Fearless Fledgling', 'Detention Sphere', 'Elas il-Kor, Sadistic Pilgrim', 'Madcap Experiment', 'Ashnod, Flesh Mechanist', 'Terminus', 'Gitaxian Probe', 'Mothdust Changeling', 'Call of the Death-Dweller', 'Chittering Rats', 'Grolnok, the Omnivore', 'Sandwurm Convergence', 'Servo Exhibition', 'Frontier Bivouac', 'Commune with Nature', 'Pore Over the Pages', 'Pillar of the Paruns', 'Cataclysmic Gearhulk', 'Boros Guildgate', 'Sylvan Library', 'Ovika, Enigma Goliath', 'Kjeldoran Outpost', 'Llanowar Tribe', 'Bloodsoaked Champion', 'Disenchant', 'Maelstrom Pulse', 'Faith''s Reward', 'Gravelgill Duo', 'Spectral Shift', 'Lantern-Lit Graveyard', 'Kher Keep', 'Mirage Mirror', 'Glorybringer', 'Wonder', 'Raven''s Crime', 'Pardic Miner', 'Universal Automaton', 'Elvish Mystic', 'Mystical Teachings', 'Tempest Djinn', 'Dark Petition', 'Kumano Faces Kakkazan', 'Oni-Cult Anvil', 'Sylvan Advocate', 'Elixir of Immortality', 'Wandering Fumarole', 'Artisan of Kozilek', 'Curiosity', 'Riveteers Overlook', 'Argentum Armor', 'Dauntless Bodyguard', 'Collected Conjuring', 'Goblin Bombardment', 'Halimar Excavator', 'Quiet Speculation', 'Merciless Eviction', 'Far // Away', 'Council''s Judgment', 'Ishkanah, Grafwidow', 'Victim of Night', 'Careful Cultivation', 'Wild Cantor', 'Sculpting Steel', 'Wooded Bastion', 'Meeting of Minds', 'Shivan Reef', 'Invasion of Zendikar', 'Ruric Thar, the Unbowed', 'Karn''s Bastion', 'Favored Hoplite', 'Search for Tomorrow', 'Sacred Peaks', 'Cut Down', 'Twinshot Sniper', 'Knight of the Reliquary', 'Seismic Assault', 'Dead of Winter', 'Venser, Corpse Puppet', 'Hada Freeblade', 'Seal of Cleansing', 'Aegis of the Gods', 'Runed Halo', 'Nezumi Graverobber', 'Frostwalk Bastion', 'Archangel Avacyn', 'Tezzeret, Artifice Master', 'Earthquake', 'Temple of Mystery', 'Kalastria Healer', 'Myr Battlesphere', 'Time of Need', 'Kitchen Imp', 'Barbed Sextant', 'Jace, Architect of Thought', 'Akoum Hellhound', 'Tyrant''s Choice', 'Ayara, First of Locthwain', 'Titania, Protector of Argoth', 'Grave Scrabbler', 'Blood on the Snow', 'Skyclave Shade', 'Aetherspouts', 'Grim Haruspex', 'Bloodchief''s Thirst', 'Voidslime', 'Lochmere Serpent', 'Hour of Promise', 'Bituminous Blast', 'Sarkhan the Masterless', 'Impulse', 'Cryptic Caves', 'Sudden Edict', 'Melira, Sylvok Outcast', 'Day of Judgment', 'The Seedcore', 'Sea Gate Oracle', 'Rakdos Guildgate', 'Strike It Rich', 'Flooded Grove', 'Hope of Ghirapur', 'Mesa Enchantress', 'Temple of Deceit', 'Forbid', 'Azorius Guildgate', 'Hypergenesis', 'Moon-Circuit Hacker', 'Rocco, Cabaretti Caterer', 'Vampiric Rites', 'Hyena Umbra', 'Orzhov Basilica', 'Teferi, Mage of Zhalfir', 'Rule of Law', 'Dismal Backwater', 'Mazemind Tome', 'Call to the Grave', 'Yasharn, Implacable Earth', 'Primal Command', 'Think Twice', 'Second Sunrise', 'Frost Marsh', 'Brain Freeze', 'Repudiate // Replicate', 'Deep Forest Hermit', 'Steel Overseer', 'Duplicant', 'Venerated Loxodon', 'Jwari Shapeshifter', 'Invasion of Ergamon', 'Vadrik, Astral Archmage', 'Sever the Bloodline', 'Heliod''s Pilgrim', 'Nether Spirit', 'Weathered Wayfarer', 'Bloodchief Ascension', 'Evacuation', 'Thrash // Threat', 'Consuming Vapors', 'Nevermore', 'Kozilek''s Predator', 'Jukai Naturalist', 'Jor Kadeen, First Goldwarden', 'Glint-Sleeve Siphoner', 'Judge''s Familiar', 'Tranquil Thicket', 'Combat Thresher', 'Rix Maadi Reveler', 'Heliod''s Intervention', 'Blight Mamba', 'Sterling Grove', 'Vampire Lacerator', 'Obscura Storefront', 'Raging Ravine', 'Check for Traps', 'Commune with Spirits', 'Midnight Reaper', 'Big Game Hunter', 'Lotus Cobra', 'Whispersilk Cloak', 'Squadron Hawk', 'Rift Bolt', 'The Scorpion God', 'Sunblade Samurai', 'Tocatli Honor Guard', 'Huatli, Radiant Champion', 'Memory Lapse', 'Krosan Grip', 'Gnawing Vermin', 'Trace of Abundance', 'Rise // Fall', 'Thundermaw Hellkite', 'Exclude', 'Assemble the Legion', 'Colossal Skyturtle', 'Kruphix''s Insight', 'Briarbridge Tracker', 'Terramorphic Expanse', 'Anafenza, the Foremost', 'Union of the Third Path', 'Heap Doll', 'Marwyn, the Nurturer', 'Talisman of Curiosity', 'Kitesail Freebooter', 'Sarkhan, the Dragonspeaker', 'Angel of Grace', 'Worship', 'Cauldron Familiar', 'Stone Rain', 'Anguished Unmaking', 'Ayli, Eternal Pilgrim', 'Supreme Will', 'Valiant Changeling', 'Voldaren Pariah', 'Brokers Hideout', 'Scour All Possibilities', 'Fallaji Archaeologist', 'Ensoul Artifact', 'Scattered Groves', 'Riveteers Charm', 'Fertile Ground', 'Vampire Neonate', 'Vivid Crag', 'Ground Seal', 'Lagrella, the Magpie', 'Ancient Stirrings', 'Goblin Electromancer', 'Demonic Bargain', 'Anafenza, Kin-Tree Spirit', 'Maze''s End', 'Mind''s Desire', 'Elspeth Conquers Death', 'Ivory Tower', 'Lost Legacy', 'Agonizing Remorse', 'Smallpox', 'Scrapwork Mutt', 'Obscura Charm', 'General''s Enforcer', 'Distorted Curiosity', 'Gallia of the Endless Dance', 'Delay', 'Mulch', 'Cult Conscript', 'Throne of the God-Pharaoh', 'Dark-Dweller Oracle', 'Phantasmal Image', 'Commune with the Gods', 'Sin Prodder', 'Third Path Iconoclast', 'Greater Gargadon', 'Evolving Wilds', 'Sunpetal Grove', 'Evangel of Synthesis', 'Falkenrath Pit Fighter', 'Burst Lightning', 'Cabal Therapist', 'Farseek', 'Incinerate', 'Faerie Vandal', 'Clifftop Retreat', 'Yavimaya Coast', 'Apostle''s Blessing', 'Cabal Ritual', 'Grand Arbiter Augustin IV', 'Mirran Crusader', 'Scarab Feast', 'Delver of Secrets', 'Devil''s Play', 'Terminate', 'Reveillark', 'Stupor', 'Zuran Orb', 'Search for Azcanta', 'Seething Song', 'Tilling Treefolk', 'Floriferous Vinewall', 'Blightning', 'Folio of Fancies', 'Flametongue Kavu', 'Barter in Blood', 'Haunted Mire', 'Vines of Vastwood', 'Augur of Bolas', 'Dakkon, Shadow Slayer', 'Crawling Chorus', 'Surge of Salvation', 'Kunoros, Hound of Athreos', 'Sheltered Thicket', 'Torens, Fist of the Angels', 'Mana Leak', 'Raffine''s Informant', 'Lavinia of the Tenth', 'Stinkdrinker Bandit', 'Ghostly Flicker', 'Tear Asunder', 'Sheoldred''s Edict', 'Mistblade Shinobi', 'Drown in Ichor', 'Tangle', 'Coiling Oracle', 'Leonin Arbiter', 'Frantic Search', 'Murderous Cut', 'Abundant Growth', 'Orzhov Charm', 'Silumgar, the Drifting Death', 'Erebos''s Intervention', 'Boreal Shelf', 'Kefnet the Mindful', 'Duneblast', 'Guile', 'Mina and Denn, Wildborn', 'Necrogen Spellbomb', 'Arbor Elf', 'Mouth of Ronom', 'Reckless Rage', 'Orcish Lumberjack', 'Nimble Trapfinder', 'Jwari Disruption', 'Syphon Life', 'Glamerdye', 'The Underworld Cookbook', 'Wasteland Strangler', 'Forbidden Alchemy', 'Putrid Imp', 'Snow-Covered Plains', 'Terrarion', 'Memoricide', 'Kitchen Finks', 'Possibility Storm', 'Eidolon of Blossoms', 'Ethersworn Sphinx', 'Morsel Theft', 'Heartless Act', 'Stoic Rebuttal', 'Fruit of Tizerus', 'Smuggler''s Copter', 'Wayward Guide-Beast', 'Ranger of Eos', 'Needle Spires', 'Increasing Ambition', 'Azorius Charm', 'Festering Newt', 'Burning of Xinye', 'Mistveil Plains', 'Archfiend''s Vessel', 'Sins of the Past', 'Chamber Sentry', 'Abyssal Persecutor', 'Concealing Curtains', 'Leonin Lightscribe', 'Doomskar', 'Glacial Fortress', 'Summary Dismissal', 'Scrabbling Claws', 'Idyllic Tutor', 'Ignite Memories', 'Abundant Harvest', 'Recurring Nightmare', 'Elemental Masterpiece', 'Sign in Blood', 'Dusk // Dawn', 'Spatial Contortion', 'Gideon Jura', 'Nephalia Drownyard', 'Disciple of Bolas', 'Tocasia''s Dig Site', 'Rites of Spring', 'Doomed Traveler', 'Oracle of Mul Daya', 'Obliterate', 'Nameless Inversion', 'Weapons Trainer', 'Fleecemane Lion', 'Tezzeret''s Gambit', 'Woodfall Primus', 'Destiny Spinner', 'Stasis Snare', 'Sorin, Vengeful Bloodlord', 'Fire Prophecy', 'Tendrils of Agony', 'Izzet Charm', 'Ransack the Lab', 'Turnabout', 'Tymaret, Chosen from Death', 'Ravenous Squirrel', 'Kogla, the Titan Ape', 'Reinforced Ronin', 'Oona''s Prowler', 'The Celestus', 'Marble Diamond', 'Timely Reinforcements', 'Negate', 'Argentum Masticore', 'Sleight of Hand', 'Tribal Flames', 'Arguel''s Blood Fast', 'Volt Charge', 'Silversmote Ghoul', 'Gift of Estates', 'Staff of Domination', 'Elite Inquisitor', 'Voidwing Hybrid', 'Blazing Rootwalla', 'Corrupted Crossroads', 'Ephara, God of the Polis', 'Wolfbriar Elemental', 'Acidic Slime', 'Smother', 'Fierce Empath', 'Prologue to Phyresis', 'Knight of Glory', 'Monument to Perfection', 'Birds of Paradise', 'Lizard Blades', 'Rust Goliath', 'Aetherblade Agent', 'Kaito, Dancing Shadow', 'Knight of the White Orchid', 'Obstinate Baloth', 'Oblivion Ring', 'Succumb to Temptation', 'Kazandu Blademaster', 'Blessed Alliance', 'Crux of Fate', 'Energy Refractor', 'Angrath, the Flame-Chained', 'Demolition Field', 'Vivid Grove', 'Rakdos Cackler', 'Nomad Outpost', 'Jokulhaups', 'Herd Baloth', 'Purify the Grave', 'Froghemoth', 'Disallow', 'Anger of the Gods', 'Scrying Sheets', 'Shape Anew', 'Dakmor Salvage', 'Rally the Peasants', 'Breya''s Apprentice', 'Fireblade Charger', 'Harmonize', 'Eldrazi Skyspawner', 'Idyllic Beachfront', 'Price of Progress', 'Prosperous Thief', 'Green Sun''s Twilight', 'Fact or Fiction', 'Grand Abolisher', 'Vault Skirge', 'Archpriest of Shadows', 'Silundi Vision', 'Thragtusk', 'Ashenmoor Liege', 'Shred Memory', 'Sultai Charm', 'Vraska''s Fall', 'Swiftfoot Boots', 'Mulldrifter', 'Solemnity', 'Woe Strider', 'Silumgar''s Scorn', 'Dead // Gone', 'Simian Spirit Guide', 'Oust', 'Auriok Sunchaser', 'Silver-Fur Master', 'Izzet Boilerworks', 'Languish', 'Mortuary Mire', 'Putrefy', 'Godo, Bandit Warlord', 'Slagstorm', 'Mystic Monastery', 'Tectonic Edge', 'Joint Exploration', 'Master of Death', 'Ulcerate', 'Ghostly Pilferer', 'Chandra, Pyromaster', 'Mistvault Bridge', 'Hanweir Garrison', 'See Beyond', 'Big Score', 'Thrill of Possibility', 'Dissipate', 'Pyretic Ritual', 'Benevolent Bodyguard', 'Thraben Inspector', 'Cartel Aristocrat', 'Teshar, Ancestor''s Apostle', 'Waking the Trolls', 'Inevitable Betrayal', 'Bloodline Keeper', 'Mausoleum Secrets', 'River of Tears', 'Rotting Rats', 'Viashino Pyromancer', 'Graaz, Unstoppable Juggernaut', 'Timeless Witness', 'Tolarian Terror', 'Voyaging Satyr', 'Graven Cairns', 'Shimmerdrift Vale', 'Experimental Augury', 'Triumphant Adventurer', 'Ghost Quarter', 'Invisible Stalker', 'Siege Rhino', 'Quicken', 'Elvish Archdruid', 'Rise and Shine', 'Battle of Frost and Fire', 'Mistcutter Hydra', 'Return to the Ranks', 'Gnat Miser', 'Golgari Guildgate', 'Thornwood Falls', 'Pyroclasm', 'Founding the Third Path', 'Drowned Rusalka', 'Reckless Charge', 'Nekrataal', 'Bloodvial Purveyor', 'Raise the Alarm', 'Grave Titan', 'Open the Armory', 'Devious Cover-Up', 'Inscribed Tablet', 'Deprive', 'Mikokoro, Center of the Sea', 'Luminarch Ascension', 'Rally the Ancestors', 'Lurrus of the Dream-Den', 'Fetid Heath', 'Garruk Wildspeaker', 'Vexing Shusher', 'Groundswell', 'Mnemonic Sphere', 'Surrak, the Hunt Caller', 'Ivy Lane Denizen', 'Thassa''s Intervention', 'Haunted Fengraf', 'Izzet Guildgate', 'Champion of Wits', 'Leonin Warleader', 'Bloodbraid Elf', 'Yahenni''s Expertise', 'Mishra''s Factory', 'Explore', 'Dread Return', 'Phoenix Chick', 'Karumonix, the Rat King', 'Fade from Memory', 'Ornithopter', 'Cloudpost', 'Brave the Elements', 'Moorland Haunt', 'Cultivate', 'Vapor Snag', 'Kappa Tech-Wrecker', 'Revitalize', 'Glimpse of Tomorrow', 'Pharika''s Libation', 'Dregscape Zombie', 'Dimir Aqueduct', 'Bolas''s Citadel', 'Empyrial Armor', 'Kiora Bests the Sea God', 'Stubborn Denial', 'Dross Skullbomb', 'Viscera Seer', 'Satyr Wayfinder', 'Venser, Shaper Savant', 'Sphinx''s Herald', 'Carven Caryatid', 'Silent Gravestone', 'Unctus, Grand Metatect', 'Choked Estuary', 'Moderation', 'Prophetic Prism', 'Nullpriest of Oblivion', 'Become Immense', 'Gilt-Leaf Archdruid', 'Doom Blade', 'Maestros Charm', 'Overgrowth', 'Racers'' Ring', 'Sinister Concoction', 'Saffi Eriksdotter', 'General Ferrous Rokiric', 'Swooping Lookout', 'Dimir Guildgate', 'Fracturing Gust', 'Ossification', 'Tribute to Horobi', 'Cleansing Wildfire', 'Shard Volley', 'Might of Old Krosa', 'Nissa, Worldwaker', 'Diffusion Sliver', 'Botanical Plaza', 'Saproling Migration', 'Blightbelly Rat', 'Repeal', 'Shrapnel Blast', 'Isolated Chapel', 'Slagwoods Bridge', 'Pull from Tomorrow', 'Temple of Triumph', 'Caldera Hellion', 'Contaminated Aquifer', 'Temple of Malady', 'Circular Logic', 'Shambling Vent', 'Abzan Charm', 'Leonin Relic-Warder', 'Hinterland Harbor', 'Tresserhorn Sinks', 'Nezahal, Primal Tide', 'Cabal Initiate', 'Knowledge Pool', 'Hesitation', 'Vryn Wingmare', 'Banishing Slash', 'Psychic Possession', 'Shardless Agent', 'Canyon Slough', 'Rabbit Battery', 'Archangel of Wrath', 'Eiganjo Castle', 'Pharika''s Cure', 'Sprite Dragon', 'Ammit Eternal', 'Secluded Steppe', 'Ral, Izzet Viceroy', 'Wood Elves', 'Ancient Amphitheater', 'Changeling Outcast', 'Bilious Skulldweller', 'Martyr of Sands', 'Rakdos Charm', 'Spirited Companion', 'Slogurk, the Overslime', 'Eerie Ultimatum', 'Malcator, Purity Overseer', 'Thirst for Meaning', 'Platinum Angel', 'Wrench Mind', 'Predatory Sliver', 'Open the Gates', 'Felidar Retreat', 'Wanderwine Hub', 'Rampant Growth', 'Tangled Islet', 'Engulf the Shore', 'Rustvale Bridge', 'Scab-Clan Berserker', 'Angel of Serenity', 'Snow-Covered Swamp', 'Kami of False Hope', 'Mindsplice Apparatus', 'Voltage Surge', 'Rakdos''s Return', 'Gird for Battle', 'Invoke Calamity', 'Kabira Takedown', 'Eternal Scourge', 'Barbarian Ring', 'Graveborn Muse', 'Lodestone Golem', 'Xerex Strobe-Knight', 'Temple of Enlightenment', 'Dreams of Steel and Oil', 'Darksteel Colossus', 'Temple of Plenty', 'Into the Story', 'Llanowar Mentor', 'Master of Etherium', 'Cathartic Reunion', 'Toolcraft Exemplar', 'Corpse Cur', 'Tidespout Tyrant', 'Genesis Ultimatum', 'Settle the Wreckage', 'Out of Time', 'Simic Guildgate', 'Glistener Elf', 'Yavimaya Iconoclast', 'Canopy Vista', 'Bident of Thassa', 'Kaya, Ghost Assassin', 'Dream Trawler', 'Sigil of the Empty Throne', 'Bitter Reunion', 'Hieroglyphic Illumination', 'Norn''s Inquisitor', 'Talisman of Unity', 'Lay Down Arms', 'Woodland Cemetery', 'Castigate', 'Ardent Recruit', 'Executioner''s Capsule', 'Bogardan Hellkite', 'Ghitu Lavarunner', 'Ally Encampment', 'Enchantress''s Presence', 'Chief Engineer', 'Summer Bloom', 'Shimmer Dragon', 'Faerie Miscreant', 'Jace Beleren', 'Seeker of the Way', 'White Sun''s Zenith', 'Vindicate', 'Archaeomancer', 'Gleeful Demolition', 'Lightning Spear', 'Ashen Rider', 'Expedition Envoy', 'Archon of Sun''s Grace', 'Divinity of Pride', 'Rain of Tears', 'Herd Migration', 'Priest of the Haunted Edge', 'Chaotic Transformation', 'Gideon''s Intervention', 'Seal of Fire', 'Oath of Teferi', 'Icehide Golem', 'Sunstrike Legionnaire', 'Stromkirk Noble', 'Dragon''s Hoard', 'Jungle Shrine', 'Vedalken Heretic', 'Boon-Bringer Valkyrie', 'Tribute to Hunger', 'Wrenn''s Resolve', 'Scuttling Doom Engine', 'Endbringer', 'Hero''s Downfall', 'Gruul Guildgate', 'Dying to Serve', 'Decree of Justice', 'Annex Sentry', 'Dire-Strain Rampage', 'Approach of the Second Sun', 'Brainstone', 'Invasion of Amonkhet', 'Urban Evolution', 'Condemn', 'Helm of the Host', 'Counterflux', 'Sigrid, God-Favored', 'Treasure Cruise', 'Ethereal Armor', 'Draugr Necromancer', 'Deep Analysis', 'Ral, Storm Conduit', 'Valakut Exploration', 'Orzhov Guildgate', 'Disrupting Shoal', 'The Flame of Keld', 'Abiding Grace', 'Elvish Visionary', 'Rune Snag', 'Forsake the Worldly', 'Precursor Golem', 'Remorseful Cleric', 'Chandra, Flamecaller', 'Vraska''s Contempt', 'Notorious Throng', 'Tooth and Nail', 'Cloudshredder Sliver', 'Honor of the Pure', 'Sunlit Marsh', 'Drake Haven', 'Thopter Spy Network', 'Dread Wanderer', 'Dokuchi Silencer', 'Eldrazi Displacer', 'Reflector Mage', 'Golgari Rot Farm', 'Aetherling', 'Control Magic', 'Figure of Destiny', 'Utter End', 'Hall of Oracles', 'Upheaval', 'Pain Seer', 'Nine Lives', 'Darksteel Citadel', 'Vampire Nighthawk', 'Glimmerpost', 'Experimental Synthesizer', 'Bontu''s Last Reckoning', 'Phyrexian Revoker', 'Alms of the Vein', 'Aether Spellbomb', 'Arcbound Ravager', 'Invasion of Kaladesh', 'Forked Bolt', 'Battlefield Forge', 'Myr Superion', 'Kiora, the Crashing Wave', 'Frenetic Sliver', 'Gutterbones', 'Corrupted Conviction', 'Defiant Strike', 'Nissa, Steward of Elements', 'Drowner of Hope', 'Go for the Throat', 'Steppe Lynx', 'Plated Geopede', 'Angel of Condemnation', 'Reckoner''s Bargain', 'Razortide Bridge', 'Commit // Memory', 'Battle of Wits', 'Dryad Militant', 'Avacyn''s Pilgrim', 'Discovery // Dispersal', 'Malicious Malfunction', 'Hissing Quagmire', 'Artistic Refusal', 'Goldmire Bridge', 'Teneb, the Harvester', 'Mindslaver', 'Bogbrew Witch', 'Blade Splicer', 'Sweltering Suns', 'World Shaper', 'Rites of Initiation', 'Lazotep Chancellor', 'Dimensional Infiltrator', 'Desperate Ritual', 'Gather the Pack', 'Temple of Abandon', 'Territorial Kavu', 'Sol Talisman', 'Lingering Souls', 'Yisan, the Wanderer Bard', 'Progenitor Exarch', 'Venser, the Sojourner', 'Greater Tanuki', 'Brave the Sands', 'Gloomshrieker', 'Dawn of Hope', 'Declaration in Stone', 'Westvale Abbey', 'Assault // Battery', 'Seal of Removal', 'Crack the Earth', 'Kor Firewalker', 'Change the Equation', 'Loxodon Smiter', 'Yorion, Sky Nomad', 'Ichorclaw Myr', 'Tanglepool Bridge', 'Invasion of Azgol', 'Embodiment of Fury', 'Timeless Dragon', 'Simian Sling', 'Scrapheap Scrounger', 'Akroan Crusader', 'All That Glitters', 'Fight as One', 'Arch of Orazca', 'Tainted Indulgence', 'Curse of Exhaustion', 'Esper Charm', 'Tidehollow Sculler', 'Shriekmaw', 'Dead Weight', 'Basilisk Collar', 'King Darien XLVIII', 'Commence the Endgame', 'Inkwell Leviathan', 'Oracle of Tragedy', 'Sea-Dasher Octopus', 'Chain Lightning', 'Wall of Omens', 'Frantic Inventory', 'Throat Slitter', 'Dragonskull Summit', 'Thornglint Bridge', 'Chief of the Foundry', 'Geyadrone Dihada', 'Vault of the Archangel', 'Stir the Grave', 'Late to Dinner', 'Diabolic Tutor', 'Touch the Spirit Realm', 'Felidar Cub', 'Blood Artist', 'Lightning Strike', 'Stirring Wildwood', 'Grand Architect', 'Geomancer''s Gambit', 'Dispatch', 'Buried Ruin', 'Bubbling Muck', 'Flaying Tendrils', 'Unholy Heat', 'Resurgent Belief', 'Polukranos, World Eater', 'Makeshift Mannequin', 'Ancient Ziggurat', 'Drossforge Bridge', 'Dreadhorde Butcher', 'Bone Shards', 'Gift of Immortality', 'Hideous End', 'Nimble Obstructionist', 'Grenzo, Dungeon Warden', 'Protect the Negotiators', 'Yawgmoth''s Bargain', 'Lose Focus', 'Myth Realized', 'Grafted Butcher', 'Unburial Rites', 'Sire of Insanity', 'Slaughter Pact', 'Malakir Rebirth', 'Ramunap Excavator', 'Kor Skyfisher', 'Kemba, Kha Enduring', 'Angel of Despair', 'Giant Killer', 'Tendo Ice Bridge', 'Selesnya Guildgate', 'Mirror Entity', 'Raze to the Ground', 'Narcomoeba', 'Molten Tributary', 'Blue Sun''s Zenith', 'Fyndhorn Elves', 'Mesmeric Fiend', 'Forgotten Cave', 'Duress', 'Cremate', 'Pariah', 'Odds // Ends', 'Shizo, Death''s Storehouse', 'Witching Well', 'Winds of Abandon', 'Spell Pierce', 'Llanowar Elves', 'Oona''s Grace', 'Phyrexian Censor', 'Snow-Covered Mountain', 'Spell Burst', 'Radha, Heart of Keld', 'Brineborn Cutthroat', 'Basking Rootwalla', 'Celestial Colonnade', 'Black Sun''s Zenith', 'Melira, the Living Cure', 'Etherium Sculptor', 'Drowned Catacomb', 'Crawling Barrens', 'Sulfur Falls', 'Magister of Worth', 'Skyshroud Elf', 'Night of Souls'' Betrayal', 'Empyrial Plate', 'Hard Evidence', 'Farhaven Elf', 'Baneful Omen', 'Vigor', 'Solitary Confinement', 'Opulent Palace', 'Expedite', 'Gigadrowse', 'Thopter Mechanic', 'Nightscape Familiar', 'Secluded Courtyard', 'Zombie Infestation', 'Thawing Glaciers', 'Pyrite Spellbomb', 'Deafening Clarion', 'Bump in the Night', 'Murmuring Bosk', 'Smoldering Marsh', 'Ponder', 'Unmarked Grave', 'Zephyr Singer', 'Invigorate', 'Nimble Larcenist', 'Oath of Kaya', 'Spellweaver Helix', 'Sunken Hollow', 'Geothermal Bog', 'Bring the Ending', 'Circuit Mender', 'Temple of Silence', 'Knight of New Alara', 'Murderous Redcap', 'Game Trail', 'Wilt', 'Armored Scrapgorger', 'Sculpted Perfection', 'Misery Charm', 'Caves of Koilos', 'Orim''s Chant', 'Vraan, Executioner Thane', 'Gruul Spellbreaker', 'Llanowar Augur', 'Marauding Blight-Priest', 'Wrath of God', 'Flame Rift', 'Arlinn Kord', 'Thaumatic Compass', 'Hostage Taker', 'Patchwork Automaton', 'Quest for the Holy Relic', 'Verduran Enchantress', 'Cabaretti Courtyard', 'Vampire Hexmage', 'Tomebound Lich', 'Kambal, Consul of Allocation', 'Stinkweed Imp', 'Destroy Evil', 'Frost Titan', 'Elderscale Wurm', 'Phalanx Leader', 'Varolz, the Scar-Striped', 'Xenagos, the Reveler', 'Zur''s Weirding', 'Blanchwood Prowler', 'Cathedral of War', 'Altar of the Brood', 'Sinew Sliver', 'Mastermind''s Acquisition', 'Serra Ascendant', 'Electrolyze', 'Peek', 'Into the Roil', 'Hooting Mandrills', 'Gateway Plaza', 'Of One Mind', 'Pack Rat', 'Jungle Hollow', 'Network Disruptor', 'Mindcrank', 'Arcum''s Astrolabe', 'Seedcradle Witch', 'Radiant Grove', 'Hornet Queen', 'Arbalest Engineers', 'Dark Ritual', 'Wizard''s Retort', 'Elves of Deep Shadow', 'Marit Lage''s Slumber', 'Demigod of Revenge', 'Sandsteppe Citadel', 'Vivid Marsh', 'Fetid Pools', 'Springleaf Drum', 'Liliana Vess', 'Sylvan Caryatid', 'Fiery Justice', 'Altered Ego', 'Otherworldly Journey', 'Ogre Slumlord', 'Herald of the Pantheon', 'Silverbluff Bridge', 'Phyrexian Dreadnought', 'Goblin Dark-Dwellers', 'Stone Haven Outfitter', 'Genesis Hydra', 'Silverblade Paladin', 'Ghostfire Blade', 'Sin Collector', 'Porphyry Nodes', 'Consult the Necrosages', 'Drainpipe Vermin', 'Terastodon', 'Ulvenwald Hydra', 'Port Town', 'Midnight Guard', 'Bubbling Cauldron', 'Sphere of Safety', 'Kessig Wolf Run', 'Stoke the Flames', 'Squee, Goblin Nabob', 'Galerider Sliver', 'Elvish Rejuvenator', 'Nature''s Lore', 'Hypnotic Specter', 'Gadrak, the Crown-Scourge', 'Gruul Turf', 'Dovin''s Acuity', 'Epic Experiment', 'Halana and Alena, Partners', 'Ancestral Blade', 'Psychatog', 'Rootbound Crag', 'Invasion of Regatha', 'Soltari Priest', 'Unlucky Witness', 'Combat Research', 'Vessel of Nascency', 'Graven Lore', 'Forging the Anchor', 'Faeburrow Elder', 'Fumigate', 'Fae of Wishes', 'Cliffside Lookout', 'Fiery Temper'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Kitesail Freebooter', 'Incinerate', 'Gravelgill Duo', 'Wild Cantor', 'Wayward Guide-Beast', 'Venser, Corpse Puppet', 'Faeburrow Elder', 'Tyrant''s Choice', 'Hada Freeblade', 'Epic Experiment', 'Odds // Ends', 'Flooded Grove', 'Sphinx''s Herald', 'Condemn', 'Utter End', 'Haunted Fengraf', 'Sterling Grove', 'Wrenn''s Resolve', 'Vampire Nighthawk', 'Expedition Envoy', 'Mystical Teachings', 'Karn''s Bastion', 'Pharika''s Cure', 'Snow-Covered Swamp', 'Groundswell', 'Graaz, Unstoppable Juggernaut', 'Guile', 'Inevitable Betrayal', 'Pariah', 'Reflector Mage', 'Corpse Cur', 'Temple of Plenty', 'Devious Cover-Up', 'Siege Rhino', 'Esper Charm', 'Silversmote Ghoul', 'Engulf the Shore', 'Oath of Kaya', 'Dream Trawler', 'Mirran Crusader', 'Goblin Dark-Dwellers', 'Electrolyze', 'Cauldron Familiar', 'Nevermore', 'Temple of Enlightenment', 'Fire Prophecy', 'Silumgar, the Drifting Death', 'Solemnity', 'Nimbus Maze', 'Dimensional Infiltrator', 'Elemental Masterpiece', 'Vessel of Nascency', 'Sculpting Steel', 'Vivid Grove', 'Rule of Law', 'Tezzeret, Artifice Master', 'Bloodchief Ascension', 'Weathered Wayfarer', 'Ertai''s Scorn', 'Scour All Possibilities', 'Malicious Malfunction', 'Secluded Courtyard', 'Tidehollow Sculler', 'Spell Pierce', 'Vigor', 'Memory Lapse', 'Lightning Spear', 'Gutterbones', 'Detention Sphere', 'Racers'' Ring', 'Ethereal Armor', 'Kiora Bests the Sea God', 'Tezzeret''s Gambit', 'Sandwurm Convergence', 'Hour of Promise', 'Frantic Search', 'Phyrexian Revoker', 'Fracturing Gust', 'Llanowar Augur', 'Magister of Worth', 'Divest', 'Misery Charm', 'Rakdos''s Return', 'Vivid Marsh', 'Rocco, Cabaretti Caterer', 'Pharika''s Libation', 'Commit // Memory', 'Might of Old Krosa', 'Swiftfoot Boots', 'Nested Shambler', 'Empyrial Plate', 'Nekrataal', 'Peek', 'Evolving Wilds', 'Hostage Taker', 'Priest of the Haunted Edge', 'Lantern-Lit Graveyard', 'Gideon Jura', 'Rust Goliath', 'Fumigate', 'Melira, the Living Cure', 'Fertile Ground', 'Grim Haruspex', 'Nether Spirit', 'Stupor', 'Commune with Nature', 'Blue Sun''s Zenith', 'Day of Judgment', 'Pardic Miner', 'Chaotic Transformation', 'Midnight Guard', 'Jor Kadeen, First Goldwarden', 'Night Market Lookout', 'Polukranos, World Eater', 'Karumonix, the Rat King', 'Smoldering Marsh', 'Ransack the Lab', 'Silumgar''s Scorn', 'Evangel of Synthesis', 'Terminate', 'Ponder', 'Temple of Mystery', 'Dauntless Bodyguard', 'Joint Exploration', 'Dusk // Dawn', 'Hooting Mandrills', 'Leonin Relic-Warder', 'Birds of Paradise', 'Monument to Perfection', 'Vraan, Executioner Thane', 'Rix Maadi Reveler', 'Moorland Haunt', 'Westvale Abbey', 'Protect the Negotiators', 'Rabbit Battery', 'Nullpriest of Oblivion', 'Repudiate // Replicate', 'Wooded Bastion', 'Call to the Grave', 'Dire-Strain Rampage', 'Giant Killer', 'Unholy Heat', 'Eldrazi Skyspawner', 'Ashnod, Flesh Mechanist', 'Kher Keep', 'Zombie Infestation', 'Opulent Palace', 'Koth, Fire of Resistance', 'Tear Asunder', 'Viashino Pyromancer', 'Mindslaver', 'Porphyry Nodes', 'Meeting of Minds', 'Frost Titan', 'Psychatog', 'Woodfall Primus', 'Dimir Guildgate', 'Check for Traps', 'Morsel Theft', 'Cryptic Caves', 'Slagwoods Bridge', 'Murderous Redcap', 'Seeker of the Way', 'Knight of New Alara', 'Ovika, Enigma Goliath', 'Basking Rootwalla', 'Ancient Ziggurat', 'Sigil of the Empty Throne', 'Ancient Stirrings', 'Vampiric Rites', 'Farseek', 'Pull from Tomorrow', 'Abundant Harvest', 'Ghostly Pilferer', 'Champion of Wits', 'Timely Reinforcements', 'Pyroclasm', 'Blight Mamba', 'Slagstorm', 'Bolas''s Citadel', 'Dying to Serve', 'Gitaxian Probe', 'Silverblade Paladin', 'Bident of Thassa', 'Spirited Companion', 'Talisman of Unity', 'Endbringer', 'Vines of Vastwood', 'Nimble Larcenist', 'Archangel of Wrath', 'Staff of Domination', 'Defiant Strike', 'Blightning', 'Tanglepool Bridge', 'Crawling Chorus', 'Reckoner''s Bargain', 'Ammit Eternal', 'Baneful Omen', 'Spell Burst', 'Sinister Concoction', 'Drowned Rusalka', 'Circuit Mender', 'Godo, Bandit Warlord', 'The Scorpion God', 'Kefnet the Mindful', 'Hissing Quagmire', 'Molten Tributary', 'Big Score', 'Sculpted Perfection', 'Bituminous Blast', 'Gateway Plaza', 'Kor Skyfisher', 'Solitary Confinement', 'Vapor Snag', 'Notorious Throng', 'Leonin Arbiter', 'Seething Song', 'Unburial Rites', 'Obzedat, Ghost Council', 'Nimble Trapfinder', 'The Underworld Cookbook', 'Elite Inquisitor', 'Golgari Rot Farm', 'Fireblade Charger', 'Jace Beleren', 'Melira, Sylvok Outcast', 'Fyndhorn Elves', 'General Ferrous Rokiric', 'Angrath, the Flame-Chained', 'Expedite', 'Hieroglyphic Illumination', 'Port Town', 'Fierce Empath', 'Forsake the Worldly', 'Vadrik, Astral Archmage', 'Voyaging Satyr', 'Maestros Charm', 'Herd Baloth', 'Verduran Enchantress', 'Stoic Rebuttal', 'Abiding Grace', 'Treasure Cruise', 'Invasion of Kaladesh', 'Venser, Shaper Savant', 'Grand Architect', 'Call of the Death-Dweller', 'Disenchant', 'Figure of Destiny', 'Ishkanah, Grafwidow', 'Ghost Quarter', 'Arcane Sanctum', 'Mulldrifter', 'Eidolon of Blossoms', 'Elvish Archdruid', 'Idyllic Beachfront', 'Ground Seal', 'Phyrexian Unlife', 'Executioner''s Capsule', 'Kalastria Healer', 'Banishing Slash', 'Thragtusk', 'Leonin Lightscribe', 'Hyena Umbra', 'Cult Conscript', 'Jungle Shrine', 'Stinkweed Imp', 'Mistvault Bridge', 'Wandering Fumarole', 'Negate', 'Tidespout Tyrant', 'Cut Down', 'Supreme Will', 'Cabal Initiate', 'Lazotep Chancellor', 'Dovin''s Acuity', 'Lose Focus', 'Diabolic Tutor', 'Dokuchi Silencer', 'Stone Rain', 'Union of the Third Path', 'Viscera Seer', 'Whispersilk Cloak', 'Tooth and Nail', 'Temple of Abandon', 'Sins of the Past', 'Sunlit Marsh', 'Turnabout', 'Frostwalk Bastion', 'Herd Migration', 'Vryn Wingmare', 'Genesis Hydra', 'Time of Need', 'Rootbound Crag', 'Mirage Mirror', 'Energy Refractor', 'Golgari Guildgate', 'Tangle', 'Archfiend''s Vessel', 'Open the Armory', 'Thrash // Threat', 'Annex Sentry', 'Into the Roil', 'Haunted Mire', 'General''s Enforcer', 'Thornwood Falls', 'Forging the Anchor', 'Tainted Indulgence', 'Mouth of Ronom', 'Floriferous Vinewall', 'Dawn of Hope', 'Stromkirk Noble', 'Shriekmaw', 'Orim''s Chant', 'Archpriest of Shadows', 'Anger of the Gods', 'Stubborn Denial', 'Raging Ravine', 'Burst Lightning', 'Graveborn Muse', 'Marble Diamond', 'Duplicant', 'Exclude', 'Drainpipe Vermin', 'Darksteel Colossus', 'Scrapheap Scrounger', 'Fruit of Tizerus', 'Gnat Miser', 'Embodiment of Fury', 'Phantasmal Image', 'Yisan, the Wanderer Bard', 'Lavaclaw Reaches', 'Tresserhorn Sinks', 'Declaration in Stone', 'Universal Automaton', 'Drowned Catacomb', 'Frost Marsh', 'Gird for Battle', 'Bloodline Keeper', 'Ravenous Squirrel', 'Victim of Night', 'Kemba, Kha Regent', 'Apostle''s Blessing', 'Stirring Wildwood', 'Timeless Dragon', 'Sulfur Falls', 'Prophetic Prism', 'Yawgmoth''s Bargain', 'Mistveil Plains', 'Glorybringer', 'Akiri, Fearless Voyager', 'Maze''s End', 'Saproling Migration', 'Heap Doll', 'Mana Leak', 'Doomed Traveler', 'Slaughter Pact', 'Territorial Kavu', 'Orzhov Guildgate', 'Black Sun''s Zenith', 'Deprive', 'Merciless Eviction', 'Rally the Peasants', 'Greater Tanuki', 'Predatory Sliver', 'Summer Bloom', 'Graven Cairns', 'Thornglint Bridge', 'Sin Collector', 'Avacyn''s Pilgrim', 'Grenzo, Dungeon Warden', 'Knight of the Reliquary', 'Eternal Scourge', 'Ephara, God of the Polis', 'Demonic Bargain', 'Angel of Grace', 'Fetid Pools', 'Summary Dismissal', 'Duneblast', 'Izzet Charm', 'Brainstone', 'Cleansing Wildfire', 'Chandra, Pyromaster', 'Invasion of Zendikar', 'Terastodon', 'Alms of the Vein', 'Dakmor Salvage', 'Lochmere Serpent', 'Servo Exhibition', 'Silent Gravestone', 'Vampire Hexmage', 'Kitchen Imp', 'Seal of Fire', 'Llanowar Elves', 'Pack Rat', 'Commence the Endgame', 'Become Immense', 'Oracle of Mul Daya', 'Rites of Initiation', 'Halimar Excavator', 'Cultivate', 'Briarbridge Tracker', 'Kjeldoran Outpost', 'Chief Engineer', 'Unctus, Grand Metatect', 'Harmonize', 'Distorted Curiosity', 'Rakdos Guildgate', 'Consume the Meek', 'Marit Lage''s Slumber', 'Smother', 'Reckless Charge', 'Darksteel Citadel', 'Sinew Sliver', 'Orcish Lumberjack', 'Krosan Grip', 'Possibility Storm', 'Ensoul Artifact', 'Phoenix Chick', 'All That Glitters', 'Second Sunrise', 'Vampire Lacerator', 'Etherium Sculptor', 'Inkwell Leviathan', 'Go for the Throat', 'Dispatch', 'Dark Ritual', 'Armored Scrapgorger', 'Invasion of Azgol', 'Fiery Justice', 'Change the Equation', 'Wizard''s Retort', 'Think Twice', 'Ethersworn Sphinx', 'Bontu''s Last Reckoning', 'Heliod''s Intervention', 'Moon-Circuit Hacker', 'Myr Battlesphere', 'Battle of Frost and Fire', 'Fight as One', 'Green Sun''s Twilight', 'Skyshroud Elf', 'Fleecemane Lion', 'Hard Evidence', 'Sylvan Advocate', 'Spectral Shift', 'Steppe Lynx', 'Gilt-Leaf Archdruid', 'Akroan Crusader', 'Mirror Entity', 'Sign in Blood', 'Tribute to Hunger', 'Dreams of Steel and Oil', 'Master of Etherium', 'Fiery Temper', 'Zuran Orb', 'Gift of Immortality', 'Augur of Bolas', 'Vivid Crag', 'Smuggler''s Copter', 'Vexing Shusher', 'Thopter Spy Network', 'Assault // Battery', 'Isolated Chapel', 'Necrogen Spellbomb', 'Benevolent Bodyguard', 'Flametongue Kavu', 'Shred Memory', 'Kozilek''s Predator', 'Halana and Alena, Partners', 'Remorseful Cleric', 'Glint-Sleeve Siphoner', 'Kaya, Ghost Assassin', 'Price of Progress', 'Cloudshredder Sliver', 'Faerie Miscreant', 'Psychic Possession', 'Draugr Necromancer', 'Simian Spirit Guide', 'Dragonskull Summit', 'Torens, Fist of the Angels', 'Silundi Vision', 'Sea Gate Oracle', 'Cataclysmic Gearhulk', 'Venerated Loxodon', 'Grafted Butcher', 'Yahenni''s Expertise', 'Master of Death', 'Crack the Earth', 'Dakkon, Shadow Slayer', 'Makeshift Mannequin', 'Forked Bolt', 'Quiet Speculation', 'Altar of the Brood', 'Teferi, Mage of Zhalfir', 'Memoricide', 'Phyrexian Dreadnought', 'Altered Ego', 'Skyclave Shade', 'Restoration Angel', 'Jungle Hollow', 'Falkenrath Pit Fighter', 'Izzet Guildgate', 'Geyadrone Dihada', 'Thopter Mechanic', 'Cabaretti Courtyard', 'Lotus Cobra', 'Otherworldly Journey', 'Lodestone Golem', 'Upheaval', 'Azorius Charm', 'Kunoros, Hound of Athreos', 'Precursor Golem', 'Slogurk, the Overslime', 'Shivan Reef', 'Sunpetal Grove', 'Spellweaver Helix', 'Wall of Omens', 'Succumb to Temptation', 'Dross Skullbomb', 'Madcap Experiment', 'Voidwing Hybrid', 'Mortuary Mire', 'Helm of the Host', 'Blade Splicer', 'Varolz, the Scar-Striped', 'Jwari Disruption', 'Raze to the Ground', 'Sandsteppe Citadel', 'Stasis Snare', 'Raffine''s Informant', 'Rally the Ancestors', 'Folio of Fancies', 'Lightning Strike', 'Nightscape Familiar', 'Aether Spellbomb', 'Bump in the Night', 'Aetherspouts', 'Nissa, Worldwaker', 'Tilling Treefolk', 'Discovery // Dispersal', 'Ignite Memories', 'Invasion of New Capenna', 'Glimmerpost', 'Angel of Serenity', 'Mothdust Changeling', 'Agonizing Remorse', 'Sin Prodder', 'Kor Firewalker', 'Ashen Rider', 'Abundant Growth', 'Arcum''s Astrolabe', 'Platinum Angel', 'Blessed Alliance', 'Sigrid, God-Favored', 'Open the Gates', 'Council''s Judgment', 'Grave Titan', 'Ulcerate', 'Sarkhan the Masterless', 'Llanowar Mentor', 'Blazing Rootwalla', 'Late to Dinner', 'Sunken Hollow', 'Sire of Insanity', 'Tempest Djinn', 'Weapons Trainer', 'Kessig Wolf Run', 'Experimental Augury', 'Putrid Imp', 'Dead // Gone', 'Arlinn Kord', 'Tomebound Lich', 'Invisible Stalker', 'Timeless Witness', 'Boros Guildgate', 'Search for Azcanta', 'Cathedral of War', 'Syphon Life', 'Sunstrike Legionnaire', 'Myr Superion', 'Selesnya Guildgate', 'Reckless Rage', 'Cartel Aristocrat', 'Far // Away', 'Elvish Rejuvenator', 'Twinshot Sniper', 'Oath of Teferi', 'Recurring Nightmare', 'Leonin Warleader', 'Riveteers Overlook', 'Deep Analysis', 'Invoke Calamity', 'Concealing Curtains', 'Night of Souls'' Betrayal', 'Oni-Cult Anvil', 'Malcator, Purity Overseer', 'Simic Guildgate', 'Seismic Assault', 'Myth Realized', 'Venser, the Sojourner', 'Gift of Estates', 'Murderous Cut', 'Hornet Queen', 'Touch the Spirit Realm', 'Pyretic Ritual', 'Chain Lightning', 'Idyllic Tutor', 'Divinity of Pride', 'Dark-Dweller Oracle', 'Ardent Recruit', 'Search for Tomorrow', 'Stinkdrinker Bandit', 'Murmuring Bosk', 'Buried Ruin', 'Game Trail', 'Scuttling Doom Engine', 'Destiny Spinner', 'Scrying Sheets', 'Radha, Heart of Keld', 'Ghostly Flicker', 'Barbed Sextant', 'Vraska''s Contempt', 'Hinterland Harbor', 'Cathartic Reunion', 'Raise the Alarm', 'Coiling Oracle', 'Into the Story', 'Dryad Militant', 'Quest for the Holy Relic', 'Fearless Fledgling', 'Raven''s Crime', 'Cremate', 'Wonder', 'Ivy Lane Denizen', 'Sylvan Library', 'Rustvale Bridge', 'Swooping Lookout', 'Heartless Act', 'Cabal Therapist', 'Frantic Inventory', 'Kitchen Finks', 'Elderscale Wurm', 'Sheoldred''s Edict', 'Oust', 'Bitter Reunion', 'Gather the Pack', 'Thirst for Meaning', 'Repeal', 'Faerie Vandal', 'Invasion of Amonkhet', 'Thawing Glaciers', 'Nature''s Lore', 'Blood Artist', 'Shambling Vent', 'Ichorclaw Myr', 'Careful Cultivation', 'Kami of False Hope', 'Abzan Charm', 'Bilious Skulldweller', 'Scrapwork Mutt', 'Ral, Storm Conduit', 'Argentum Masticore', 'Plated Geopede', 'Jukai Naturalist', 'Kruphix''s Insight', 'Nimble Obstructionist', 'Arch of Orazca', 'Boon-Bringer Valkyrie', 'Out of Time', 'Flame Rift', 'Terrarion', 'Eiganjo Castle', 'Chandra, Flamecaller', 'Chief of the Foundry', 'Bogbrew Witch', 'Gleeful Demolition', 'Gruul Turf', 'Boreal Shelf', 'Earthquake', 'Kabira Takedown', 'Voltage Surge', 'Genesis Ultimatum', 'Bring the Ending', 'Putrefy', 'Demolition Field', 'Curiosity', 'Blanchwood Prowler', 'Aegis of the Gods', 'Runed Halo', 'Explore', 'Judge''s Familiar', 'Mesmeric Fiend', 'Nameless Inversion', 'Grave Scrabbler', 'Ogre Slumlord', 'Hypnotic Specter', 'Unlucky Witness', 'Forbidden Alchemy', 'Loxodon Smiter', 'Botanical Plaza', 'Purify the Grave', 'Changeling Outcast', 'Rift Bolt', 'Worship', 'Froghemoth', 'Cloudpost', 'Yavimaya Iconoclast', 'Combat Thresher', 'Vampire Neonate', 'Desperate Ritual', 'Voldaren Pariah', 'Elixir of Immortality', 'Simian Sling', 'Obscura Charm', 'Glacial Fortress', 'Graven Lore', 'Primal Command', 'Crawling Barrens', 'Inscribed Tablet', 'Arcbound Ravager', 'Bloodvial Purveyor', 'Mulch', 'Honor of the Pure', 'Temple of Malady', 'Jokulhaups', 'Oona, Queen of the Fae', 'Sudden Edict', 'Ayli, Eternal Pilgrim', 'Throne of the God-Pharaoh', 'Battlefield Forge', 'Invasion of Ergamon', 'Yasharn, Implacable Earth', 'Hero''s Downfall', 'Brain Freeze', 'Drake Haven', 'Kemba, Kha Enduring', 'Blood on the Snow', 'The Celestus', 'Farhaven Elf', 'Sever the Bloodline', 'Eerie Ultimatum', 'Trace of Abundance', 'Wood Elves', 'Hall of Oracles', 'Settle the Wreckage', 'White Sun''s Zenith', 'Bloodsoaked Champion', 'Battle of Wits', 'Control Magic', 'Elas il-Kor, Sadistic Pilgrim', 'Teneb, the Harvester', 'Teshar, Ancestor''s Apostle', 'Empyrial Armor', 'Sheltered Thicket', 'Knight of the White Orchid', 'Throat Slitter', 'Fact or Fiction', 'Kappa Tech-Wrecker', 'Ivory Tower', 'Smallpox', 'Hanweir Garrison', 'Bloodbraid Elf', 'Death Cloud', 'Tocasia''s Dig Site', 'Zur''s Weirding', 'Bogardan Hellkite', 'Basilisk Collar', 'Geomancer''s Gambit', 'Caldera Hellion', 'Shape Anew', 'Snow-Covered Plains', 'Elvish Visionary', 'Mausoleum Secrets', 'Oona''s Grace', 'Corrupted Conviction', 'Counterflux', 'Gloomshrieker', 'Ambush Viper', 'Silver-Fur Master', 'Aetherblade Agent', 'Assemble the Legion', 'Tectonic Edge', 'Anafenza, the Foremost', 'Gallia of the Endless Dance', 'Experimental Synthesizer', 'Goblin Bombardment', 'Barter in Blood', 'Narcomoeba', 'Squadron Hawk', 'Scarab Feast', 'Thassa''s Intervention', 'Anguished Unmaking', 'Ghitu Lavarunner', 'Frenetic Sliver', 'Breya''s Apprentice', 'Glistener Elf', 'Stir the Grave', 'Herald of the Pantheon', 'Rakdos Charm', 'Ossification', 'Mindsplice Apparatus', 'Temple of Silence', 'Drowner of Hope', 'Rise // Fall', 'Demigod of Revenge', 'Terramorphic Expanse', 'Hope of Ghirapur', 'Mastermind''s Acquisition', 'Abyssal Persecutor', 'Jwari Shapeshifter', 'Acidic Slime', 'See Beyond', 'Bone Shards', 'Altar of the Goyf', 'Dismal Backwater', 'Vault of the Archangel', 'Surge of Salvation', 'Wrench Mind', 'Canopy Vista', 'World Shaper', 'Gadrak, the Crown-Scourge', 'Choked Estuary', 'Fallaji Archaeologist', 'Sweltering Suns', 'Unmarked Grave', 'Sol Talisman', 'Invasion of Regatha', 'Angel of Despair', 'Kazandu Blademaster', 'Brave the Elements', 'Reinforced Ronin', 'Argentum Armor', 'Cliffside Lookout', 'Seal of Removal', 'Triumphant Adventurer', 'Arguel''s Blood Fast', 'Cabal Ritual', 'Oracle of Tragedy', 'Rampant Growth', 'Consult the Necrosages', 'Deafening Clarion', 'Toolcraft Exemplar', 'Nomad Outpost', 'Seal of Cleansing', 'Consuming Vapors', 'Knight of Glory', 'Ornithopter', 'Marauding Blight-Priest', 'Mistcutter Hydra', 'Llanowar Tribe', 'Ayara, First of Locthwain', 'Dimir Aqueduct', 'Brineborn Cutthroat', 'Ancient Amphitheater', 'Resurgent Belief', 'Wolfbriar Elemental', 'Reveillark', 'Hesitation', 'Ulvenwald Hydra', 'Deep Forest Hermit', 'Satyr Wayfinder', 'Akoum Hellhound', 'Marwyn, the Nurturer', 'Faith''s Reward', 'Phalanx Leader', 'Contaminated Aquifer', 'Talisman of Curiosity', 'Nine Lives', 'Disciple of Bolas', 'Lay Down Arms', 'Kumano Faces Kakkazan', 'Witching Well', 'Angel of Condemnation', 'Serra Ascendant', 'Fae of Wishes', 'Nissa, Steward of Elements', 'Izzet Boilerworks', 'Chamber Sentry', 'Surrak, the Hunt Caller', 'Ghostfire Blade', 'Mina and Denn, Wildborn', 'Colossal Skyturtle', 'Gruul Guildgate', 'Voidslime', 'Obscura Storefront', 'Corrupted Crossroads', 'Hypergenesis', 'Enchantress''s Presence', 'Elves of Deep Shadow', 'Greater Gargadon', 'Temple of Triumph', 'Shard Volley', 'Tocatli Honor Guard', 'Lingering Souls', 'Scab-Clan Berserker', 'Overgrowth', 'Titania, Protector of Argoth', 'Circular Logic', 'Disrupting Shoal', 'Scattered Groves', 'Knowledge Pool', 'Artisan of Kozilek', 'Dragon''s Hoard', 'Silverbluff Bridge', 'Terminus', 'Huatli, Radiant Champion', 'Healer''s Hawk', 'Malakir Rebirth', 'Big Game Hunter', 'Vindicate', 'Mikokoro, Center of the Sea', 'Mnemonic Sphere', 'Orzhov Basilica', 'Third Path Iconoclast', 'Satyr Hoplite', 'Dead of Winter', 'Impulse', 'Rakdos Cackler', 'Sacred Peaks', 'Of One Mind', 'Glimpse of Tomorrow', 'Ramunap Excavator', 'Felidar Retreat', 'Forbid', 'Wilt', 'Luminarch Ascension', 'Yavimaya Coast', 'Artistic Refusal', 'Feed the Swarm', 'Tymaret, Chosen from Death', 'Arbor Elf', 'Lost Legacy', 'Burning of Xinye', 'Woodland Cemetery', 'Presence of Gond', 'Erebos''s Intervention', 'Brave the Sands', 'Ruric Thar, the Unbowed', 'Nezumi Graverobber', 'Commune with the Gods', 'Tribal Flames', 'Oblivion Ring', 'Wrath of God', 'Aetherling', 'Celestial Colonnade', 'Kiora, the Crashing Wave', 'Dreadhorde Butcher', 'Rain of Tears', 'Brokers Hideout', 'Phyrexian Censor', 'Squee, Goblin Nabob', 'Sleight of Hand', 'Goblin Electromancer', 'Stone Haven Outfitter', 'Shrapnel Blast', 'Shizo, Death''s Storehouse', 'Sorin, Vengeful Bloodlord', 'Kambal, Consul of Allocation', 'River of Tears', 'Oona''s Prowler', 'Spatial Contortion', 'Xerex Strobe-Knight', 'Ashenmoor Liege', 'Chandra, Fire Artisan', 'The Seedcore', 'Dread Wanderer', 'Nephalia Drownyard', 'Ranger of Eos', 'Network Disruptor', 'Ally Encampment', 'Kogla, the Titan Ape', 'Galerider Sliver', 'Springleaf Drum', 'Stern Dismissal', 'Rise and Shine', 'Wanderwine Hub', 'Orzhov Charm', 'Doomskar', 'Strike It Rich', 'Dregscape Zombie', 'Canyon Slough', 'Gnawing Vermin', 'Tribute to Horobi', 'Delver of Secrets', 'The Flame of Keld', 'Drossforge Bridge', 'Drown in Ichor', 'Urban Evolution', 'Bubbling Muck', 'Decree of Justice', 'Festering Newt', 'Heliod''s Pilgrim', 'Xenagos, the Reveler', 'Destroy Evil', 'Grolnok, the Omnivore', 'Wasteland Strangler', 'Diffusion Sliver', 'Tangled Islet', 'Snow-Covered Mountain', 'Arbalest Engineers', 'Founding the Third Path', 'Valiant Changeling', 'Castigate', 'Fade from Memory', 'Shardless Agent', 'Prologue to Phyresis', 'Carven Caryatid', 'Commune with Spirits', 'Disallow', 'Eldrazi Displacer', 'Gruul Spellbreaker', 'Sarkhan, the Dragonspeaker', 'Thrill of Possibility', 'Valakut Exploration', 'Forgotten Cave', 'Sea-Dasher Octopus', 'Archaeomancer', 'Soltari Priest', 'Glamerdye', 'Saffi Eriksdotter', 'Pore Over the Pages', 'Lavinia of the Tenth', 'Pillar of the Paruns', 'Barbarian Ring', 'Mindcrank', 'Goldmire Bridge', 'Elspeth Conquers Death', 'Sphere of Safety', 'Martyr of Sands', 'Crux of Fate', 'Tendo Ice Bridge', 'Mistblade Shinobi', 'Delay', 'Rotting Rats', 'Yorion, Sky Nomad', 'Vedalken Heretic', 'Rune Snag', 'Combat Research', 'Tranquil Thicket', 'Din of the Fireherd', 'Rites of Spring', 'Shimmer Dragon', 'Fetid Heath', 'Mystic Monastery', 'King Darien XLVIII', 'Flaying Tendrils', 'Secluded Steppe', 'Sunblade Samurai', 'Thundermaw Hellkite', 'Approach of the Second Sun', 'Bloodchief''s Thirst', 'Obliterate', 'Mind''s Desire', 'Clifftop Retreat', 'Gigadrowse', 'Vraska''s Fall', 'Scrabbling Claws', 'Maelstrom Pulse', 'Progenitor Exarch', 'Blightbelly Rat', 'Devil''s Play', 'Mishra''s Factory', 'Lagrella, the Magpie', 'Mesa Enchantress', 'Temple of Deceit', 'Anafenza, Kin-Tree Spirit', 'Grand Abolisher', 'Patchwork Automaton', 'Mazemind Tome', 'Sultai Charm', 'Azorius Guildgate', 'Icehide Golem', 'Razortide Bridge', 'Midnight Reaper', 'Obstinate Baloth', 'Lizard Blades', 'Winds of Abandon', 'Caves of Koilos', 'Bubbling Cauldron', 'Dissipate', 'Chittering Rats', 'Grand Arbiter Augustin IV', 'Revitalize', 'Waking the Trolls', 'Needle Spires', 'Dread Return', 'Seedcradle Witch', 'Ral, Izzet Viceroy', 'Invigorate', 'Gideon''s Intervention', 'Increasing Ambition', 'Sylvan Caryatid', 'Radiant Grove', 'Prosperous Thief', 'Languish', 'Pyrite Spellbomb', 'Archon of Sun''s Grace', 'Auriok Sunchaser', 'Ancestral Blade', 'Collected Conjuring', 'Riveteers Charm', 'Zephyr Singer', 'Nezahal, Primal Tide', 'Woe Strider', 'Geothermal Bog', 'Thaumatic Compass', 'Liliana Vess', 'Doom Blade', 'Steel Overseer', 'Dark Petition', 'Tolarian Terror', 'Curse of Exhaustion', 'Kaito, Dancing Shadow', 'Return to the Ranks', 'Sprite Dragon', 'Garruk Wildspeaker', 'Dead Weight', 'Evacuation', 'Duress', 'Elvish Mystic', 'Tendrils of Agony', 'Jace, Architect of Thought', 'Shimmerdrift Vale', 'Volt Charge', 'Favored Hoplite', 'Vault Skirge', 'Felidar Cub', 'Norn''s Inquisitor', 'Quicken', 'Lurrus of the Dream-Den', 'Thraben Inspector', 'Archangel Avacyn', 'Frontier Bivouac', 'Hideous End', 'Pain Seer', 'Stoke the Flames', 'Moderation'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Stinkdrinker Bandit', 'Fact or Fiction', 'Raffine''s Informant', 'Master of Etherium', 'Go for the Throat', 'Energy Refractor', 'Disrupting Shoal', 'Seal of Fire', 'Oath of Kaya', 'Thragtusk', 'Buried Ruin', 'Knowledge Pool', 'Eldrazi Skyspawner', 'Evacuation', 'Mana Leak', 'Lavinia of the Tenth', 'Kitchen Finks', 'Big Game Hunter', 'Drowner of Hope', 'Green Sun''s Twilight', 'Sinew Sliver', 'Guile', 'Shimmerdrift Vale', 'Mortuary Mire', 'Nomad Outpost', 'Westvale Abbey', 'Phyrexian Revoker', 'Thraben Inspector', 'Pull from Tomorrow', 'Might of Old Krosa', 'Obstinate Baloth', 'Reckoner''s Bargain', 'Blue Sun''s Zenith', 'Jungle Shrine', 'Nissa, Worldwaker', 'Destiny Spinner', 'Gruul Guildgate', 'Halana and Alena, Partners', 'Jace Beleren', 'Pack Rat', 'Abundant Harvest', 'Aetherblade Agent', 'Secluded Courtyard', 'Scuttling Doom Engine', 'Nimbus Maze', 'Mystical Teachings', 'Yavimaya Coast', 'Vines of Vastwood', 'Izzet Guildgate', 'Tocatli Honor Guard', 'Cataclysmic Gearhulk', 'Memoricide', 'Spell Pierce', 'Flame Rift', 'Declaration in Stone', 'Control Magic', 'Froghemoth', 'Fracturing Gust', 'Ramunap Excavator', 'Forging the Anchor', 'Dark-Dweller Oracle', 'Demigod of Revenge', 'Jungle Hollow', 'Wrath of God', 'Mind''s Desire', 'Lightning Strike', 'Winds of Abandon', 'Toolcraft Exemplar', 'Melira, the Living Cure', 'Sandsteppe Citadel', 'Open the Armory', 'Notorious Throng', 'Orzhov Charm', 'Far // Away', 'Slogurk, the Overslime', 'Obscura Charm', 'Inscribed Tablet', 'Vapor Snag', 'Krosan Grip', 'Tribal Flames', 'Sunblade Samurai', 'Search for Azcanta', 'Sheltered Thicket', 'Commit // Memory', 'Sever the Bloodline', 'Bloodline Keeper', 'Silverblade Paladin', 'Rift Bolt', 'Godo, Bandit Warlord', 'Galerider Sliver', 'Spatial Contortion', 'Cliffside Lookout', 'Throne of the God-Pharaoh', 'Kefnet the Mindful', 'Spectral Shift', 'Graven Cairns', 'Memory Lapse', 'See Beyond', 'Dregscape Zombie', 'Rakdos''s Return', 'Spell Burst', 'Timeless Witness', 'Rampant Growth', 'Din of the Fireherd', 'Archaeomancer', 'Tangled Islet', 'Bloodchief''s Thirst', 'Erebos''s Intervention', 'Gleeful Demolition', 'Bituminous Blast', 'Disenchant', 'Abyssal Persecutor', 'Mistblade Shinobi', 'Forsake the Worldly', 'Game Trail', 'Timely Reinforcements', 'Frontier Bivouac', 'Draugr Necromancer', 'Twinshot Sniper', 'Concealing Curtains', 'Basking Rootwalla', 'The Celestus', 'Silent Gravestone', 'Invasion of Azgol', 'Obliterate', 'Frantic Search', 'Curse of Exhaustion', 'Wooded Bastion', 'Temple of Mystery', 'Ishkanah, Grafwidow', 'Barbarian Ring', 'Sweltering Suns', 'Deep Analysis', 'Bubbling Muck', 'Bubbling Cauldron', 'Tidehollow Sculler', 'Throat Slitter', 'Second Sunrise', 'Surrak, the Hunt Caller', 'Demonic Bargain', 'Vigor', 'Silundi Vision', 'Harmonize', 'Vraan, Executioner Thane', 'Terrarion', 'Restoration Angel', 'Big Score', 'Ensoul Artifact', 'Drowned Rusalka', 'Kitchen Imp', 'Rakdos Charm', 'Deafening Clarion', 'Raze to the Ground', 'Dakkon, Shadow Slayer', 'Wonder', 'Inevitable Betrayal', 'Tribute to Horobi', 'Remorseful Cleric', 'Consume the Meek', 'Vault of the Archangel', 'Scrabbling Claws', 'Moorland Haunt', 'Cleansing Wildfire', 'Grand Architect', 'Shape Anew', 'Vadrik, Astral Archmage', 'Servo Exhibition', 'Ancient Stirrings', 'Gravelgill Duo', 'Grand Abolisher', 'Nine Lives', 'Lantern-Lit Graveyard', 'Izzet Charm', 'Phoenix Chick', 'Argentum Armor', 'Stromkirk Noble', 'Vedalken Heretic', 'Festering Newt', 'Lurrus of the Dream-Den', 'Predatory Sliver', 'Cult Conscript', 'Primal Command', 'Forbidden Alchemy', 'Goblin Dark-Dwellers', 'Patchwork Automaton', 'Lost Legacy', 'Dovin''s Acuity', 'Ignite Memories', 'Steel Overseer', 'Dire-Strain Rampage', 'Fireblade Charger', 'Fallaji Archaeologist', 'Mausoleum Secrets', 'Apostle''s Blessing', 'Devious Cover-Up', 'Gutterbones', 'Okina, Temple to the Grandfathers', 'Invasion of Zendikar', 'Blessed Alliance', 'Rites of Initiation', 'Bontu''s Last Reckoning', 'Vault Skirge', 'Venser, Shaper Savant', 'Figure of Destiny', 'Rune Snag', 'Strike It Rich', 'Xenagos, the Reveler', 'Hinterland Harbor', 'Rally the Ancestors', 'Akiri, Fearless Voyager', 'Leonin Warleader', 'Chandra, Pyromaster', 'Rally the Peasants', 'Rise and Shine', 'Joint Exploration', 'Vindicate', 'Languish', 'Dead of Winter', 'Squadron Hawk', 'Tendrils of Agony', 'Feed the Swarm', 'Golgari Rot Farm', 'Voyaging Satyr', 'Ethereal Armor', 'Purify the Grave', 'Peek', 'Thrash // Threat', 'Bump in the Night', 'Felidar Cub', 'Voidwing Hybrid', 'Diffusion Sliver', 'Quiet Speculation', 'Otherworldly Journey', 'Tangle', 'Open the Gates', 'Glacial Fortress', 'Cultivate', 'Evolving Wilds', 'Jukai Naturalist', 'Mikokoro, Center of the Sea', 'Resurgent Belief', 'Galvanic Relay', 'Genesis Wave', 'Gideon Jura', 'Burst Lightning', 'Dragon''s Hoard', 'Hanweir Garrison', 'Seal of Cleansing', 'Necrogen Spellbomb', 'Myr Battlesphere', 'Dark Petition', 'Corpse Cur', 'Distorted Curiosity', 'Prophetic Prism', 'Castigate', 'Groundswell', 'Obzedat, Ghost Council', 'World Shaper', 'Bident of Thassa', 'Grolnok, the Omnivore', 'The Scorpion God', 'Urban Evolution', 'Mistvault Bridge', 'Brave the Sands', 'Treasure Cruise', 'Vexing Shusher', 'Lead the Stampede', 'Fiery Justice', 'Haunted Fengraf', 'Llanowar Elves', 'Corrupted Conviction', 'Ogre Slumlord', 'Approach of the Second Sun', 'Jwari Shapeshifter', 'Sigil of the Empty Throne', 'Assault // Battery', 'Wasteland Strangler', 'Valiant Changeling', 'Empyrial Plate', 'Banishing Slash', 'Supreme Will', 'Ghitu Lavarunner', 'Scarab Feast', 'Heliod''s Pilgrim', 'Protect the Negotiators', 'Quest for the Holy Relic', 'Electrolyze', 'Graven Lore', 'Tooth and Nail', 'Marit Lage''s Slumber', 'Azorius Guildgate', 'Tymaret, Chosen from Death', 'Consult the Necrosages', 'Thornglint Bridge', 'Hope of Ghirapur', 'Invasion of Kaladesh', 'Boreal Shelf', 'Tocasia''s Dig Site', 'Herd Migration', 'Abiding Grace', 'Viashino Pyromancer', 'Invasion of New Capenna', 'Consuming Vapors', 'Farhaven Elf', 'Gift of Estates', 'Ephara, God of the Polis', 'Sculpted Perfection', 'Anafenza, the Foremost', 'Altar of the Brood', 'Oblivion Ring', 'Repudiate // Replicate', 'Diabolic Tutor', 'Tranquil Thicket', 'Engulf the Shore', 'Brineborn Cutthroat', 'Thopter Mechanic', 'Mulch', 'Yisan, the Wanderer Bard', 'Swiftfoot Boots', 'Platinum Angel', 'Sandwurm Convergence', 'Fetid Pools', 'Canopy Vista', 'Forked Bolt', 'Smuggler''s Copter', 'Izzet Boilerworks', 'Shred Memory', 'Mystic Monastery', 'Meeting of Minds', 'Sunlit Marsh', 'Snow-Covered Mountain', 'Abundant Growth', 'Sculpting Steel', 'Fertile Ground', 'Pyretic Ritual', 'Midnight Reaper', 'Dark Prophecy', 'Rakdos Cackler', 'Radiant Grove', 'Simian Sling', 'Sacred Peaks', 'Ertai''s Scorn', 'Agonizing Remorse', 'Augur of Bolas', 'Scab-Clan Berserker', 'Doom Blade', 'Into the Roil', 'Doomskar', 'Frost Marsh', 'Bolas''s Citadel', 'Pardic Miner', 'Network Disruptor', 'Assemble the Legion', 'Canyon Slough', 'Karumonix, the Rat King', 'Dismal Backwater', 'Mothdust Changeling', 'Solitary Confinement', 'Barter in Blood', 'Ambush Viper', 'Phantasmal Image', 'Polukranos, World Eater', 'Moderation', 'Nephalia Drownyard', 'Quicken', 'Venerated Loxodon', 'Felidar Retreat', 'Worship', 'Etherium Sculptor', 'Phalanx Leader', 'Ghost Quarter', 'Graaz, Unstoppable Juggernaut', 'Kami of False Hope', 'Plated Geopede', 'Tezzeret''s Gambit', 'Commune with the Gods', 'Glistener Elf', 'Mesmeric Fiend', 'Elspeth Conquers Death', 'Talisman of Unity', 'Kessig Wolf Run', 'Darksteel Colossus', 'Night Market Lookout', 'Malicious Malfunction', 'Chief of the Foundry', 'Springleaf Drum', 'General''s Enforcer', 'Satyr Wayfinder', 'Vampire Hexmage', 'Out of Time', 'Mesa Enchantress', 'Chittering Rats', 'Summer Bloom', 'Thaumatic Compass', 'Psychic Possession', 'Misery Charm', 'Ivory Tower', 'Pharika''s Libation', 'Idyllic Tutor', 'Dimir Aqueduct', 'Temple of Triumph', 'Kogla, the Titan Ape', 'Elvish Visionary', 'Seedcradle Witch', 'Price of Progress', 'Tainted Indulgence', 'Unburial Rites', 'Cryptic Caves', 'Wolfbriar Elemental', 'Invigorate', 'Azorius Charm', 'Yawgmoth''s Bargain', 'Choked Estuary', 'Chandra, Flamecaller', 'Elas il-Kor, Sadistic Pilgrim', 'Grave Scrabbler', 'Jor Kadeen, First Goldwarden', 'Circuit Mender', 'Folio of Fancies', 'Vampiric Rites', 'Faerie Miscreant', 'Mnemonic Sphere', 'Dokuchi Silencer', 'Divinity of Pride', 'Rustvale Bridge', 'Clifftop Retreat', 'Murderous Cut', 'Possibility Storm', 'Angel of Condemnation', 'Boros Guildgate', 'Skyclave Shade', 'Sin Prodder', 'Siege Rhino', 'Fae of Wishes', 'Hypnotic Specter', 'Terramorphic Expanse', 'Wandering Fumarole', 'Fyndhorn Elves', 'Stasis Snare', 'Pore Over the Pages', 'Incinerate', 'Lose Focus', 'Silversmote Ghoul', 'Fierce Empath', 'Saproling Migration', 'Disciple of Bolas', 'Esper Charm', 'Mastermind''s Acquisition', 'Changeling Outcast', 'Venser, Corpse Puppet', 'Surge of Salvation', 'Norn''s Inquisitor', 'Ayli, Eternal Pilgrim', 'Golgari Guildgate', 'Lodestone Golem', 'Smallpox', 'Mouth of Ronom', 'Blight Mamba', 'Kappa Tech-Wrecker', 'Voidslime', 'Makeshift Mannequin', 'Oath of Teferi', 'Cathartic Reunion', 'Pain Seer', 'Bilious Skulldweller', 'Ponder', 'Combat Research', 'Cabal Initiate', 'Sylvan Caryatid', 'Dread Wanderer', 'Knight of the White Orchid', 'Thopter Spy Network', 'Armored Scrapgorger', 'Kiora, the Crashing Wave', 'Tanglepool Bridge', 'Chamber Sentry', 'Slagstorm', 'Bogbrew Witch', 'Elderscale Wurm', 'Dimensional Infiltrator', 'Secluded Steppe', 'Stupor', 'Hornet Queen', 'Ulcerate', 'Recurring Nightmare', 'Raging Ravine', 'Rites of Spring', 'Mina and Denn, Wildborn', 'Prologue to Phyresis', 'Gloomshrieker', 'Ruric Thar, the Unbowed', 'Silumgar, the Drifting Death', 'Expedite', 'Elite Inquisitor', 'Oracle of Tragedy', 'Gnawing Vermin', 'Rocco, Cabaretti Caterer', 'Blightning', 'Unctus, Grand Metatect', 'Cathedral of War', 'Mirran Crusader', 'Disallow', 'Sphere of Safety', 'Melira, Sylvok Outcast', 'Silver-Fur Master', 'Mistveil Plains', 'Auriok Sunchaser', 'Oust', 'Goblin Bombardment', 'Flametongue Kavu', 'Dead Weight', 'Graveborn Muse', 'Avacyn''s Pilgrim', 'Vampire Lacerator', 'Nature''s Lore', 'Kemba, Kha Regent', 'Demolition Field', 'Rootbound Crag', 'King Darien XLVIII', 'Kemba, Kha Enduring', 'Counterflux', 'Lagrella, the Magpie', 'Settle the Wreckage', 'Scrapwork Mutt', 'Fleecemane Lion', 'Cut Down', 'Fruit of Tizerus', 'Thirst for Meaning', 'Ayara, First of Locthwain', 'Sins of the Past', 'Teshar, Ancestor''s Apostle', 'Priest of the Haunted Edge', 'Mistcutter Hydra', 'Torens, Fist of the Angels', 'Glorybringer', 'The Flame of Keld', 'Martyr of Sands', 'Orim''s Chant', 'Woodland Cemetery', 'Blood Artist', 'Burning of Xinye', 'Radha, Heart of Keld', 'Volt Charge', 'Become Immense', 'Barbed Sextant', 'Corrupted Crossroads', 'Greater Tanuki', 'Lotus Cobra', 'Dispatch', 'Geomancer''s Gambit', 'Port Town', 'Artisan of Kozilek', 'Sarkhan, the Dragonspeaker', 'Scrapheap Scrounger', 'Ivy Lane Denizen', 'Call of the Death-Dweller', 'Call to the Grave', 'Malakir Rebirth', 'Commune with Spirits', 'Deprive', 'Dryad Militant', 'Dragonskull Summit', 'Oona''s Grace', 'Empyrial Armor', 'Death Cloud', 'Kher Keep', 'Malcator, Purity Overseer', 'Lochmere Serpent', 'Rotting Rats', 'Invisible Stalker', 'Swooping Lookout', 'Thawing Glaciers', 'Bone Shards', 'Kazandu Blademaster', 'Drowned Catacomb', 'Invasion of Ergamon', 'Victim of Night', 'Deep Forest Hermit', 'Terminus', 'Sudden Edict', 'Tilling Treefolk', 'Union of the Third Path', 'Hall of Oracles', 'Crux of Fate', 'Territorial Kavu', 'Scattered Groves', 'Llanowar Augur', 'Zuran Orb', 'Earthquake', 'Stone Haven Outfitter', 'Slagwoods Bridge', 'Grave Titan', 'Dauntless Bodyguard', 'Artistic Refusal', 'Unlucky Witness', 'Idyllic Beachfront', 'Doomed Traveler', 'Genesis Hydra', 'Mazemind Tome', 'The Underworld Cookbook', 'Nightscape Familiar', 'Mirage Mirror', 'Arguel''s Blood Fast', 'Dream Trawler', 'Arch of Orazca', 'Battlefield Forge', 'Temple of Malady', 'Murmuring Bosk', 'Soltari Priest', 'Gigadrowse', 'Divest', 'Devil''s Play', 'Dusk // Dawn', 'Racers'' Ring', 'Healer''s Hawk', 'Nezahal, Primal Tide', 'Leonin Lightscribe', 'Stubborn Denial', 'Anger of the Gods', 'Psychatog', 'Goldmire Bridge', 'Nether Spirit', 'Enchantress''s Presence', 'Sleight of Hand', 'Pariah', 'Wall of Omens', 'Dawn of Hope', 'Skyshroud Elf', 'Sylvan Library', 'Rule of Law', 'Precursor Golem', 'Slaughter Pact', 'Putrefy', 'All That Glitters', 'Smother', 'Floriferous Vinewall', 'Pharika''s Cure', 'Molten Tributary', 'Search for Tomorrow', 'Trace of Abundance', 'Unholy Heat', 'Kambal, Consul of Allocation', 'Ashen Rider', 'Chaotic Transformation', 'Archon of Sun''s Grace', 'Sprite Dragon', 'Vessel of Nascency', 'Of One Mind', 'Odds // Ends', 'Voldaren Pariah', 'Brave the Elements', 'Sphinx''s Herald', 'Vivid Marsh', 'Temple of Enlightenment', 'Combat Thresher', 'Kaito, Dancing Shadow', 'Colossal Skyturtle', 'Frenetic Sliver', 'Ranger of Eos', 'Fetid Heath', 'Dissipate', 'Valakut Exploration', 'Reflector Mage', 'Arbor Elf', 'Tezzeret, Artifice Master', 'Myr Superion', 'Giant Killer', 'Glamerdye', 'Ancient Ziggurat', 'Cremate', 'Dark Ritual', 'Bogardan Hellkite', 'Grim Haruspex', 'Karn''s Bastion', 'Jwari Disruption', 'Oona, Queen of the Fae', 'Reveillark', 'Endbringer', 'Sulfur Falls', 'Teneb, the Harvester', 'Drown in Ichor', 'Brain Freeze', 'Ghostfire Blade', 'Mindsplice Apparatus', 'Teferi, Mage of Zhalfir', 'Kozilek''s Predator', 'Garruk Wildspeaker', 'Coiling Oracle', 'Boon-Bringer Valkyrie', 'Favored Hoplite', 'Hissing Quagmire', 'Spirited Companion', 'Faerie Vandal', 'Vivid Crag', 'Crawling Barrens', 'Ghostly Flicker', 'Night of Souls'' Betrayal', 'Woodfall Primus', 'Thassa''s Intervention', 'Cauldron Familiar', 'Turnabout', 'Hypergenesis', 'Gitaxian Probe', 'Forbid', 'Archpriest of Shadows', 'Frantic Inventory', 'Touch the Spirit Realm', 'Heliod''s Intervention', 'Elixir of Immortality', 'Hada Freeblade', 'Invasion of Amonkhet', 'Forgotten Cave', 'Varolz, the Scar-Striped', 'Sigrid, God-Favored', 'Rakdos Guildgate', 'Kruphix''s Insight', 'Caves of Koilos', 'Bloodvial Purveyor', 'Fearless Fledgling', 'Skirk Prospector', 'Glimpse of Tomorrow', 'Dread Return', 'Kunoros, Hound of Athreos', 'Tectonic Edge', 'Riveteers Overlook', 'Ossification', 'Sorin, Vengeful Bloodlord', 'Midnight Guard', 'Executioner''s Capsule', 'Rix Maadi Reveler', 'Arcbound Ravager', 'Universal Automaton', 'Serra Ascendant', 'Eldrazi Displacer', 'Hour of Promise', 'Goblin Electromancer', 'Gallia of the Endless Dance', 'Blade Splicer', 'Hard Evidence', 'Flaying Tendrils', 'Eiganjo Castle', 'Faith''s Reward', 'Breya''s Apprentice', 'Drake Haven', 'Repeal', 'Herd Baloth', 'Spellweaver Helix', 'Negate', 'Orzhov Guildgate', 'Master of Death', 'Wrench Mind', 'Acidic Slime', 'Battle of Frost and Fire', 'Sunken Hollow', 'Rabbit Battery', 'Destroy Evil', 'Falkenrath Pit Fighter', 'Solemnity', 'Riveteers Charm', 'Ghostly Pilferer', 'Leonin Relic-Warder', 'Maestros Charm', 'Sin Collector', 'Porphyry Nodes', 'Razortide Bridge', 'Return to the Ranks', 'Defiant Strike', 'Duress', 'Raven''s Crime', 'Haunted Mire', 'Arbalest Engineers', 'Genesis Ultimatum', 'Gird for Battle', 'Oona''s Prowler', 'Chief Engineer', 'Mirror Entity', 'Putrid Imp', 'Yasharn, Implacable Earth', 'Sylvan Advocate', 'Delver of Secrets', 'Huatli, Radiant Champion', 'Hostage Taker', 'Day of Judgment', 'Ancestral Blade', 'Ornithopter', 'Honor of the Pure', 'Briarbridge Tracker', 'Jokulhaups', 'Gideon''s Intervention', 'Kalastria Healer', 'Nezumi Graverobber', 'Bitter Reunion', 'Crack the Earth', 'Phyrexian Censor', 'Greater Gargadon', 'Annex Sentry', 'Gateway Plaza', 'Triumphant Adventurer', 'Fight as One', 'Kitesail Freebooter', 'Sea Gate Oracle', 'Scrying Sheets', 'Stirring Wildwood', 'Inkwell Leviathan', 'Magister of Worth', 'Glimmerpost', 'Hesitation', 'Ransack the Lab', 'Check for Traps', 'Grand Arbiter Augustin IV', 'Knight of Glory', 'Summary Dismissal', 'Aegis of the Gods', 'Morsel Theft', 'Embodiment of Fury', 'Ethersworn Sphinx', 'Maze''s End', 'Geyadrone Dihada', 'Marwyn, the Nurturer', 'Reinforced Ronin', 'Simian Spirit Guide', 'Ral, Izzet Viceroy', 'Runed Halo', 'Lizard Blades', 'Gnat Miser', 'Champion of Wits', 'Arlinn Kord', 'Cloudshredder Sliver', 'Satyr Hoplite', 'Council''s Judgment', 'Myth Realized', 'Maelstrom Pulse', 'Archangel of Wrath', 'Oni-Cult Anvil', 'Blightbelly Rat', 'Anguished Unmaking', 'Angel of Serenity', 'Dimir Guildgate', 'Ichorclaw Myr', 'Hero''s Downfall', 'Chain Lightning', 'Tidespout Tyrant', 'Aether Spellbomb', 'Kor Skyfisher', 'Tempest Djinn', 'Marble Diamond', 'Knight of New Alara', 'Terastodon', 'Succumb to Temptation', 'Angel of Despair', 'Woe Strider', 'Abzan Charm', 'Pyroclasm', 'Temple of Plenty', 'Geothermal Bog', 'Ulvenwald Hydra', 'Arcane Sanctum', 'Caldera Hellion', 'Shimmer Dragon', 'Gruul Turf', 'Grenzo, Dungeon Warden', 'Time of Need', 'Kor Firewalker', 'Bloodchief Ascension', 'Vryn Wingmare', 'Dross Skullbomb', 'Angrath, the Flame-Chained', 'Sol Talisman', 'Icehide Golem', 'Eternal Scourge', 'Hooting Mandrills', 'Terminate', 'Luminarch Ascension', 'Liliana Vess', 'Stoic Rebuttal', 'Wrenn''s Resolve', 'Flooded Grove', 'Weathered Wayfarer', 'Reckless Rage', 'Lay Down Arms', 'Presence of Gond', 'Epic Experiment', 'Pyrite Spellbomb', 'Kiora Bests the Sea God', 'Gift of Immortality', 'Rust Goliath', 'Voltage Surge', 'Dakmor Salvage', 'Llanowar Tribe', 'Narcomoeba', 'Frostwalk Bastion', 'Founding the Third Path', 'Commence the Endgame', 'Wilt', 'Dying to Serve', 'Marauding Blight-Priest', 'Scour All Possibilities', 'Ancient Amphitheater', 'Ral, Storm Conduit', 'Selesnya Guildgate', 'River of Tears', 'Blanchwood Prowler', 'Merciless Eviction', 'Frost Titan', 'Explore', 'Ardent Recruit', 'Archangel Avacyn', 'Cabal Ritual', 'Experimental Synthesizer', 'Ashnod, Flesh Mechanist', 'Llanowar Mentor', 'Koth, Fire of Resistance', 'Zephyr Singer', 'Argentum Masticore', 'Akoum Hellhound', 'Shriekmaw', 'Staff of Domination', 'Phyrexian Unlife', 'Steppe Lynx', 'Ashenmoor Liege', 'Ovika, Enigma Goliath', 'Gilt-Leaf Archdruid', 'Stir the Grave', 'Phyrexian Dreadnought', 'Archfiend''s Vessel', 'Careful Cultivation', 'Glint-Sleeve Siphoner', 'Kumano Faces Kakkazan', 'Sinister Concoction', 'Timeless Dragon', 'Aetherspouts', 'Lightning Spear', 'General Ferrous Rokiric', 'Vivid Grove', 'Revitalize', 'Carven Caryatid', 'Faeburrow Elder', 'Obscura Storefront', 'Darksteel Citadel', 'Tendo Ice Bridge', 'Judge''s Familiar', 'Syphon Life', 'Weapons Trainer', 'Helm of the Host', 'Elvish Rejuvenator', 'Elves of Deep Shadow', 'Sign in Blood', 'Alms of the Vein', 'Loxodon Smiter', 'Shivan Reef', 'Shardless Agent', 'Drossforge Bridge', 'Nimble Trapfinder', 'Increasing Ambition', 'Ravenous Squirrel', 'Delay', 'Tresserhorn Sinks', 'Chandra, Fire Artisan', 'Sea-Dasher Octopus', 'Tribute to Hunger', 'Smoldering Marsh', 'Brokers Hideout', 'Fumigate', 'Dreadhorde Butcher', 'Duplicant', 'White Sun''s Zenith', 'Elvish Archdruid', 'Altar of the Goyf', 'Shaman of the Pack', 'Stern Dismissal', 'Grafted Butcher', 'Yahenni''s Expertise', 'Snow-Covered Swamp', 'Elvish Mystic', 'Sunstrike Legionnaire', 'Yavimaya Iconoclast', 'Altered Ego', 'Temple of Deceit', 'Snow-Covered Plains', 'Blood on the Snow', 'Seeker of the Way', 'Nullpriest of Oblivion', 'Arcum''s Astrolabe', 'Cartel Aristocrat', 'Monument to Perfection', 'Tear Asunder', 'Vraska''s Fall', 'Ammit Eternal', 'Isolated Chapel', 'Vraska''s Contempt', 'Shambling Vent', 'Raise the Alarm', 'Jace, Architect of Thought', 'Lingering Souls', 'Invoke Calamity', 'Needle Spires', 'Sarkhan the Masterless', 'Thundermaw Hellkite', 'Seismic Assault', 'Leonin Arbiter', 'Nimble Obstructionist', 'Squee, Goblin Nabob', 'Saffi Eriksdotter', 'Basilisk Collar', 'Crawling Chorus', 'Nameless Inversion', 'Tomebound Lich', 'Thrill of Possibility', 'Knight of the Reliquary', 'Expedition Envoy', 'Talisman of Curiosity', 'Contaminated Aquifer', 'Ally Encampment', 'Titania, Protector of Argoth', 'Mindcrank', 'Hieroglyphic Illumination', 'Pillar of the Paruns', 'Zur''s Weirding', 'Curiosity', 'Hideous End', 'Silverbluff Bridge', 'Wood Elves', 'Heartless Act', 'Temple of Silence', 'Brainstone', 'Anafenza, Kin-Tree Spirit', 'Shard Volley', 'Moon-Circuit Hacker', 'Orcish Lumberjack', 'Elemental Masterpiece', 'Dead // Gone', 'Empty the Warrens', 'Cabaretti Courtyard', 'Opulent Palace', 'Condemn', 'Orzhov Basilica', 'Ezuri, Renegade Leader', 'Xerex Strobe-Knight', 'Verduran Enchantress', 'Wild Cantor', 'Viscera Seer', 'Bloodsoaked Champion', 'Heap Doll', 'Rise // Fall', 'Murderous Redcap', 'Blazing Rootwalla', 'Mulldrifter', 'Temple of Abandon', 'Evangel of Synthesis', 'Akroan Crusader', 'Stoke the Flames', 'Decree of Justice', 'Sunpetal Grove', 'Farseek', 'Nekrataal', 'Madcap Experiment', 'Venser, the Sojourner', 'Waking the Trolls', 'Eerie Ultimatum', 'Hyena Umbra', 'Commune with Nature', 'Mindslaver', 'Aetherling', 'Angel of Grace', 'Detention Sphere', 'Lazotep Chancellor', 'Baneful Omen', 'Ground Seal', 'Dreams of Steel and Oil', 'Unmarked Grave', 'Shizo, Death''s Storehouse', 'Upheaval', 'Simic Guildgate', 'Oracle of Mul Daya', 'Sultai Charm', 'Nested Shambler', 'Vampire Nighthawk', 'Third Path Iconoclast', 'The Seedcore', 'Tolarian Terror', 'Kjeldoran Outpost', 'Drainpipe Vermin', 'Celestial Colonnade', 'Change the Equation', 'Mishra''s Factory', 'Witching Well', 'Gather the Pack', 'Overgrowth', 'Rain of Tears', 'Herald of the Pantheon', 'Cloudpost', 'Fade from Memory', 'Sterling Grove', 'Into the Story', 'Invasion of Regatha', 'Yorion, Sky Nomad', 'Wayward Guide-Beast', 'Benevolent Bodyguard', 'Seal of Removal', 'Vampire Neonate', 'Cabal Therapist', 'Bloodbraid Elf', 'Lavaclaw Reaches', 'Prosperous Thief', 'Shrapnel Blast', 'Zombie Infestation', 'Discovery // Dispersal', 'Reckless Charge', 'Sheoldred''s Edict', 'Silumgar''s Scorn', 'Wizard''s Retort', 'Stinkweed Imp', 'Seething Song', 'Progenitor Exarch', 'Utter End', 'Sire of Insanity', 'Nevermore', 'Collected Conjuring', 'Whispersilk Cloak', 'Thornwood Falls', 'Battle of Wits', 'Fiery Temper', 'Duneblast', 'Tyrant''s Choice', 'Black Sun''s Zenith', 'Halimar Excavator', 'Gadrak, the Crown-Scourge', 'Desperate Ritual', 'Fire Prophecy', 'Impulse', 'Eidolon of Blossoms', 'Stone Rain', 'Gruul Spellbreaker', 'Botanical Plaza', 'Kabira Takedown', 'Nissa, Steward of Elements', 'Nimble Larcenist', 'Think Twice', 'Kaya, Ghost Assassin', 'Wanderwine Hub', 'Exclude', 'Experimental Augury', 'Late to Dinner', 'Circular Logic', 'Bring the Ending', 'Birds of Paradise'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Faerie Miscreant', 'Satyr Hoplite', 'Elderscale Wurm', 'Divinity of Pride', 'Slogurk, the Overslime', 'Akroan Crusader', 'Annex Sentry', 'Thopter Mechanic', 'Izzet Guildgate', 'Enchantress''s Presence', 'Snow-Covered Mountain', 'Merfolk Sovereign', 'Draugr Necromancer', 'Dispatch', 'Lurrus of the Dream-Den', 'Invasion of Azgol', 'Dire-Strain Rampage', 'Gather the Townsfolk', 'Rustvale Bridge', 'Upheaval', 'Makeshift Mannequin', 'Golgari Rot Farm', 'Chandra, Fire Artisan', 'Vessel of Nascency', 'Putrefy', 'Phalanx Leader', 'Hideous End', 'Forbidden Alchemy', 'Pain Seer', 'Azorius Charm', 'Gruul Guildgate', 'Tyrant''s Choice', 'Sunblade Samurai', 'Sudden Edict', 'Tectonic Edge', 'Gateway Plaza', 'Kabira Takedown', 'Vault of the Archangel', 'Territorial Kavu', 'All That Glitters', 'Kitchen Finks', 'Kiora Bests the Sea God', 'Archon of Sun''s Grace', 'Rakdos Cackler', 'Collected Conjuring', 'Rites of Spring', 'Saffi Eriksdotter', 'Witching Well', 'Rise and Shine', 'Satyr Wayfinder', 'Glorybringer', 'Sea-Dasher Octopus', 'Invasion of Kaladesh', 'Melira, Sylvok Outcast', 'Search for Azcanta', 'Invasion of Amonkhet', 'Gift of Immortality', 'Solemnity', 'Rain of Tears', 'Aetherspouts', 'Flame Rift', 'Whispersilk Cloak', 'Volt Charge', 'Fight as One', 'Weapons Trainer', 'Brain Freeze', 'Arch of Orazca', 'Pore Over the Pages', 'Valiant Changeling', 'Argentum Armor', 'Botanical Plaza', 'Dakkon, Shadow Slayer', 'Gather the Pack', 'Corrupted Crossroads', 'Norn''s Inquisitor', 'Unsubstantiate', 'Nameless Inversion', 'Anafenza, the Foremost', 'Fiery Temper', 'Mwonvuli Acid-Moss', 'Etherium Sculptor', 'Jace Beleren', 'Anger of the Gods', 'Smallpox', 'Mausoleum Secrets', 'Ulcerate', 'Stir the Grave', 'Network Disruptor', 'Repudiate // Replicate', 'Bring the Ending', 'Thornglint Bridge', 'Aegis of the Gods', 'Arbalest Engineers', 'Vampire Lacerator', 'Deep Analysis', 'Talisman of Curiosity', 'Grand Architect', 'Felidar Cub', 'Venser, Corpse Puppet', 'Fetid Heath', 'Titania, Protector of Argoth', 'Raven''s Crime', 'Duress', 'Canopy Vista', 'Terramorphic Expanse', 'Darksteel Colossus', 'Kazandu Blademaster', 'Yawgmoth''s Bargain', 'Ivory Tower', 'Sins of the Past', 'Scarab Feast', 'Swooping Lookout', 'Karumonix, the Rat King', 'Ishkanah, Grafwidow', 'Founding the Third Path', 'Forbid', 'Quicken', 'Abiding Grace', 'Rotting Rats', 'Scattered Groves', 'Corrupted Conviction', 'Heliod''s Pilgrim', 'Garruk Wildspeaker', 'Nezahal, Primal Tide', 'General''s Enforcer', 'Devious Cover-Up', 'Inevitable Betrayal', 'Second Sunrise', 'Racers'' Ring', 'Herald of the Pantheon', 'Basking Rootwalla', 'Tresserhorn Sinks', 'Seal of Fire', 'Yavimaya Coast', 'Empyrial Armor', 'Eternal Scourge', 'Kher Keep', 'Bubbling Cauldron', 'Jungle Shrine', 'Vryn Wingmare', 'Third Path Iconoclast', 'Dread Wanderer', 'Fallaji Archaeologist', 'Gnawing Vermin', 'Jwari Disruption', 'Consult the Necrosages', 'Peek', 'Barter in Blood', 'Memory Lapse', 'Dreadhorde Butcher', 'Kruphix''s Insight', 'Nissa, Steward of Elements', 'Shape Anew', 'Marble Diamond', 'Recurring Nightmare', 'Nezumi Shortfang', 'Angel of Serenity', 'Stoic Rebuttal', 'Favored Hoplite', 'Nephalia Drownyard', 'Shard Volley', 'Check for Traps', 'Throat Slitter', 'Smoldering Marsh', 'Blood Artist', 'Merfolk Mistbinder', 'Hornet Queen', 'Phyrexian Unlife', 'Thraben Inspector', 'Phyrexian Revoker', 'Bloodchief''s Thirst', 'Vexing Shusher', 'Orzhov Guildgate', 'Vadrik, Astral Archmage', 'Dokuchi Silencer', 'Shriekmaw', 'Epic Experiment', 'Circuit Mender', 'Protect the Negotiators', 'Castigate', 'Terastodon', 'Cryptic Caves', 'Hinterland Harbor', 'Sin Prodder', 'Rule of Law', 'Earthquake', 'Lantern-Lit Graveyard', 'Fade from Memory', 'Oust', 'Breya''s Apprentice', 'Mystic Monastery', 'Grolnok, the Omnivore', 'Drake Haven', 'Temple of Plenty', 'Chittering Rats', 'Tribute to Hunger', 'Liliana Vess', 'Lavinia of the Tenth', 'Dying to Serve', 'Temple of Deceit', 'Of One Mind', 'Gird for Battle', 'Temple of Triumph', 'Monument to Perfection', 'Cloudshredder Sliver', 'Fruit of Tizerus', 'Tocasia''s Dig Site', 'Wandering Fumarole', 'Artistic Refusal', 'Condemn', 'Vampire Neonate', 'Rootbound Crag', 'Sculpted Perfection', 'Blight Mamba', 'Explore', 'Huatli, Radiant Champion', 'Shizo, Death''s Storehouse', 'Tidehollow Sculler', 'Desperate Ritual', 'Mistcutter Hydra', 'Phantasmal Image', 'Dread Return', 'Lightning Strike', 'Discovery // Dispersal', 'Precursor Golem', 'Greater Tanuki', 'Azorius Guildgate', 'Stinkdrinker Bandit', 'Decree of Justice', 'Woodfall Primus', 'Deep Forest Hermit', 'Mistblade Shinobi', 'Sylvan Caryatid', 'Repeal', 'Unctus, Grand Metatect', 'Nezumi Informant', 'Figure of Destiny', 'Eldrazi Displacer', 'Changeling Outcast', 'Boros Guildgate', 'Orzhov Basilica', 'Maze''s End', 'Quest for the Holy Relic', 'Stinkweed Imp', 'Servo Exhibition', 'Blue Sun''s Zenith', 'Hissing Quagmire', 'Mana Leak', 'Silent Gravestone', 'Flaying Tendrils', 'Mulch', 'Augur of Bolas', 'Sculpting Steel', 'Stirring Wildwood', 'Tendo Ice Bridge', 'Glint-Sleeve Siphoner', 'Bloodbraid Elf', 'Venser, Shaper Savant', 'Elemental Masterpiece', 'Varolz, the Scar-Striped', 'Dead Weight', 'Polukranos, World Eater', 'Possibility Storm', 'Fiery Justice', 'Ramunap Excavator', 'Increasing Ambition', 'Bitter Reunion', 'Temple of Silence', 'Crux of Fate', 'Mystical Teachings', 'Divest', 'Basilisk Collar', 'Voltage Surge', 'Dregscape Zombie', 'Cultivate', 'Vivid Marsh', 'Bone Shards', 'Voyaging Satyr', 'Pillar of the Paruns', 'Oracle of Mul Daya', 'Arbor Elf', 'Battle of Frost and Fire', 'Thornwood Falls', 'Prosperous Thief', 'Bloodchief Ascension', 'Sea Gate Oracle', 'Empyrial Plate', 'Prophetic Prism', 'Venerated Loxodon', 'Commune with Spirits', 'Stoke the Flames', 'Barbarian Ring', 'Dryad Militant', 'Incinerate', 'Greater Gargadon', 'Curse of Exhaustion', 'Oblivion Ring', 'Mikokoro, Center of the Sea', 'Twinshot Sniper', 'Xerex Strobe-Knight', 'Death Cloud', 'Cut Down', 'Thrill of Possibility', 'Assault // Battery', 'Obscura Storefront', 'Angel of Condemnation', 'Geomancer''s Gambit', 'Tranquil Thicket', 'Forging the Anchor', 'King Darien XLVIII', 'Doom Blade', 'Merciless Eviction', 'Silverblade Paladin', 'Bubbling Muck', 'Birds of Paradise', 'Supreme Will', 'Fetid Pools', 'Tainted Indulgence', 'Seething Song', 'Nested Shambler', 'Thopter Spy Network', 'Ghost Quarter', 'Plated Geopede', 'Resolute Reinforcements', 'Seal of Removal', 'Sign in Blood', 'Idyllic Tutor', 'Carven Caryatid', 'Phoenix Chick', 'Buried Ruin', 'Ancient Amphitheater', 'Otherworldly Journey', 'Abzan Charm', 'Kozilek''s Predator', 'Mastermind''s Acquisition', 'Rust Goliath', 'Ashenmoor Liege', 'Esper Charm', 'Knight of the Reliquary', 'Seismic Assault', 'Combat Thresher', 'Sylvan Advocate', 'Izzet Charm', 'Rocco, Cabaretti Caterer', 'Cartel Aristocrat', 'Surrak, the Hunt Caller', 'Jwari Shapeshifter', 'Invisible Stalker', 'Lotus Cobra', 'Kiora, the Crashing Wave', 'Gigadrowse', 'Porphyry Nodes', 'Trace of Abundance', 'Woe Strider', 'Ulvenwald Hydra', 'Sandwurm Convergence', 'Tanglepool Bridge', 'Late to Dinner', 'Drowner of Hope', 'Terrarion', 'Grave Scrabbler', 'Dark-Dweller Oracle', 'Lingering Souls', 'Careful Cultivation', 'Abyssal Persecutor', 'Big Score', 'Viashino Pyromancer', 'Ambush Viper', 'Reckless Charge', 'Goldmire Bridge', 'Oona''s Grace', 'Groundswell', 'Leonin Warleader', 'Vines of Vastwood', 'Armored Scrapgorger', 'Night Market Lookout', 'Timeless Dragon', 'Hypergenesis', 'Wanderwine Hub', 'Cremate', 'Caves of Koilos', 'Obscura Charm', 'Kitchen Imp', 'Champion of Wits', 'Delay', 'Dauntless Bodyguard', 'Vigor', 'Simian Spirit Guide', 'Invigorate', 'Dusk // Dawn', 'Engulf the Shore', 'Vraan, Executioner Thane', 'Reflector Mage', 'Kefnet the Mindful', 'Genesis Ultimatum', 'Wilt', 'Demolition Field', 'Luminarch Ascension', 'Call to the Grave', 'Arcbound Ravager', 'Teneb, the Harvester', 'Into the Story', 'Contaminated Aquifer', 'Brainstone', 'Vedalken Heretic', 'Grave Titan', 'Simic Guildgate', 'Cathartic Reunion', 'Gideon Jura', 'Pack Rat', 'Orcish Lumberjack', 'Heartless Act', 'Sleight of Hand', 'Alms of the Vein', 'Reckoner''s Bargain', 'Moorland Haunt', 'Ashen Rider', 'Council''s Judgment', 'Sandsteppe Citadel', 'Restoration Angel', 'Steel Overseer', 'Fireblade Charger', 'Hada Freeblade', 'Radiant Grove', 'Silundi Vision', 'Oath of Kaya', 'Thragtusk', 'Woodland Cemetery', 'Graven Cairns', 'Seal of Cleansing', 'Pyretic Ritual', 'Commit // Memory', 'Experimental Augury', 'Elves of Deep Shadow', 'Commune with the Gods', 'Fertile Ground', 'Invasion of Regatha', 'Night of Souls'' Betrayal', 'Caldera Hellion', 'Venser, the Sojourner', 'Curious Homunculus', 'Nimbus Maze', 'Duplicant', 'Kunoros, Hound of Athreos', 'Joint Exploration', 'Cabal Therapist', 'Heliod''s Intervention', 'Dawn of Hope', 'Dimir Aqueduct', 'Squadron Hawk', 'Halana and Alena, Partners', 'Valakut Exploration', 'Ignite Memories', 'Archangel Avacyn', 'Evolving Wilds', 'Solitary Confinement', 'Rally the Peasants', 'Xenagos, the Reveler', 'Cabaretti Courtyard', 'Ancient Ziggurat', 'Riveteers Charm', 'Deeproot Waters', 'Pardic Miner', 'Phyrexian Censor', 'Dovin''s Acuity', 'Port Town', 'Obstinate Baloth', 'Bituminous Blast', 'Might of Old Krosa', 'Seeker of the Way', 'Knowledge Pool', 'Ayli, Eternal Pilgrim', 'Apostle''s Blessing', 'Glistener Elf', 'Rakdos Charm', 'Gutterbones', 'Stone Haven Outfitter', 'Day of Judgment', 'Sweltering Suns', 'Circular Logic', 'Healer''s Hawk', 'Distorted Curiosity', 'Skirk Prospector', 'Academy Loremaster', 'Siege Rhino', 'Scrapheap Scrounger', 'Sheoldred''s Edict', 'Oona, Queen of the Fae', 'Sigil of the Empty Throne', 'Vivid Grove', 'Gnat Miser', 'Sultai Charm', 'Ensoul Artifact', 'Dross Skullbomb', 'Ranger of Eos', 'Dark Prophecy', 'Control Magic', 'Slip Out the Back', 'Cataclysmic Gearhulk', 'Faeburrow Elder', 'Strike It Rich', 'Unmarked Grave', 'Wayward Guide-Beast', 'Ghitu Lavarunner', 'Wolfbriar Elemental', 'Kambal, Consul of Allocation', 'Genesis Hydra', 'Hyena Umbra', 'Geothermal Bog', 'Union of the Third Path', 'Raise the Alarm', 'Predatory Sliver', 'Archangel of Wrath', 'Silumgar''s Scorn', 'Tribal Flames', 'Boon-Bringer Valkyrie', 'Putrid Imp', 'Pyroclasm', 'Combat Research', 'Corpse Cur', 'Assemble the Legion', 'Geyadrone Dihada', 'Bloodvial Purveyor', 'Leonin Relic-Warder', 'Touch the Spirit Realm', 'Skyshroud Elf', 'Become Immense', 'Devil''s Play', 'Moderation', 'Cloudpost', 'Lazotep Chancellor', 'Heap Doll', 'Lightning Spear', 'Sunstrike Legionnaire', 'Sphinx''s Herald', 'Sylvan Library', 'Game Trail', 'Mirran Crusader', 'Faerie Vandal', 'Inscribed Tablet', 'Crawling Barrens', 'Grenzo, Dungeon Warden', 'Embodiment of Fury', 'Westvale Abbey', 'Altar of the Goyf', 'Dragon''s Hoard', 'Benthic Biomancer', 'Black Sun''s Zenith', 'Think Twice', 'Patchwork Automaton', 'Talisman of Unity', 'Farhaven Elf', 'Shardless Agent', 'Expedition Envoy', 'Genesis Wave', 'Sacred Peaks', 'Ertai''s Scorn', 'Yasharn, Implacable Earth', 'Cult Conscript', 'Price of Progress', 'Reckless Rage', 'Commune with Nature', 'Obliterate', 'Tendrils of Agony', 'Tear Asunder', 'Inkwell Leviathan', 'Dreams of Steel and Oil', 'Expedite', 'Fae of Wishes', 'Time of Need', 'Forsake the Worldly', 'Silumgar, the Drifting Death', 'Galerider Sliver', 'Wall of Omens', 'Tangled Islet', 'Disenchant', 'Gruul Spellbreaker', 'Terminate', 'Burst Lightning', 'Blightning', 'Grim Haruspex', 'Spell Pierce', 'Ornithopter', 'Wooded Bastion', 'Shrapnel Blast', 'Ghostly Pilferer', 'Grand Arbiter Augustin IV', 'Nullpriest of Oblivion', 'Giant Killer', 'Vault Skirge', 'Negate', 'Serra Ascendant', 'Oath of Teferi', 'Destiny Spinner', 'Nissa, Worldwaker', 'Yisan, the Wanderer Bard', 'Sorin, Vengeful Bloodlord', 'Mindslaver', 'Kaito, Dancing Shadow', 'White Sun''s Zenith', 'Brave the Sands', 'Sheltered Thicket', 'Nature''s Lore', 'Commence the Endgame', 'Yorion, Sky Nomad', 'Vapor Snag', 'Graveborn Muse', 'Jokulhaups', 'Dark Ritual', 'Pharika''s Libation', 'Grafted Butcher', 'Tocatli Honor Guard', 'Stone Rain', 'Judge''s Familiar', 'Lay Down Arms', 'Pillage', 'Stasis Snare', 'Fierce Empath', 'Jace, Architect of Thought', 'Secluded Courtyard', 'Frost Marsh', 'Cabal Initiate', 'Snow-Covered Swamp', 'Malakir Rebirth', 'Ephara, God of the Polis', 'Mirage Mirror', 'Mind''s Desire', 'Marwyn, the Nurturer', 'Scrying Sheets', 'Unholy Heat', 'Mouth of Ronom', 'Purify the Grave', 'Arcum''s Astrolabe', 'Detention Sphere', 'Rune Snag', 'Jukai Naturalist', 'Isolated Chapel', 'Chief Engineer', 'Shred Memory', 'Sinister Concoction', 'Anguished Unmaking', 'Karn''s Bastion', 'Snow-Covered Plains', 'Battle of Wits', 'Tidespout Tyrant', 'Exclude', 'Primal Command', 'Knight of the White Orchid', 'Bident of Thassa', 'Arcane Sanctum', 'Vampire Nighthawk', 'Cauldron Familiar', 'Gideon''s Intervention', 'Destroy Evil', 'Priest of the Haunted Edge', 'Wizard''s Retort', 'Glimmerpost', 'Choked Estuary', 'Spell Burst', 'Springleaf Drum', 'Eerie Ultimatum', 'Malicious Malfunction', 'Voldaren Pariah', 'Evangel of Synthesis', 'Ashnod, Flesh Mechanist', 'Scuttling Doom Engine', 'Rakdos''s Return', 'Return to the Ranks', 'Auriok Sunchaser', 'Ancient Stirrings', 'The Flame of Keld', 'Ransack the Lab', 'Rix Maadi Reveler', 'Honor of the Pure', 'Dead // Gone', 'Blood on the Snow', 'Bolas''s Citadel', 'Rift Bolt', 'Agonizing Remorse', 'Argentum Masticore', 'Thundermaw Hellkite', 'Lizard Blades', 'Festering Newt', 'Mortuary Mire', 'Llanowar Elves', 'Graaz, Unstoppable Juggernaut', 'Okina, Temple to the Grandfathers', 'Folio of Fancies', 'Elas il-Kor, Sadistic Pilgrim', 'Meeting of Minds', 'Teferi, Mage of Zhalfir', 'Bogbrew Witch', 'Murderous Redcap', 'Open the Gates', 'Settle the Wreckage', 'Silversmote Ghoul', 'Idyllic Beachfront', 'Ethersworn Sphinx', 'Spectral Procession', 'Hall of Oracles', 'Mesmeric Fiend', 'Doomskar', 'Shivan Reef', 'Blessed Alliance', 'Reinforced Ronin', 'Weathered Wayfarer', 'Izzet Boilerworks', 'Dead of Winter', 'Graven Lore', 'Boreal Shelf', 'Eidolon of Blossoms', 'Chandra, Pyromaster', 'Moon-Circuit Hacker', 'Stupor', 'Llanowar Tribe', 'Sarkhan, the Dragonspeaker', 'Felidar Retreat', 'Jungle Hollow', 'Malcator, Purity Overseer', 'Glimpse of Tomorrow', 'Gitaxian Probe', 'Kitesail Freebooter', 'Open the Armory', 'Gadrak, the Crown-Scourge', 'Delver of Secrets', 'Obzedat, Ghost Council', 'Empty the Warrens', 'Tribute to Horobi', 'Presence of Gond', 'Angrath, the Flame-Chained', 'Melira, the Living Cure', 'Lavaclaw Reaches', 'Concealing Curtains', 'Duneblast', 'Wood Elves', 'Harmonize', 'Voidslime', 'Raging Ravine', 'Goblin Electromancer', 'Universal Automaton', 'Tomebound Lich', 'Bilious Skulldweller', 'Kjeldoran Outpost', 'Resurgent Belief', 'Briarbridge Tracker', 'Slaughter Pact', 'Myth Realized', 'Vraska''s Contempt', 'Galvanic Relay', 'Temple of Mystery', 'Kessig Wolf Run', 'Jor Kadeen, First Goldwarden', 'Drainpipe Vermin', 'Timeless Witness', 'Abundant Growth', 'Gloomshrieker', 'Torens, Fist of the Angels', 'Pharika''s Cure', 'Aetherling', 'Tangle', 'Seedcradle Witch', 'Arlinn Kord', 'Tolarian Terror', 'Leonin Arbiter', 'Angel of Grace', 'Dakmor Salvage', 'Dragonskull Summit', 'Simian Sling', 'Sulfur Falls', 'Ponder', 'Acidic Slime', 'Impulse', 'Toolcraft Exemplar', 'Floriferous Vinewall', 'Needle Spires', 'Unburial Rites', 'Summary Dismissal', 'Farseek', 'Mnemonic Sphere', 'Glacial Fortress', 'Fracturing Gust', 'Marit Lage''s Slumber', 'Flooded Grove', 'Necrogen Spellbomb', 'Invasion of New Capenna', 'Darksteel Citadel', 'Hanweir Garrison', 'Faith''s Reward', 'Invasion of Ergamon', 'Shambling Vent', 'Overgrowth', 'Narcomoeba', 'Ovika, Enigma Goliath', 'Kemba, Kha Regent', 'Oracle of Tragedy', 'Midnight Reaper', 'Staff of Domination', 'Godo, Bandit Warlord', 'Chandra, Flamecaller', 'Fire Prophecy', 'Arguel''s Blood Fast', 'Consume the Meek', 'Nimble Trapfinder', 'Rakdos Guildgate', 'Triumphant Adventurer', 'Zuran Orb', 'Syphon Life', 'Dissipate', 'Bump in the Night', 'Throne of the God-Pharaoh', 'Stromkirk Noble', 'Eiganjo Castle', 'Eldrazi Skyspawner', 'Gilt-Leaf Archdruid', 'Tooth and Nail', 'Sol Talisman', 'Nomad Outpost', 'Mulldrifter', 'Chief of the Foundry', 'Sire of Insanity', 'Lochmere Serpent', 'Gruul Turf', 'Cabal Ritual', 'Thassa''s Intervention', 'Deprive', 'Runed Halo', 'Avacyn''s Pilgrim', 'Utter End', 'Shaman of the Pack', 'Drossforge Bridge', 'Helm of the Host', 'Din of the Fireherd', 'Sphere of Safety', 'Sterling Grove', 'Zombie Infestation', 'Barbed Sextant', 'Silver-Fur Master', 'Sinew Sliver', 'Fyndhorn Elves', 'Mindsplice Apparatus', 'Merrow Reejerey', 'Demonic Bargain', 'Drowned Catacomb', 'Orim''s Chant', 'See Beyond', 'Akoum Hellhound', 'Terminus', 'Evacuation', 'Shrieking Affliction', 'Invoke Calamity', 'Tezzeret''s Gambit', 'Zur''s Weirding', 'Disallow', 'Dimir Guildgate', 'Maelstrom Pulse', 'Myr Superion', 'Ezuri, Renegade Leader', 'Fumigate', 'Hostage Taker', 'Verduran Enchantress', 'Lead the Stampede', 'Vampire Hexmage', 'Mistveil Plains', 'Lost Legacy', 'Drown in Ichor', 'Disciple of Bolas', 'Elvish Rejuvenator', 'Knight of New Alara', 'Tempest Djinn', 'Falkenrath Pit Fighter', 'General Ferrous Rokiric', 'Sunlit Marsh', 'Hope of Ghirapur', 'Llanowar Augur', 'Ossification', 'Gift of Estates', 'Waking the Trolls', 'Marauding Blight-Priest', 'Odds // Ends', 'Sarkhan the Masterless', 'Erebos''s Intervention', 'Spellweaver Helix', 'Gravelgill Duo', 'Squee, Goblin Nabob', 'Molten Tributary', 'Secluded Steppe', 'Executioner''s Capsule', 'Wild Cantor', 'Vampiric Rites', 'Ivy Lane Denizen', 'Gleeful Demolition', 'Opulent Palace', 'Dark Petition', 'Timely Reinforcements', 'Experimental Synthesizer', 'Raze to the Ground', 'Sin Collector', 'Fleecemane Lion', 'Slagwoods Bridge', 'Nekrataal', 'Diffusion Sliver', 'Glamerdye', 'Steppe Lynx', 'Ayara, First of Locthwain', 'Change the Equation', 'Ground Seal', 'Coiling Oracle', 'Goblin Dark-Dwellers', 'Murmuring Bosk', 'Aether Spellbomb', 'Surge of Salvation', 'Myr Battlesphere', 'Fearless Fledgling', 'Mindcrank', 'Maestros Charm', 'Ethereal Armor', 'Hooting Mandrills', 'Nine Lives', 'Elvish Archdruid', 'Aetherblade Agent', 'Ruric Thar, the Unbowed', 'Pull from Tomorrow', 'Oona''s Prowler', 'Wrench Mind', 'The Scorpion God', 'Master of Death', 'Wrenn''s Resolve', 'Mirror Entity', 'Haunted Fengraf', 'Smother', 'Spirited Companion', 'Anafenza, Kin-Tree Spirit', 'Goblin Bombardment', 'Ally Encampment', 'Wonder', 'Forgotten Cave', 'Hard Evidence', 'Prologue to Phyresis', 'Precinct Captain', 'Search for Tomorrow', 'Ghostfire Blade', 'Herd Baloth', 'Mazemind Tome', 'Wasteland Strangler', 'Celestial Colonnade', 'Deafening Clarion', 'Ancestral Blade', 'Nightscape Familiar', 'Out of Time', 'Thawing Glaciers', 'Winds of Abandon', 'Mesa Enchantress', 'Elite Inquisitor', 'Archaeomancer', 'Kaya, Ghost Assassin', 'Fact or Fiction', 'Loxodon Smiter', 'Krosan Grip', 'Rally the Ancestors', 'Gallia of the Endless Dance', 'Stern Dismissal', 'Cathedral of War', 'Endbringer', 'Abundant Harvest', 'Kor Firewalker', 'Ichorclaw Myr', 'Lose Focus', 'Languish', 'Harbinger of the Tides', 'Tymaret, Chosen from Death', 'Mothdust Changeling', 'Leonin Lightscribe', 'Frenetic Sliver', 'Cliffside Lookout', 'Guile', 'World Shaper', 'Kalastria Healer', 'Elvish Mystic', 'Go for the Throat', 'Remorseful Cleric', 'Archfiend''s Vessel', 'Memoricide', 'Temple of Abandon', 'Murderous Cut', 'The Underworld Cookbook', 'Soltari Priest', 'Morsel Theft', 'Thaumatic Compass', 'Martyr of Sands', 'Chain Lightning', 'Viscera Seer', 'Big Game Hunter', 'Golgari Guildgate', 'Energy Refractor', 'Hypnotic Specter', 'Forked Bolt', 'Yavimaya Iconoclast', 'Counterflux', 'Succumb to Temptation', 'Frost Titan', 'Psychic Possession', 'Spectral Shift', 'Far // Away', 'Call of the Death-Dweller', 'The Seedcore', 'Blightbelly Rat', 'Vivid Crag', 'Lodestone Golem', 'Froghemoth', 'Mishra''s Factory', 'Skyclave Shade', 'Yahenni''s Expertise', 'Smuggler''s Copter', 'Silverbluff Bridge', 'Sunpetal Grove', 'Brineborn Cutthroat', 'Archpriest of Shadows', 'Teshar, Ancestor''s Apostle', 'Flametongue Kavu', 'Declaration in Stone', 'Dismal Backwater', 'Frantic Inventory', 'Ral, Storm Conduit', 'Hour of Promise', 'Rise // Fall', 'Elvish Visionary', 'Ardent Recruit', 'Radha, Heart of Keld', 'Dream Trawler', 'Brokers Hideout', 'Frontier Bivouac', 'Raffine''s Informant', 'Demigod of Revenge', 'Rampant Growth', 'Nevermore', 'Temple of Enlightenment', 'Kappa Tech-Wrecker', 'Quiet Speculation', 'Bontu''s Last Reckoning', 'Altar of the Brood', 'Revitalize', 'Frostwalk Bastion', 'Magister of Worth', 'Sigrid, God-Favored', 'Scrapwork Mutt', 'Sever the Bloodline', 'Hieroglyphic Illumination', 'Feed the Swarm', 'Angel of Despair', 'Riveteers Overlook', 'Frantic Search', 'Benevolent Bodyguard', 'Akiri, Fearless Voyager', 'Turnabout', 'Voidwing Hybrid', 'Kor Skyfisher', 'Treasure Cruise', 'Ogre Slumlord', 'Into the Roil', 'Midnight Guard', 'Sprite Dragon', 'Summer Bloom', 'Reveillark', 'Ammit Eternal', 'Herd Migration', 'Ral, Izzet Viceroy', 'Progenitor Exarch', 'Curiosity', 'Unbreakable Formation', 'Mistvault Bridge', 'Artisan of Kozilek', 'Bloodsoaked Champion', 'Approach of the Second Sun', 'Blanchwood Prowler', 'Razortide Bridge', 'Worship', 'Psychatog', 'Elspeth Conquers Death', 'Doomed Traveler', 'Lagrella, the Magpie', 'Blazing Rootwalla', 'Urban Evolution', 'Kumano Faces Kakkazan', 'Ravenous Squirrel', 'Tilling Treefolk', 'Kira, Great Glass-Spinner', 'Drowned Rusalka', 'Brave the Elements', 'Scrabbling Claws', 'Victim of Night', 'Slagstorm', 'Notorious Throng', 'Chamber Sentry', 'Rabbit Battery', 'Koth, Fire of Resistance', 'Stubborn Denial', 'Saproling Migration', 'Kami of False Hope', 'Banishing Slash', 'Vindicate', 'Oni-Cult Anvil', 'Orzhov Charm', 'Selesnya Guildgate', 'Spatial Contortion', 'Platinum Angel', 'Green Sun''s Twilight', 'Llanowar Mentor', 'Ghostly Flicker', 'Disrupting Shoal', 'Bloodline Keeper', 'Wrath of God', 'Crack the Earth', 'Colossal Skyturtle', 'Nezumi Graverobber', 'Thirst for Meaning', 'Kemba, Kha Enduring', 'Temple of Malady', 'The Celestus', 'Baneful Omen', 'Altered Ego', 'Nimble Larcenist', 'Unlucky Witness', 'Elixir of Immortality', 'Knight of Glory', 'Icehide Golem', 'Rites of Initiation', 'Thrash // Threat', 'Nether Spirit', 'Blade Splicer', 'Tezzeret, Artifice Master', 'Crawling Chorus', 'Diabolic Tutor', 'Defiant Strike', 'Battlefield Forge', 'Halimar Excavator', 'Pariah', 'Misery Charm', 'Shimmerdrift Vale', 'Electrolyze', 'Grand Abolisher', 'Burning of Xinye', 'Pyrite Spellbomb', 'Consuming Vapors', 'Canyon Slough', 'Hero''s Downfall', 'Kogla, the Titan Ape', 'Bogardan Hellkite', 'Shimmer Dragon', 'Chaotic Transformation', 'River of Tears', 'Master of Etherium', 'Nimble Obstructionist', 'Zephyr Singer', 'Invasion of Zendikar', 'Scour All Possibilities', 'Scab-Clan Berserker', 'Hesitation', 'Dimensional Infiltrator', 'Vraska''s Fall', 'Haunted Mire', 'Cleansing Wildfire', 'Phyrexian Dreadnought', 'Sunken Hollow', 'Madcap Experiment', 'Swiftfoot Boots', 'Clifftop Retreat', 'Mina and Denn, Wildborn', 'Spikefield Hazard'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('The Seedcore', 'Dregscape Zombie', 'Thrash // Threat', 'Leonin Warleader', 'Counterflux', 'Anafenza, Kin-Tree Spirit', 'Mana Leak', 'Halimar Excavator', 'Sorin, Vengeful Bloodlord', 'Tempest Djinn', 'Voyaging Satyr', 'Silundi Vision', 'Fact or Fiction', 'Corpse Cur', 'Commit // Memory', 'Master of Etherium', 'Xerex Strobe-Knight', 'Terramorphic Expanse', 'Invasion of Ergamon', 'Westvale Abbey', 'Armored Scrapgorger', 'Graaz, Unstoppable Juggernaut', 'Sins of the Past', 'Vedalken Heretic', 'Commune with Nature', 'Demigod of Revenge', 'Thornwood Falls', 'Fireblade Charger', 'Flametongue Kavu', 'Deeproot Waters', 'Deep Analysis', 'Raven''s Crime', 'Curious Homunculus', 'Galerider Sliver', 'Shriekmaw', 'Nimble Obstructionist', 'Tooth and Nail', 'Phoenix Chick', 'Of One Mind', 'Torens, Fist of the Angels', 'Gruul Turf', 'Darksteel Colossus', 'Tilling Treefolk', 'Fracturing Gust', 'Bone Shards', 'Defiant Strike', 'Destiny Spinner', 'Woodfall Primus', 'Weathered Wayfarer', 'Kor Skyfisher', 'Bloodline Keeper', 'Rustvale Bridge', 'Venerated Loxodon', 'Second Sunrise', 'Grand Abolisher', 'Kambal, Consul of Allocation', 'Chief Engineer', 'Fade from Memory', 'Xenagos, the Reveler', 'Golgari Guildgate', 'Marwyn, the Nurturer', 'Check for Traps', 'Stromkirk Noble', 'Frostwalk Bastion', 'Disciple of Bolas', 'Pull from Tomorrow', 'Yawgmoth''s Bargain', 'Ulcerate', 'Raze to the Ground', 'Price of Progress', 'Mindcrank', 'Supreme Will', 'Kami of False Hope', 'Marit Lage''s Slumber', 'Murderous Cut', 'Gadrak, the Crown-Scourge', 'Prologue to Phyresis', 'Jwari Shapeshifter', 'Change the Equation', 'Riveteers Charm', 'Time of Need', 'Zuran Orb', 'Deep Forest Hermit', 'Teferi, Mage of Zhalfir', 'Abiding Grace', 'Sin Collector', 'Grenzo, Dungeon Warden', 'Electrolyze', 'Nezumi Shortfang', 'Fae of Wishes', 'Liliana Vess', 'Jokulhaups', 'Dismal Backwater', 'Eerie Ultimatum', 'Hero''s Downfall', 'Folio of Fancies', 'Sleight of Hand', 'Shambling Vent', 'Crawling Barrens', 'Glint-Sleeve Siphoner', 'Kruphix''s Insight', 'Blood Artist', 'Drainpipe Vermin', 'Altar of the Goyf', 'Hornet Queen', 'Black Sun''s Zenith', 'Tangled Islet', 'Disallow', 'Farhaven Elf', 'Wolfbriar Elemental', 'Valakut Exploration', 'Shardless Agent', 'Sunpetal Grove', 'Control Magic', 'Vampiric Rites', 'Oust', 'Felidar Retreat', 'Karn''s Bastion', 'Chittering Rats', 'Tear Asunder', 'Abundant Harvest', 'Arbalest Engineers', 'Tainted Indulgence', 'Helm of the Host', 'Honor of the Pure', 'Duplicant', 'Altered Ego', 'Fire Prophecy', 'Lavaclaw Reaches', 'Dead Weight', 'Green Sun''s Twilight', 'River of Tears', 'Obstinate Baloth', 'Energy Refractor', 'Lead the Stampede', 'Grim Haruspex', 'Master of Death', 'Forging the Anchor', 'Mystical Teachings', 'Distorted Curiosity', 'Wandering Fumarole', 'Surrak, the Hunt Caller', 'Faith''s Reward', 'Spectral Shift', 'Farseek', 'Mistcutter Hydra', 'Shalai, Voice of Plenty', 'Pardic Miner', 'Augur of Bolas', 'Secluded Steppe', 'Dryad Militant', 'Bloodbraid Elf', 'Nissa, Worldwaker', 'Mind''s Desire', 'Snow-Covered Plains', 'Tribute to Hunger', 'Vessel of Nascency', 'Breya''s Apprentice', 'Okina, Temple to the Grandfathers', 'Sunlit Marsh', 'Changeling Outcast', 'Into the Story', 'Ancient Amphitheater', 'Resolute Reinforcements', 'Pharika''s Libation', 'Rakdos''s Return', 'Rakdos Guildgate', 'Sign in Blood', 'Timeless Witness', 'Cabal Initiate', 'Shrapnel Blast', 'Seal of Fire', 'Disrupting Shoal', 'Dimir Guildgate', 'Merfolk Mistbinder', 'Careful Cultivation', 'Evacuation', 'Destroy Evil', 'Gideon''s Intervention', 'Blade Splicer', 'Teneb, the Harvester', 'Thaumatic Compass', 'Drowner of Hope', 'Ranger of Eos', 'Bolas''s Citadel', 'All That Glitters', 'Mindsplice Apparatus', 'Inevitable Betrayal', 'Kiora Bests the Sea God', 'Seething Song', 'Slip Out the Back', 'Sylvan Library', 'Rift Bolt', 'Terrarion', 'Falkenrath Pit Fighter', 'Seal of Removal', 'Mirran Crusader', 'Invasion of Kaladesh', 'Vampire Nighthawk', 'Priest of the Haunted Edge', 'Dead // Gone', 'Frost Marsh', 'Hyena Umbra', 'Platinum Angel', 'Lagrella, the Magpie', 'Invasion of Regatha', 'Glimpse of Tomorrow', 'Psychatog', 'Tribute to Horobi', 'Melira, Sylvok Outcast', 'Archpriest of Shadows', 'Contaminated Aquifer', 'Cataclysmic Gearhulk', 'Commune with the Gods', 'Lazotep Chancellor', 'Late to Dinner', 'Council''s Judgment', 'Ally Encampment', 'Gideon Jura', 'Zur''s Weirding', 'Lotus Cobra', 'Steel Overseer', 'Spell Pierce', 'Mazemind Tome', 'Sigil of the Empty Throne', 'Arguel''s Blood Fast', 'Ravenous Squirrel', 'Kor Firewalker', 'Knight of the White Orchid', 'Benevolent Bodyguard', 'Bogardan Hellkite', 'Rampant Growth', 'Avacyn''s Pilgrim', 'Geomancer''s Gambit', 'Divest', 'Shimmer Dragon', 'Stone Haven Outfitter', 'Arch of Orazca', 'Akiri, Fearless Voyager', 'Upheaval', 'Territorial Kavu', 'Bloodchief Ascension', 'Morsel Theft', 'Eternal Scourge', 'Goblin Bombardment', 'Dimensional Infiltrator', 'Silent Gravestone', 'Prosperous Thief', 'Fetid Heath', 'Unmarked Grave', 'Harbinger of the Tides', 'Sphere of Safety', 'Snow-Covered Mountain', 'Dross Skullbomb', 'Unctus, Grand Metatect', 'Gallia of the Endless Dance', 'Rites of Initiation', 'Zephyr Singer', 'Glorybringer', 'Secluded Courtyard', 'Aegis of the Gods', 'Idyllic Tutor', 'Hostage Taker', 'Kiora, the Crashing Wave', 'Herd Migration', 'Marauding Blight-Priest', 'Tranquil Thicket', 'Festering Newt', 'Wonder', 'Blight Mamba', 'Universal Automaton', 'Hypnotic Specter', 'Angel of Condemnation', 'Delay', 'Bring the Ending', 'Ephara, God of the Polis', 'Drowned Rusalka', 'Sulfur Falls', 'Unlucky Witness', 'Faerie Miscreant', 'Archaeomancer', 'Hooting Mandrills', 'Temple of Silence', 'Sterling Grove', 'Revitalize', 'Dawn of Hope', 'Kemba, Kha Regent', 'Abyssal Persecutor', 'Progenitor Exarch', 'Postmortem Lunge', 'Doom Blade', 'Acidic Slime', 'Consume the Meek', 'Myr Superion', 'Decree of Justice', 'Gravelgill Duo', 'Utter End', 'Jace Beleren', 'Terminus', 'Phyrexian Censor', 'Tangle', 'Nezahal, Primal Tide', 'Invoke Calamity', 'Leonin Relic-Warder', 'Hope of Ghirapur', 'Weapons Trainer', 'Commence the Endgame', 'Vraska''s Contempt', 'Kjeldoran Outpost', 'Dark Ritual', 'Hada Freeblade', 'Maestros Charm', 'Expedite', 'Glamerdye', 'Nether Traitor', 'Swiftfoot Boots', 'Llanowar Augur', 'Chaotic Transformation', 'Pyroclasm', 'Deafening Clarion', 'Fertile Ground', 'Tidehollow Sculler', 'Ambush Viper', 'Forbidden Alchemy', 'Quiet Speculation', 'Witching Well', 'Giant Killer', 'Rakdos Charm', 'Arcbound Ravager', 'Phyrexian Revoker', 'Spatial Contortion', 'Galvanic Relay', 'Far // Away', 'Ghostly Pilferer', 'Restoration Angel', 'Summer Bloom', 'Dark-Dweller Oracle', 'Hissing Quagmire', 'Champion of Wits', 'Botanical Plaza', 'Makeshift Mannequin', 'Steppe Lynx', 'Pack Rat', 'Concealing Curtains', 'Combat Thresher', 'Pyretic Ritual', 'Mirage Mirror', 'Burst Lightning', 'Selesnya Guildgate', 'Sculpting Steel', 'Mesa Enchantress', 'Invasion of New Capenna', 'Circular Logic', 'Elvish Mystic', 'Murderous Redcap', 'Oona, Queen of the Fae', 'Obzedat, Ghost Council', 'Wasteland Strangler', 'Kappa Tech-Wrecker', 'Orzhov Charm', 'Drowned Catacomb', 'Presence of Gond', 'Lurrus of the Dream-Den', 'Malcator, Purity Overseer', 'Phyrexian Unlife', 'Curse of Exhaustion', 'Temple of Plenty', 'Kalastria Healer', 'Sprite Dragon', 'Blessed Alliance', 'Fierce Empath', 'Leonin Arbiter', 'Greater Tanuki', 'Mikokoro, Center of the Sea', 'Vault of the Archangel', 'Aetherling', 'Engulf the Shore', 'Anger of the Gods', 'Dead of Winter', 'Seal of Cleansing', 'Invasion of Azgol', 'Plated Geopede', 'Simian Sling', 'Dreams of Steel and Oil', 'Gilt-Leaf Archdruid', 'Koth, Fire of Resistance', 'Yavimaya Iconoclast', 'Oracle of Tragedy', 'Terminate', 'Call of the Death-Dweller', 'Boreal Shelf', 'Heartless Act', 'Grave Titan', 'Inscribed Tablet', 'Rust Goliath', 'Dragonskull Summit', 'Condemn', 'Triumphant Adventurer', 'Apostle''s Blessing', 'Seeker of the Way', 'Draugr Necromancer', 'Simic Guildgate', 'Satyr Hoplite', 'Mausoleum Secrets', 'Throne of the God-Pharaoh', 'Benthic Biomancer', 'Jwari Disruption', 'Search for Tomorrow', 'Gnat Miser', 'Seedcradle Witch', 'Otherworldly Journey', 'Quicken', 'Kemba, Kha Enduring', 'Sacred Peaks', 'Mistveil Plains', 'Ammit Eternal', 'Ashnod, Flesh Mechanist', 'Corrupted Crossroads', 'Sheltered Thicket', 'Nameless Inversion', 'Fumigate', 'Thrill of Possibility', 'Felidar Cub', 'Dakkon, Shadow Slayer', 'Diabolic Tutor', 'Timeless Dragon', 'Temple of Deceit', 'Boon-Bringer Valkyrie', 'Spectral Procession', 'Stirring Wildwood', 'Whispersilk Cloak', 'Llanowar Tribe', 'Tresserhorn Sinks', 'White Sun''s Zenith', 'Timely Reinforcements', 'Aetherblade Agent', 'Summary Dismissal', 'Merciless Eviction', 'Bogbrew Witch', 'Cartel Aristocrat', 'Simian Spirit Guide', 'Peek', 'Tectonic Edge', 'Elixir of Immortality', 'Tendo Ice Bridge', 'Vampire Hexmage', 'Devil''s Play', 'Gift of Immortality', 'Saffi Eriksdotter', 'Call to the Grave', 'Oona''s Grace', 'Grand Architect', 'Earthquake', 'Resurgent Belief', 'Blightbelly Rat', 'Dark Petition', 'Urban Evolution', 'Cabal Ritual', 'Mishra''s Factory', 'Favored Hoplite', 'Delver of Secrets', 'Tidespout Tyrant', 'Venser, the Sojourner', 'Gird for Battle', 'Wrenn''s Resolve', 'Meeting of Minds', 'Tomebound Lich', 'Obscura Charm', 'Stinkweed Imp', 'Arlinn Kord', 'Knight of the Reliquary', 'Smallpox', 'Slagwoods Bridge', 'Vexing Shusher', 'Founding the Third Path', 'Smuggler''s Copter', 'Llanowar Elves', 'Death Cloud', 'Kozilek''s Predator', 'Gruul Spellbreaker', 'Silver-Fur Master', 'Fetid Pools', 'Primal Command', 'Scuttling Doom Engine', 'Sire of Insanity', 'Thopter Mechanic', 'Lantern-Lit Graveyard', 'Angel of Serenity', 'Vryn Wingmare', 'Doomskar', 'Mistvault Bridge', 'Talisman of Curiosity', 'Crawling Chorus', 'Sinister Concoction', 'Garruk Wildspeaker', 'Heap Doll', 'Invigorate', 'Titania, Protector of Argoth', 'Woe Strider', 'Vindicate', 'Kher Keep', 'Port Town', 'Altar of the Brood', 'Sphinx''s Herald', 'Silumgar''s Scorn', 'Oath of Teferi', 'Mwonvuli Acid-Moss', 'Tolarian Terror', 'Eiganjo Castle', 'Ancient Stirrings', 'Incinerate', 'Chief of the Foundry', 'Ichorclaw Myr', 'Possibility Storm', 'Haunted Fengraf', 'Knight of New Alara', 'Golgari Rot Farm', 'Stir the Grave', 'Barbarian Ring', 'Big Score', 'Waking the Trolls', 'Nightscape Familiar', 'Voidwing Hybrid', 'Erebos''s Intervention', 'Circuit Mender', 'Oblivion Ring', 'Colossal Skyturtle', 'Malakir Rebirth', 'Invasion of Zendikar', 'Faerie Vandal', 'Endbringer', 'Phyrexian Dreadnought', 'Ensoul Artifact', 'Vigor', 'Archon of Sun''s Grace', 'Winds of Abandon', 'Dragon''s Hoard', 'Vraska''s Fall', 'Battle of Wits', 'Blue Sun''s Zenith', 'Scattered Groves', 'Judge''s Familiar', 'Rakdos Cackler', 'Drossforge Bridge', 'Sandsteppe Citadel', 'Yorion, Sky Nomad', 'Evolving Wilds', 'Unsubstantiate', 'Elspeth Conquers Death', 'Nimbus Maze', 'Prophetic Prism', 'The Celestus', 'Chandra, Fire Artisan', 'Wilt', 'Staff of Domination', 'Memory Lapse', 'Misery Charm', 'Orcish Lumberjack', 'Racers'' Ring', 'King Darien XLVIII', 'Pharika''s Cure', 'Raging Ravine', 'Scrying Sheets', 'Hideous End', 'Haunted Mire', 'Satyr Wayfinder', 'Ransack the Lab', 'Abundant Growth', 'Devious Cover-Up', 'Bloodchief''s Thirst', 'Spellweaver Helix', 'Crack the Earth', 'Vadrik, Astral Archmage', 'Geothermal Bog', 'Discovery // Dispersal', 'Stone Rain', 'Raise the Alarm', 'Herd Baloth', 'Into the Roil', 'Battle of Frost and Fire', 'Shaman of the Pack', 'Scrabbling Claws', 'Assault // Battery', 'Clifftop Retreat', 'Silversmote Ghoul', 'Putrefy', 'Rise // Fall', 'Throat Slitter', 'Blanchwood Prowler', 'Knight of Glory', 'Cliffside Lookout', 'Magister of Worth', 'Frantic Inventory', 'Silverbluff Bridge', 'Graveborn Muse', 'Gutterbones', 'Needle Spires', 'Kumano Faces Kakkazan', 'Wooded Bastion', 'Kessig Wolf Run', 'Frost Titan', 'Angrath, the Flame-Chained', 'Kefnet the Mindful', 'Unbreakable Formation', 'Tocatli Honor Guard', 'Cabaretti Courtyard', 'Battlefield Forge', 'Brainstone', 'Bilious Skulldweller', 'Wood Elves', 'Sigrid, God-Favored', 'Woodland Cemetery', 'Polukranos, World Eater', 'Bubbling Cauldron', 'Opulent Palace', 'Elemental Masterpiece', 'Archfiend''s Vessel', 'Experimental Augury', 'Vampire Lacerator', 'Game Trail', 'Din of the Fireherd', 'Empyrial Armor', 'Anafenza, the Foremost', 'Fight as One', 'Ossification', 'Necrogen Spellbomb', 'Voidslime', 'Settle the Wreckage', 'See Beyond', 'Graven Lore', 'Go for the Throat', 'Huatli, Radiant Champion', 'Midnight Guard', 'Rocco, Cabaretti Caterer', 'Jukai Naturalist', 'Carven Caryatid', 'Rootbound Crag', 'Voldaren Pariah', 'Nimble Larcenist', 'Merfolk Sovereign', 'Dissipate', 'Chandra, Flamecaller', 'Ishkanah, Grafwidow', 'Loxodon Smiter', 'Harmonize', 'Kitchen Finks', 'Approach of the Second Sun', 'Gitaxian Probe', 'Dreadhorde Butcher', 'Venser, Shaper Savant', 'Blood on the Snow', 'Divinity of Pride', 'Monument to Perfection', 'Combat Research', 'Castigate', 'Academy Loremaster', 'Hall of Oracles', 'Duress', 'Spell Burst', 'Buried Ruin', 'Drake Haven', 'Serra Ascendant', 'Seismic Assault', 'Empyrial Plate', 'Auriok Sunchaser', 'Dimir Aqueduct', 'Tomb of Urami', 'Lochmere Serpent', 'Collected Conjuring', 'Rix Maadi Reveler', 'Day of Judgment', 'Marble Diamond', 'Narcomoeba', 'Night Market Lookout', 'Scrapheap Scrounger', 'Riveteers Overlook', 'Caldera Hellion', 'Expedition Envoy', 'Kaito, Dancing Shadow', 'Pyrite Spellbomb', 'Yahenni''s Expertise', 'Pore Over the Pages', 'Karumonix, the Rat King', 'Dread Return', 'Celestial Colonnade', 'Fearless Fledgling', 'Faeburrow Elder', 'Floriferous Vinewall', 'Burning of Xinye', 'Briarbridge Tracker', 'Stern Dismissal', 'Scour All Possibilities', 'Network Disruptor', 'General Ferrous Rokiric', 'Cleansing Wildfire', 'Sweltering Suns', 'Volt Charge', 'Vraan, Executioner Thane', 'Lost Legacy', 'Frantic Search', 'Phantasmal Image', 'Empty the Warrens', 'Explore', 'Archangel Avacyn', 'Fallaji Archaeologist', 'Solitary Confinement', 'Rally the Peasants', 'Vampire Neonate', 'Sandwurm Convergence', 'Demonic Bargain', 'Obliterate', 'Nissa, Steward of Elements', 'Sheoldred''s Edict', 'Vault Skirge', 'Temple of Mystery', 'Malicious Malfunction', 'Consult the Necrosages', 'Rule of Law', 'Canyon Slough', 'Forsake the Worldly', 'Unholy Heat', 'Maelstrom Pulse', 'Rabbit Battery', 'Thundermaw Hellkite', 'The Scorpion God', 'Oath of Kaya', 'Ivy Lane Denizen', 'Madcap Experiment', 'Hinterland Harbor', 'Patchwork Automaton', 'Slaughter Pact', 'Wanderwine Hub', 'The Underworld Cookbook', 'Zombie Infestation', 'Reckless Rage', 'Deprive', 'Shizo, Death''s Storehouse', 'Esper Charm', 'Sunblade Samurai', 'Sarkhan, the Dragonspeaker', 'Thornglint Bridge', 'Leonin Lightscribe', 'Skyshroud Elf', 'Rain of Tears', 'Dokuchi Silencer', 'Sunstrike Legionnaire', 'Silumgar, the Drifting Death', 'Venser, Corpse Puppet', 'Oni-Cult Anvil', 'Ertai''s Scorn', 'Tezzeret''s Gambit', 'Cathedral of War', 'Brave the Sands', 'Epic Experiment', 'Invasion of Amonkhet', 'Invisible Stalker', 'Ashen Rider', 'Basilisk Collar', 'Kunoros, Hound of Athreos', 'Nested Shambler', 'Luminarch Ascension', 'Nomad Outpost', 'Alms of the Vein', 'Isolated Chapel', 'Varolz, the Scar-Striped', 'Bloodsoaked Champion', 'Increasing Ambition', 'Bituminous Blast', 'Pain Seer', 'Ivory Tower', 'Commune with Spirits', 'Gateway Plaza', 'Ashenmoor Liege', 'Shimmerdrift Vale', 'Vapor Snag', 'Wizard''s Retort', 'Jace, Architect of Thought', 'Kira, Great Glass-Spinner', 'Annex Sentry', 'Thraben Inspector', 'Jungle Hollow', 'Kitchen Imp', 'Maze''s End', 'Vivid Crag', 'Cloudpost', 'Stoke the Flames', 'Turnabout', 'Orim''s Chant', 'Ogre Slumlord', 'Ghostly Flicker', 'Mirror Entity', 'Might of Old Krosa', 'Curiosity', 'Big Game Hunter', 'World Shaper', 'Overgrowth', 'Bontu''s Last Reckoning', 'Figure of Destiny', 'Stinkdrinker Bandit', 'Detention Sphere', 'Pillage', 'Swooping Lookout', 'Odds // Ends', 'Bubbling Muck', 'Viscera Seer', 'Lose Focus', 'Viashino Pyromancer', 'Runed Halo', 'Wayward Guide-Beast', 'Joint Exploration', 'Squee, Goblin Nabob', 'Smother', 'Dauntless Bodyguard', 'Scarab Feast', 'Nephalia Drownyard', 'Hanweir Garrison', 'Scab-Clan Berserker', 'Pariah', 'Kitesail Freebooter', 'Barter in Blood', 'Predatory Sliver', 'Knowledge Pool', 'Toolcraft Exemplar', 'Ral, Izzet Viceroy', 'Oracle of Mul Daya', 'Shred Memory', 'Slagstorm', 'Ramunap Excavator', 'Jor Kadeen, First Goldwarden', 'Elves of Deep Shadow', 'Sinew Sliver', 'Birds of Paradise', 'Banishing Slash', 'Temple of Enlightenment', 'Lodestone Golem', 'Melira, the Living Cure', 'General''s Enforcer', 'Basking Rootwalla', 'Tendrils of Agony', 'Bloodvial Purveyor', 'Guile', 'Sin Prodder', 'Bitter Reunion', 'Enchantress''s Presence', 'Ancient Ziggurat', 'Merrow Reejerey', 'Choked Estuary', 'Heliod''s Intervention', 'Reckoner''s Bargain', 'Open the Gates', 'Squadron Hawk', 'Cauldron Familiar', 'Lay Down Arms', 'Genesis Ultimatum', 'Sarkhan the Masterless', 'Servo Exhibition', 'Ornithopter', 'Nezumi Informant', 'Vines of Vastwood', 'Hard Evidence', 'Kazandu Blademaster', 'Chamber Sentry', 'Ground Seal', 'Nullpriest of Oblivion', 'Mortuary Mire', 'Midnight Reaper', 'Hour of Promise', 'Stasis Snare', 'Glimmerpost', 'Thassa''s Intervention', 'Mastermind''s Acquisition', 'Radiant Grove', 'Sylvan Advocate', 'Blightning', 'Azorius Guildgate', 'Izzet Charm', 'Victim of Night', 'Rotting Rats', 'Embodiment of Fury', 'Dispatch', 'Worship', 'Fyndhorn Elves', 'Fiery Temper', 'Talisman of Unity', 'Brokers Hideout', 'Sunken Hollow', 'Assemble the Legion', 'Vivid Grove', 'Dakmor Salvage', 'Sea Gate Oracle', 'Remorseful Cleric', 'Arcum''s Astrolabe', 'Soltari Priest', 'Drown in Ichor', 'Shard Volley', 'Akroan Crusader', 'Cloudshredder Sliver', 'Desperate Ritual', 'Goblin Dark-Dwellers', 'Mnemonic Sphere', 'Saproling Migration', 'Ardent Recruit', 'Ignite Memories', 'Jungle Shrine', 'Healer''s Hawk', 'Aether Spellbomb', 'Darksteel Citadel', 'Flaying Tendrils', 'Orzhov Guildgate', 'Sudden Edict', 'Think Twice', 'Bump in the Night', 'Tezzeret, Artifice Master', 'Doomed Traveler', 'Siege Rhino', 'Elvish Archdruid', 'Surge of Salvation', 'Ghitu Lavarunner', 'Groundswell', 'Ral, Storm Conduit', 'Cultivate', 'Crux of Fate', 'Argentum Armor', 'Cryptic Caves', 'Dread Wanderer', 'Chain Lightning', 'Sultai Charm', 'Radha, Heart of Keld', 'Cult Conscript', 'Ruric Thar, the Unbowed', 'Scrapwork Mutt', 'Memoricide', 'Succumb to Temptation', 'Gruul Guildgate', 'Eldrazi Displacer', 'Wild Cantor', 'Snow-Covered Swamp', 'Moon-Circuit Hacker', 'Temple of Malady', 'Idyllic Beachfront', 'Heliod''s Pilgrim', 'Mina and Denn, Wildborn', 'Aetherspouts', 'Coiling Oracle', 'Grafted Butcher', 'Izzet Guildgate', 'Reinforced Ronin', 'Archangel of Wrath', 'Impulse', 'Orzhov Basilica', 'Elderscale Wurm', 'Ethereal Armor', 'Ghost Quarter', 'Precursor Golem', 'Union of the Third Path', 'Cremate', 'The Flame of Keld', 'Ulvenwald Hydra', 'Sculpted Perfection', 'Night of Souls'' Betrayal', 'Languish', 'Rites of Spring', 'Ghostfire Blade', 'Nevermore', 'Wrench Mind', 'Genesis Wave', 'Dovin''s Acuity', 'Grave Scrabbler', 'Sol Talisman', 'Moorland Haunt', 'Executioner''s Capsule', 'Tanglepool Bridge', 'Bident of Thassa', 'Temple of Abandon', 'Halana and Alena, Partners', 'Putrid Imp', 'Nether Spirit', 'Gleeful Demolition', 'Goldmire Bridge', 'Yisan, the Wanderer Bard', 'Hieroglyphic Illumination', 'Barbed Sextant', 'Baneful Omen', 'Stoic Rebuttal', 'Wrath of God', 'Kaya, Ghost Assassin', 'Purify the Grave', 'Notorious Throng', 'Brain Freeze', 'Dark Prophecy', 'Arcane Sanctum', 'Stupor', 'Trace of Abundance', 'Myth Realized', 'Third Path Iconoclast', 'Chandra, Pyromaster', 'Icehide Golem', 'Lightning Spear', 'Unburial Rites', 'Azorius Charm', 'Cabal Therapist', 'Fleecemane Lion', 'Nekrataal', 'Dire-Strain Rampage', 'Ayli, Eternal Pilgrim', 'Mesmeric Fiend', 'Shivan Reef', 'Oona''s Prowler', 'Pillar of the Paruns', 'Temple of Triumph', 'Artistic Refusal', 'Fiery Justice', 'Spirited Companion', 'Become Immense', 'Vivid Marsh', 'Quest for the Holy Relic', 'Gather the Pack', 'Elas il-Kor, Sadistic Pilgrim', 'Moderation', 'Rally the Ancestors', 'Rune Snag', 'Martyr of Sands', 'Mindslaver', 'Eldrazi Skyspawner', 'Inkwell Leviathan', 'Tymaret, Chosen from Death', 'Porphyry Nodes', 'Brave the Elements', 'Cut Down', 'Dying to Serve', 'Thopter Spy Network', 'Springleaf Drum', 'Out of Time', 'Tribal Flames', 'Mulldrifter', 'Angel of Despair', 'Obscura Storefront', 'Teshar, Ancestor''s Apostle', 'Terastodon', 'Cathartic Reunion', 'Ayara, First of Locthwain', 'Declaration in Stone', 'Evangel of Synthesis', 'Yasharn, Implacable Earth', 'Genesis Hydra', 'Greater Gargadon', 'Abzan Charm', 'Grand Arbiter Augustin IV', 'Angel of Grace', 'Phalanx Leader', 'Eidolon of Blossoms', 'Sylvan Caryatid', 'Mistblade Shinobi', 'Caves of Koilos', 'Exclude', 'Reveillark', 'Duneblast', 'Graven Cairns', 'Ponder', 'Ethersworn Sphinx', 'Diffusion Sliver', 'Lingering Souls', 'Consuming Vapors', 'Akoum Hellhound', 'Myr Battlesphere', 'Forked Bolt', 'Flame Rift', 'Sea-Dasher Octopus', 'Frenetic Sliver', 'Glistener Elf', 'Spikefield Hazard', 'Elvish Visionary', 'Open the Armory', 'Boros Guildgate', 'Kogla, the Titan Ape', 'Gigadrowse', 'Froghemoth', 'Thirst for Meaning', 'Wall of Omens', 'Mouth of Ronom', 'Forgotten Cave', 'Fruit of Tizerus', 'Glacial Fortress', 'Silverblade Paladin', 'Smoldering Marsh', 'Thragtusk', 'Herald of the Pantheon', 'Treasure Cruise', 'Izzet Boilerworks', 'Demolition Field', 'Frontier Bivouac', 'Experimental Synthesizer', 'Agonizing Remorse', 'Gloomshrieker', 'Llanowar Mentor', 'Ancestral Blade', 'Shrieking Affliction', 'Thawing Glaciers', 'Artisan of Kozilek', 'Valiant Changeling', 'Lightning Strike', 'Brineborn Cutthroat', 'Shape Anew', 'Psychic Possession', 'Nimble Trapfinder', 'Krosan Grip', 'Mulch', 'Tocasia''s Dig Site', 'Murmuring Bosk', 'Twinshot Sniper', 'Search for Azcanta', 'Geyadrone Dihada', 'Molten Tributary', 'Precinct Captain', 'Etherium Sculptor', 'Kabira Takedown', 'Dream Trawler', 'Verduran Enchantress', 'Lavinia of the Tenth', 'Raffine''s Informant', 'Skirk Prospector', 'Gather the Townsfolk', 'Return to the Ranks', 'Reflector Mage', 'Yavimaya Coast', 'Godo, Bandit Warlord', 'Forbid', 'Gift of Estates', 'Flooded Grove', 'Feed the Swarm', 'Strike It Rich', 'Touch the Spirit Realm', 'Argentum Masticore', 'Hesitation', 'Negate', 'Nature''s Lore', 'Hypergenesis', 'Slogurk, the Overslime', 'Ovika, Enigma Goliath', 'Repeal', 'Sever the Bloodline', 'Norn''s Inquisitor', 'Grolnok, the Omnivore', 'Tyrant''s Choice', 'Disenchant', 'Ezuri, Renegade Leader', 'Elite Inquisitor', 'Mystic Monastery', 'Repudiate // Replicate', 'Arbor Elf', 'Mothdust Changeling', 'Elvish Rejuvenator', 'Protect the Negotiators', 'Skyclave Shade', 'Solemnity', 'Nezumi Graverobber', 'Reckless Charge', 'Goblin Electromancer', 'Dusk // Dawn', 'Corrupted Conviction', 'Canopy Vista', 'Razortide Bridge', 'Anguished Unmaking', 'Nine Lives', 'Blazing Rootwalla', 'Syphon Life', 'Rise and Shine', 'Voltage Surge', 'Recurring Nightmare', 'Stubborn Denial', 'Lizard Blades', 'Gnawing Vermin'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Search for Azcanta', 'Thaumatic Compass', 'Tocatli Honor Guard', 'Nezumi Graverobber', 'Coiling Oracle', 'Rabbit Battery', 'Hard Evidence', 'Changeling Outcast', 'Jace Beleren', 'White Sun''s Zenith', 'Return to the Ranks', 'Kambal, Consul of Allocation', 'Nezumi Shortfang', 'Rootbound Crag', 'Spell Burst', 'Destroy Evil', 'Mind''s Desire', 'Celestial Colonnade', 'Ancient Stirrings', 'Goblin Bombardment', 'Bloodchief''s Thirst', 'Shape Anew', 'Silverbluff Bridge', 'Mystical Teachings', 'Decree of Justice', 'Engulf the Shore', 'Kira, Great Glass-Spinner', 'Kitchen Finks', 'Counterflux', 'Riveteers Overlook', 'Graaz, Unstoppable Juggernaut', 'Vigor', 'Embodiment of Fury', 'Moderation', 'Weapons Trainer', 'Greater Tanuki', 'Doom Blade', 'Galerider Sliver', 'Tangle', 'Gloomshrieker', 'Sultai Charm', 'Norn''s Inquisitor', 'Sin Prodder', 'Dakmor Salvage', 'Kher Keep', 'Ethersworn Sphinx', 'Black Sun''s Zenith', 'Silumgar, the Drifting Death', 'Bone Shards', 'Yavimaya Iconoclast', 'Nevermore', 'Open the Armory', 'Leonin Relic-Warder', 'Dawn of Hope', 'Mystic Monastery', 'Call to the Grave', 'Ensoul Artifact', 'Breya''s Apprentice', 'Ghostly Pilferer', 'Faith''s Reward', 'Dissipate', 'Fleecemane Lion', 'Burst Lightning', 'Dread Return', 'Network Disruptor', 'General''s Enforcer', 'Weathered Wayfarer', 'Fearless Fledgling', 'Glamerdye', 'Urza''s Factory', 'Quiet Speculation', 'Crack the Earth', 'Thornwood Falls', 'Steel Overseer', 'Lavinia of the Tenth', 'Primal Command', 'Wrench Mind', 'Fight as One', 'Scrapwork Mutt', 'Flooded Grove', 'Abundant Harvest', 'Godo, Bandit Warlord', 'Hooting Mandrills', 'Anguished Unmaking', 'Aether Spellbomb', 'Stubborn Denial', 'Akroan Crusader', 'Jwari Shapeshifter', 'Postmortem Lunge', 'Far // Away', 'Luminarch Ascension', 'Steppe Lynx', 'Dreams of Steel and Oil', 'Surrak, the Hunt Caller', 'Thundermaw Hellkite', 'Melira, Sylvok Outcast', 'Seeker of the Way', 'Dovin''s Acuity', 'Vessel of Nascency', 'Waking the Trolls', 'Healer''s Hawk', 'Mirror Entity', 'Archaeomancer', 'Geomancer''s Gambit', 'Vryn Wingmare', 'Geyadrone Dihada', 'Kruphix''s Insight', 'Dragonskull Summit', 'Cabal Ritual', 'Temple of Malady', 'Port Town', 'Farseek', 'Soltari Priest', 'Simian Spirit Guide', 'Spell Pierce', 'Madcap Experiment', 'Aegis of the Gods', 'Shambling Vent', 'Dregscape Zombie', 'Knight of the Reliquary', 'Gruul Guildgate', 'Groundswell', 'Hero''s Downfall', 'Nephalia Drownyard', 'Vault Skirge', 'Winds of Abandon', 'Toolcraft Exemplar', 'Sigil of the Empty Throne', 'Cult Conscript', 'Gateway Plaza', 'Blightning', 'Glimmerpost', 'Blazing Rootwalla', 'Ral, Izzet Viceroy', 'Slagstorm', 'Disallow', 'Valiant Changeling', 'The Underworld Cookbook', 'Turnabout', 'Moon-Circuit Hacker', 'Archfiend''s Vessel', 'Knight of Glory', 'Ally Encampment', 'Lizard Blades', 'Seal of Fire', 'Izzet Guildgate', 'Golgari Guildgate', 'All That Glitters', 'Cremate', 'Vampire Nighthawk', 'Knight of New Alara', 'Pharika''s Cure', 'Altar of the Goyf', 'Faeburrow Elder', 'Disenchant', 'Halimar Excavator', 'Maestros Charm', 'Sunken Hollow', 'Terminus', 'Battle of Frost and Fire', 'Oath of Kaya', 'Jace, Unraveler of Secrets', 'Anger of the Gods', 'Terastodon', 'Ignite Memories', 'Invoke Calamity', 'Raven''s Crime', 'Ivy Lane Denizen', 'Pore Over the Pages', 'Oracle of Mul Daya', 'Become Immense', 'Nightscape Familiar', 'Obstinate Baloth', 'Marauding Blight-Priest', 'Llanowar Tribe', 'Loxodon Smiter', 'Throat Slitter', 'Desperate Ritual', 'Dross Skullbomb', 'Shardless Agent', 'Big Game Hunter', 'Precursor Golem', 'Abiding Grace', 'Woe Strider', 'Electrolyze', 'Xenagos, the Reveler', 'Magister of Worth', 'Orzhov Guildgate', 'Lay Down Arms', 'Combat Thresher', 'Kabira Takedown', 'Stone Rain', 'Game Trail', 'Nissa, Worldwaker', 'Aetherblade Agent', 'Serra Ascendant', 'Blightbelly Rat', 'Kemba, Kha Regent', 'Phyrexian Censor', 'Shimmer Dragon', 'Consume the Meek', 'Tangled Islet', 'Executioner''s Capsule', 'Invasion of Ergamon', 'Mishra''s Factory', 'Agonizing Remorse', 'Sire of Insanity', 'Drowned Catacomb', 'Canopy Vista', 'Tempest Djinn', 'Tooth and Nail', 'Into the Roil', 'Forging the Anchor', 'Ashnod, Flesh Mechanist', 'Nine Lives', 'Oona''s Grace', 'Wonder', 'Tranquil Thicket', 'Rule of Law', 'Chain Lightning', 'Otherworldly Journey', 'Ornithopter', 'Heartless Act', 'Woodfall Primus', 'Izzet Charm', 'Hieroglyphic Illumination', 'Tidehollow Sculler', 'Wayward Guide-Beast', 'Arlinn Kord', 'Tear Asunder', 'Sulfur Falls', 'Curiosity', 'Gruul Spellbreaker', 'Vampire Neonate', 'Rise // Fall', 'Eerie Ultimatum', 'Snow-Covered Mountain', 'Birds of Paradise', 'Ezuri, Renegade Leader', 'Sever the Bloodline', 'Shalai, Voice of Plenty', 'Divest', 'Froghemoth', 'Satyr Wayfinder', 'Koth, Fire of Resistance', 'Mishra''s Research Desk', 'Fruit of Tizerus', 'Draugr Necromancer', 'Forked Bolt', 'Mina and Denn, Wildborn', 'Eternal Scourge', 'Helm of the Host', 'Ashenmoor Liege', 'Notorious Throng', 'Time of Need', 'Dead Weight', 'Drowned Rusalka', 'Nether Spirit', 'Ambush Viper', 'Goblin Electromancer', 'Barter in Blood', 'Akiri, Fearless Voyager', 'Vapor Snag', 'Cryptic Caves', 'Hideous End', 'Yisan, the Wanderer Bard', 'Might of Old Krosa', 'Pyrite Spellbomb', 'Nested Shambler', 'Lingering Souls', 'Deep Analysis', 'Gather the Pack', 'Fae of Wishes', 'Wilt', 'Murmuring Bosk', 'Rift Bolt', 'Trace of Abundance', 'Destiny Spinner', 'Timely Reinforcements', 'Dryad Militant', 'Ruric Thar, the Unbowed', 'Revitalize', 'Vines of Vastwood', 'Haunted Mire', 'Pyroclasm', 'Kessig Wolf Run', 'Hypergenesis', 'Gird for Battle', 'Bogardan Hellkite', 'Out of Time', 'Garruk Wildspeaker', 'Fire Prophecy', 'Favored Hoplite', 'Vindicate', 'Dokuchi Silencer', 'Deprive', 'Rise and Shine', 'Commence the Endgame', 'Orzhov Basilica', 'Shriekmaw', 'Harbinger of the Tides', 'Sylvan Caryatid', 'Spectral Procession', 'Dakkon, Shadow Slayer', 'Kemba, Kha Enduring', 'Nimbus Maze', 'Future Sight', 'Yavimaya Coast', 'Commune with Spirits', 'Murderous Cut', 'Wizard''s Retort', 'Cataclysmic Gearhulk', 'Thawing Glaciers', 'Dying to Serve', 'Mesmeric Fiend', 'Circular Logic', 'Bring the Ending', 'Erebos''s Intervention', 'Bloodsoaked Champion', 'Guile', 'Mindslaver', 'Skirk Prospector', 'Pack Rat', 'Midnight Reaper', 'The Flame of Keld', 'Marit Lage''s Slumber', 'Genesis Ultimatum', 'Goblin Dark-Dwellers', 'Forbidden Alchemy', 'Shivan Reef', 'Boreal Shelf', 'Commune with the Gods', 'Demigod of Revenge', 'Terramorphic Expanse', 'Urban Evolution', 'Ashen Rider', 'Unsubstantiate', 'Smuggler''s Copter', 'Cauldron Familiar', 'Demonic Bargain', 'Swiftfoot Boots', 'Dragon''s Hoard', 'Swooping Lookout', 'Corrupted Crossroads', 'Midnight Guard', 'Ravenous Squirrel', 'Molten Tributary', 'Annex Sentry', 'Pull from Tomorrow', 'Temple of Abandon', 'Pardic Miner', 'Tendo Ice Bridge', 'Second Sunrise', 'Myth Realized', 'Bloodvial Purveyor', 'Oona''s Prowler', 'Invasion of Amonkhet', 'Tilling Treefolk', 'Dark-Dweller Oracle', 'Founding the Third Path', 'Precinct Captain', 'Grafted Butcher', 'Corpse Cur', 'Selesnya Guildgate', 'Wolfbriar Elemental', 'Presence of Gond', 'The Scorpion God', 'Barbed Sextant', 'Ramunap Excavator', 'Late to Dinner', 'Epic Experiment', 'Rites of Spring', 'Phoenix Chick', 'Phyrexian Dreadnought', 'Arcbound Ravager', 'Eldrazi Skyspawner', 'Crawling Barrens', 'Union of the Third Path', 'Vampiric Rites', 'Chief Engineer', 'Commit // Memory', 'Jungle Hollow', 'Eiganjo Castle', 'Sol Talisman', 'Arbalest Engineers', 'Botanical Plaza', 'Deliberate', 'Empyrial Plate', 'Razortide Bridge', 'Blessed Alliance', 'Kitesail Freebooter', 'Thopter Mechanic', 'Blanchwood Prowler', 'Consult the Necrosages', 'Spectral Shift', 'Master of Death', 'Caldera Hellion', 'Commune with Nature', 'Champion of Wits', 'Lodestone Golem', 'Touch the Spirit Realm', 'Stoic Rebuttal', 'Dead of Winter', 'Ulcerate', 'Sandwurm Convergence', 'Nimble Larcenist', 'Reveillark', 'Angel of Serenity', 'Evangel of Synthesis', 'Thrash // Threat', 'Sheoldred''s Edict', 'Dimir Aqueduct', 'Prophetic Prism', 'Fade from Memory', 'Halana and Alena, Partners', 'Kaito, Dancing Shadow', 'Genesis Hydra', 'Solemnity', 'Grolnok, the Omnivore', 'Chandra, Pyromaster', 'Flame Rift', 'Burning of Xinye', 'Zombie Infestation', 'Angel of Despair', 'The Celestus', 'Kor Skyfisher', 'Nezumi Informant', 'Wood Elves', 'Grand Abolisher', 'Nullpriest of Oblivion', 'Rustvale Bridge', 'Sandsteppe Citadel', 'Tymaret, Chosen from Death', 'Varolz, the Scar-Striped', 'Consuming Vapors', 'Raging Ravine', 'Vedalken Heretic', 'Etherium Sculptor', 'Witching Well', 'Bituminous Blast', 'Kjeldoran Outpost', 'Merciless Eviction', 'Fertile Ground', 'Grim Haruspex', 'Kiora Bests the Sea God', 'Oust', 'Hissing Quagmire', 'Lightning Spear', 'Mikokoro, Center of the Sea', 'Moorland Haunt', 'Sacred Peaks', 'Unburial Rites', 'Assault // Battery', 'Morsel Theft', 'Sinew Sliver', 'Raffine''s Informant', 'Jungle Shrine', 'Secluded Steppe', 'Bubbling Muck', 'Unctus, Grand Metatect', 'Supreme Will', 'Mindcrank', 'Reckless Charge', 'Duress', 'Needle Spires', 'Altered Ego', 'Spatial Contortion', 'Vraska''s Fall', 'Haunted Fengraf', 'Crux of Fate', 'See Beyond', 'Rain of Tears', 'Invigorate', 'Elemental Masterpiece', 'Raze to the Ground', 'Disciple of Bolas', 'Drainpipe Vermin', 'Chandra, Fire Artisan', 'Grenzo, Dungeon Warden', 'Chandra, Flamecaller', 'Farhaven Elf', 'Knowledge Pool', 'Scrying Sheets', 'Thopter Spy Network', 'Doomskar', 'Flood Plain', 'Heap Doll', 'Tresserhorn Sinks', 'Elvish Mystic', 'Increasing Ambition', 'Ghitu Lavarunner', 'Rally the Ancestors', 'Mirage Mirror', 'Frost Marsh', 'Galvanic Relay', 'Oblivion Ring', 'Fetid Heath', 'Oona, Queen of the Fae', 'Psychatog', 'Viscera Seer', 'Folio of Fancies', 'Staff of Domination', 'Cabaretti Courtyard', 'Worship', 'Karumonix, the Rat King', 'Temple of Mystery', 'Purify the Grave', 'Lagrella, the Magpie', 'Shard Volley', 'Mirran Crusader', 'Tomebound Lich', 'Diffusion Sliver', 'Kitchen Imp', 'Forgotten Cave', 'Ghostly Flicker', 'Expedition Envoy', 'Basilisk Collar', 'Throne of the God-Pharaoh', 'Sunlit Marsh', 'Ayara, First of Locthwain', 'Bloodbraid Elf', 'Archangel of Wrath', 'Graven Cairns', 'Wasteland Strangler', 'Izzet Boilerworks', 'Avacyn''s Pilgrim', 'Wooded Bastion', 'Discovery // Dispersal', 'Zephyr Singer', 'Venser, Corpse Puppet', 'Frantic Inventory', 'Xerex Strobe-Knight', 'Mistcutter Hydra', 'Joint Exploration', 'Ivory Tower', 'Temple of Deceit', 'Maze''s End', 'Tanglepool Bridge', 'Fyndhorn Elves', 'Tendrils of Agony', 'Of One Mind', 'Vivid Marsh', 'Solitary Confinement', 'Gather the Townsfolk', 'Reinforced Ronin', 'Nameless Inversion', 'Ground Seal', 'Condemn', 'Putrid Imp', 'Goldmire Bridge', 'Glorybringer', 'Squee, Goblin Nabob', 'Wandering Fumarole', 'Flaying Tendrils', 'Blood on the Snow', 'Careful Cultivation', 'Sarkhan, the Dragonspeaker', 'Martyr of Sands', 'Dusk // Dawn', 'Search for Tomorrow', 'Death Cloud', 'Dimensional Infiltrator', 'Sorin, Vengeful Bloodlord', 'Vault of the Archangel', 'Sculpting Steel', 'Invasion of Regatha', 'Seal of Cleansing', 'Assemble the Legion', 'Llanowar Augur', 'Jukai Naturalist', 'Angel of Grace', 'Kami of False Hope', 'Rakdos''s Return', 'Victim of Night', 'Idyllic Tutor', 'Stern Dismissal', 'Territorial Kavu', 'Plated Geopede', 'Arcum''s Astrolabe', 'Benevolent Bodyguard', 'Radiant Grove', 'Nekrataal', 'Recurring Nightmare', 'Silundi Vision', 'Argentum Armor', 'Change the Equation', 'Azorius Guildgate', 'Aetherspouts', 'Kor Firewalker', 'Lead the Stampede', 'Spikefield Hazard', 'Hall of Oracles', 'Phalanx Leader', 'Hypnotic Specter', 'Lantern-Lit Graveyard', 'Voidwing Hybrid', 'Ghost Quarter', 'Ethereal Armor', 'Mwonvuli Acid-Moss', 'Archon of Sun''s Grace', 'Tribal Flames', 'Glacial Fortress', 'Isolated Chapel', 'Universal Automaton', 'Sinister Concoction', 'Evolving Wilds', 'Dark Petition', 'Gallia of the Endless Dance', 'Brineborn Cutthroat', 'Devil''s Play', 'Fracturing Gust', 'Rites of Initiation', 'Unmarked Grave', 'Ransack the Lab', 'Crawling Chorus', 'Raise the Alarm', 'Vivid Crag', 'Elves of Deep Shadow', 'King Darien XLVIII', 'Price of Progress', 'Collected Conjuring', 'Merrow Reejerey', 'Snow-Covered Swamp', 'Thirst for Meaning', 'Summer Bloom', 'Ichorclaw Myr', 'Odds // Ends', 'Rakdos Cackler', 'Orim''s Chant', 'Racers'' Ring', 'Approach of the Second Sun', 'Settle the Wreckage', 'Kunoros, Hound of Athreos', 'Kefnet the Mindful', 'Vraan, Executioner Thane', 'Sheltered Thicket', 'Elvish Archdruid', 'Brainstone', 'Progenitor Exarch', 'Teneb, the Harvester', 'Graveborn Muse', 'Voltage Surge', 'Felidar Cub', 'Battle of Wits', 'Experimental Synthesizer', 'Kumano Faces Kakkazan', 'Gruul Turf', 'Bontu''s Last Reckoning', 'Defiant Strike', 'Clifftop Retreat', 'Putrefy', 'Utter End', 'Concealing Curtains', 'Okina, Temple to the Grandfathers', 'Kazandu Blademaster', 'Harmonize', 'Barbarian Ring', 'Argentum Masticore', 'Dread Wanderer', 'Chief of the Foundry', 'Glint-Sleeve Siphoner', 'Terminate', 'Nissa, Steward of Elements', 'Blade Splicer', 'Altar of the Brood', 'Temple of Epiphany', 'Obzedat, Ghost Council', 'Possibility Storm', 'Rust Goliath', 'Rally the Peasants', 'Dauntless Bodyguard', 'Esper Charm', 'Night Market Lookout', 'Deep Forest Hermit', 'Contaminated Aquifer', 'Kiora, the Crashing Wave', 'Vraska''s Contempt', 'Akoum Hellhound', 'Stinkdrinker Bandit', 'Fiery Justice', 'Third Path Iconoclast', 'Sigrid, God-Favored', 'Repeal', 'Monument to Perfection', 'Phyrexian Unlife', 'Green Sun''s Twilight', 'Giant Killer', 'Armored Scrapgorger', 'Thraben Inspector', 'Arcane Sanctum', 'Seal of Removal', 'Repudiate // Replicate', 'Dark Ritual', 'Obscura Charm', 'Simic Guildgate', 'Abyssal Persecutor', 'Sin Collector', 'Baneful Omen', 'Vadrik, Astral Archmage', 'Declaration in Stone', 'Reckoner''s Bargain', 'Graven Lore', 'Drowner of Hope', 'Maelstrom Pulse', 'Orcish Lumberjack', 'Elixir of Immortality', 'Mana Leak', 'Rune Snag', 'Voldaren Pariah', 'Banishing Slash', 'Brokers Hideout', 'Distorted Curiosity', 'Smallpox', 'Fetid Pools', 'Myr Battlesphere', 'Yorion, Sky Nomad', 'Felidar Retreat', 'Cultivate', 'Forbid', 'Mazemind Tome', 'Whispersilk Cloak', 'Faerie Miscreant', 'Elderscale Wurm', 'Spirited Companion', 'Festering Newt', 'Krosan Grip', 'Vampire Hexmage', 'Huatli, Radiant Champion', 'Exclude', 'Resurgent Belief', 'Valakut Exploration', 'Mistveil Plains', 'Temple of Silence', 'Memoricide', 'Doomed Traveler', 'Angrath, the Flame-Chained', 'Ancient Amphitheater', 'Heliod''s Intervention', 'Icehide Golem', 'Kappa Tech-Wrecker', 'Artistic Refusal', 'Tribute to Hunger', 'Merfolk Sovereign', 'Alms of the Vein', 'Cartel Aristocrat', 'Malakir Rebirth', 'Dire-Strain Rampage', 'Fiery Temper', 'Memory Lapse', 'Summary Dismissal', 'Slaughter Pact', 'Gravelgill Duo', 'Voyaging Satyr', 'Bilious Skulldweller', 'Thrill of Possibility', 'Quicken', 'Opulent Palace', 'Divinity of Pride', 'Frostwalk Bastion', 'Melira, the Living Cure', 'Peek', 'Saproling Migration', 'Sculpted Perfection', 'Temple of Enlightenment', 'Shred Memory', 'Ertai''s Scorn', 'Overgrowth', 'Curious Homunculus', 'Yasharn, Implacable Earth', 'Skyclave Shade', 'Sweltering Suns', 'Myr Superion', 'Control Magic', 'Hour of Promise', 'Chittering Rats', 'Grand Arbiter Augustin IV', 'Idyllic Beachfront', 'Stasis Snare', 'Shrieking Affliction', 'Delver of Secrets', 'Ral, Storm Conduit', 'Smoldering Marsh', 'Empty the Warrens', 'Riveteers Charm', 'Blight Mamba', 'Invasion of Kaladesh', 'Narcomoeba', 'Meeting of Minds', 'Stir the Grave', 'Rakdos Guildgate', 'Glimpse of Tomorrow', 'Torens, Fist of the Angels', 'Psychic Possession', 'Malicious Malfunction', 'Nature''s Lore', 'Servo Exhibition', 'Heliod''s Pilgrim', 'Chamber Sentry', 'Ponder', 'Feed the Swarm', 'Zuran Orb', 'Blue Sun''s Zenith', 'Disrupting Shoal', 'Tolarian Terror', 'Jor Kadeen, First Goldwarden', 'Angel of Condemnation', 'Circuit Mender', 'Open the Gates', 'Grave Scrabbler', 'Ancestral Blade', 'Empyrial Armor', 'Abundant Growth', 'Nomad Outpost', 'Terrarion', 'Sunblade Samurai', 'Siege Rhino', 'Deeproot Waters', 'Endbringer', 'Rotting Rats', 'Kozilek''s Predator', 'Tezzeret''s Gambit', 'Genesis Wave', 'Remorseful Cleric', 'Mastermind''s Acquisition', 'Mulch', 'Liliana Vess', 'Cut Down', 'Gideon''s Intervention', 'Grave Titan', 'Llanowar Elves', 'Ammit Eternal', 'Inevitable Betrayal', 'Tribute to Horobi', 'Cloudpost', 'Yawgmoth''s Bargain', 'Sylvan Advocate', 'Drossforge Bridge', 'Slip Out the Back', 'Detention Sphere', 'Bolas''s Citadel', 'Gift of Immortality', 'Acidic Slime', 'Pillage', 'Thornglint Bridge', 'Reflector Mage', 'Dead // Gone', 'Phyrexian Revoker', 'Frost Titan', 'Invasion of Azgol', 'Bloodline Keeper', 'Hada Freeblade', 'Succumb to Temptation', 'Smother', 'General Ferrous Rokiric', 'Lurrus of the Dream-Den', 'Venser, Shaper Savant', 'Herd Migration', 'Scab-Clan Berserker', 'Tectonic Edge', 'Hornet Queen', 'Fierce Empath', 'Scuttling Doom Engine', 'Hesitation', 'Inscription of Ruin', 'Scarab Feast', 'Priest of the Haunted Edge', 'Secluded Courtyard', 'Grand Architect', 'Karn''s Bastion', 'Rix Maadi Reveler', 'Fumigate', 'Honor of the Pure', 'Seedcradle Witch', 'River of Tears', 'Scour All Possibilities', 'Dreadhorde Butcher', 'Aetherling', 'Obscura Storefront', 'Wall of Omens', 'Pain Seer', 'Bloodchief Ascension', 'Choked Estuary', 'Castigate', 'Stirring Wildwood', 'Geothermal Bog', 'Yahenni''s Expertise', 'Gutterbones', 'Sphinx''s Herald', 'Unholy Heat', 'Drake Haven', 'Triumphant Adventurer', 'Slagwoods Bridge', 'Cloudshredder Sliver', 'Shaman of the Pack', 'Obliterate', 'Boon-Bringer Valkyrie', 'Vampire Lacerator', 'Check for Traps', 'Ogre Slumlord', 'Diabolic Tutor', 'Herd Baloth', 'Elvish Rejuvenator', 'Rampant Growth', 'Mistvault Bridge', 'Pillar of the Paruns', 'Brave the Elements', 'Venerated Loxodon', 'Archpriest of Shadows', 'Kaya, Ghost Assassin', 'Brave the Sands', 'Spellweaver Helix', 'Snow-Covered Plains', 'Treasure Cruise', 'Talisman of Unity', 'Bident of Thassa', 'Necrogen Spellbomb', 'Tomb of Urami', 'Unbreakable Formation', 'Kalastria Healer', 'Day of Judgment', 'Malcator, Purity Overseer', 'Temple of Plenty', 'Makeshift Mannequin', 'Council''s Judgment', 'Lose Focus', 'Leonin Arbiter', 'Volt Charge', 'Radha, Heart of Keld', 'Marwyn, the Nurturer', 'Gift of Estates', 'Archangel Avacyn', 'Inscribed Tablet', 'Mouth of Ronom', 'Strike It Rich', 'Nimble Trapfinder', 'Sunstrike Legionnaire', 'Deafening Clarion', 'Scrabbling Claws', 'Think Twice', 'Surge of Salvation', 'Gigadrowse', 'Voidslime', 'Mesa Enchantress', 'Reckless Rage', 'Merfolk Mistbinder', 'Wanderwine Hub', 'Go for the Throat', 'Shizo, Death''s Storehouse', 'Resolute Reinforcements', 'Mothdust Changeling', 'Drown in Ichor', 'Ardent Recruit', 'Simian Sling', 'Ranger of Eos', 'Energy Refractor', 'Springleaf Drum', 'Herald of the Pantheon', 'Apostle''s Blessing', 'Academy Loremaster', 'Eidolon of Blossoms', 'Jwari Disruption', 'Gitaxian Probe', 'Jokulhaups', 'Mausoleum Secrets', 'Verduran Enchantress', 'Bogbrew Witch', 'Big Score', 'Invasion of Zendikar', 'Gadrak, the Crown-Scourge', 'Eldrazi Displacer', 'Gnat Miser', 'Scattered Groves', 'Falkenrath Pit Fighter', 'Timeless Witness', 'Oni-Cult Anvil', 'Silver-Fur Master', 'Restoration Angel', 'Quest for the Holy Relic', 'Figure of Destiny', 'Impulse', 'Woodland Cemetery', 'Duplicant', 'Master of Etherium', 'Teferi, Mage of Zhalfir', 'Fact or Fiction', 'Experimental Augury', 'Canyon Slough', 'Lotus Cobra', 'Bump in the Night', 'Lost Legacy', 'Slogurk, the Overslime', 'Hinterland Harbor', 'Invasion of New Capenna', 'Azorius Charm', 'Sea-Dasher Octopus', 'Murderous Redcap', 'Sphere of Safety', 'Elspeth Conquers Death', 'Mulldrifter', 'Rakdos Charm', 'Elite Inquisitor', 'Expedite', 'Languish', 'Orzhov Charm', 'Bitter Reunion', 'Tidespout Tyrant', 'Porphyry Nodes', 'Inkwell Leviathan', 'Cabal Therapist', 'Leonin Lightscribe', 'Satyr Hoplite', 'Benthic Biomancer', 'Nimble Obstructionist', 'Patchwork Automaton', 'Saffi Eriksdotter', 'Greater Gargadon', 'Prosperous Thief', 'Pyretic Ritual', 'Scrapheap Scrounger', 'Auriok Sunchaser', 'Negate', 'Sunpetal Grove', 'Phantasmal Image', 'Upheaval', 'Glistener Elf', 'Ancient Ziggurat', 'Battlefield Forge', 'Lochmere Serpent', 'Tainted Indulgence', 'Frontier Bivouac', 'Stupor', 'Enchantress''s Presence', 'Brain Freeze', 'Devious Cover-Up', 'Knight of the White Orchid', 'Caves of Koilos', 'Talisman of Curiosity', 'Shimmerdrift Vale', 'Carven Caryatid', 'Arch of Orazca', 'Faerie Vandal', 'Skyshroud Elf', 'Chaotic Transformation', 'Artisan of Kozilek', 'Zur''s Weirding', 'Cleansing Wildfire', 'Thassa''s Intervention', 'Fireblade Charger', 'Ishkanah, Grafwidow', 'Into the Story', 'Cathartic Reunion', 'Tyrant''s Choice', 'Frantic Search', 'Wrath of God', 'Ayli, Eternal Pilgrim', 'Frenetic Sliver', 'Temple of Triumph', 'Venser, the Sojourner', 'Arguel''s Blood Fast', 'Mindsplice Apparatus', 'Basking Rootwalla', 'Westvale Abbey', 'Titania, Protector of Argoth', 'Sins of the Past', 'Darksteel Citadel', 'Sudden Edict', 'Sign in Blood', 'Silversmote Ghoul', 'Thragtusk', 'Stromkirk Noble', 'Combat Research', 'Seething Song', 'Dream Trawler', 'Oracle of Tragedy', 'Hyena Umbra', 'Incinerate', 'Sarkhan the Masterless', 'Dismal Backwater', 'Elvish Visionary', 'Delay', 'Sylvan Library', 'Arbor Elf', 'Nezahal, Primal Tide', 'Predatory Sliver', 'Leonin Warleader', 'Wild Cantor', 'Syphon Life', 'Bubbling Cauldron', 'Gilt-Leaf Archdruid', 'Protect the Negotiators', 'Judge''s Familiar', 'Oath of Teferi', 'Boros Guildgate', 'Prologue to Phyresis', 'Gnawing Vermin', 'Wrenn''s Resolve', 'Platinum Angel', 'Tocasia''s Dig Site', 'Llanowar Mentor', 'Lightning Strike', 'Pariah', 'Darksteel Colossus', 'Misery Charm', 'Explore', 'Earthquake', 'Golgari Rot Farm', 'Gideon Jura', 'Elas il-Kor, Sadistic Pilgrim', 'Squadron Hawk', 'Evacuation', 'Stone Haven Outfitter', 'Mnemonic Sphere', 'Lazotep Chancellor', 'Blood Artist', 'Floriferous Vinewall', 'Cathedral of War', 'Hostage Taker', 'Din of the Fireherd', 'The Seedcore', 'Sprite Dragon', 'Ulvenwald Hydra', 'Dispatch', 'Sterling Grove', 'Augur of Bolas', 'Hope of Ghirapur', 'Stoke the Flames', 'Briarbridge Tracker', 'Unlucky Witness', 'Lavaclaw Reaches', 'Cliffside Lookout', 'Dimir Guildgate', 'Demolition Field', 'Vivid Grove', 'Corrupted Conviction', 'Anafenza, Kin-Tree Spirit', 'Anafenza, the Foremost', 'Mortuary Mire', 'Sleight of Hand', 'Jace, Architect of Thought', 'Silumgar''s Scorn', 'World Shaper', 'Gleeful Demolition', 'Curse of Exhaustion', 'Mistblade Shinobi', 'Abzan Charm', 'Hanweir Garrison', 'Stinkweed Imp', 'Dark Prophecy', 'Night of Souls'' Betrayal', 'Timeless Dragon', 'Tezzeret, Artifice Master', 'Pharika''s Libation', 'Cabal Initiate', 'Ovika, Enigma Goliath', 'Flametongue Kavu', 'Duneblast', 'Seismic Assault', 'Shrapnel Blast', 'Silent Gravestone', 'Colossal Skyturtle', 'Ossification', 'Twinshot Sniper', 'Runed Halo', 'Sea Gate Oracle', 'Silverblade Paladin', 'Kogla, the Titan Ape', 'Marble Diamond', 'Ephara, God of the Polis', 'Buried Ruin', 'Rocco, Cabaretti Caterer', 'Nether Traitor', 'Vexing Shusher', 'Teshar, Ancestor''s Apostle', 'Fallaji Archaeologist', 'Polukranos, World Eater', 'Ghostfire Blade', 'Call of the Death-Dweller', 'Viashino Pyromancer', 'Forsake the Worldly', 'Invisible Stalker'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Canopy Vista', 'Midnight Reaper', 'Dusk // Dawn', 'Shivan Reef', 'Dreams of Steel and Oil', 'Banishing Slash', 'Toolcraft Exemplar', 'Raise the Alarm', 'Runed Halo', 'Arbalest Engineers', 'Crux of Fate', 'Presence of Gond', 'Saproling Migration', 'Evangel of Synthesis', 'Fleecemane Lion', 'Idyllic Beachfront', 'Yavimaya Coast', 'Kor Skyfisher', 'Scrapwork Mutt', 'Frost Marsh', 'Terminate', 'Curse of Exhaustion', 'Tribal Flames', 'Protect the Negotiators', 'Bump in the Night', 'Cauldron Familiar', 'Nissa, Worldwaker', 'Detention Sphere', 'Nezumi Informant', 'Spell Burst', 'Second Sunrise', 'Lightning Spear', 'Sever the Bloodline', 'Nullpriest of Oblivion', 'Reckless Rage', 'Anguished Unmaking', 'Elves of Deep Shadow', 'Blessed Alliance', 'Surge of Salvation', 'Hour of Promise', 'Buried Ruin', 'Cryptic Caves', 'Demigod of Revenge', 'Platinum Angel', 'Demolition Field', 'Radiant Grove', 'Otherworldly Journey', 'Hypnotic Specter', 'Geyadrone Dihada', 'Silumgar, the Drifting Death', 'Tolarian Terror', 'Carven Caryatid', 'Faeburrow Elder', 'Tidehollow Sculler', 'Phyrexian Dreadnought', 'Black Sun''s Zenith', 'Abiding Grace', 'Norn''s Inquisitor', 'Pore Over the Pages', 'Yasharn, Implacable Earth', 'Expedition Envoy', 'Darksteel Citadel', 'Archpriest of Shadows', 'Disenchant', 'Healer''s Hawk', 'Kruphix''s Insight', 'Faerie Miscreant', 'Thaumatic Compass', 'Leonin Relic-Warder', 'Nimble Obstructionist', 'Choked Estuary', 'Hope of Ghirapur', 'Ashenmoor Liege', 'Hanweir Garrison', 'Scrabbling Claws', 'Tyrant''s Choice', 'Rakdos Charm', 'Llanowar Elves', 'Primal Command', 'Argentum Armor', 'Ulcerate', 'Godo, Bandit Warlord', 'Gather the Pack', 'Invasion of Ergamon', 'Pyroclasm', 'Kappa Tech-Wrecker', 'Sculpting Steel', 'Solitary Confinement', 'Skirk Prospector', 'All That Glitters', 'Cliffside Lookout', 'Viashino Pyromancer', 'Weathered Wayfarer', 'Ancestral Blade', 'Bolas''s Citadel', 'Ruric Thar, the Unbowed', 'Wasteland Strangler', 'Thraben Inspector', 'Mwonvuli Acid-Moss', 'Consume the Meek', 'Mikokoro, Center of the Sea', 'Meeting of Minds', 'Faith''s Reward', 'Goblin Bombardment', 'Dismal Backwater', 'Game Trail', 'Elspeth Conquers Death', 'Memoricide', 'Fiery Temper', 'Deep Analysis', 'Felidar Retreat', 'Greater Tanuki', 'Twinshot Sniper', 'Sacred Peaks', 'Joint Exploration', 'Arguel''s Blood Fast', 'Forsake the Worldly', 'Moderation', 'Fumigate', 'Utter End', 'Ossification', 'Hinterland Harbor', 'Progenitor Exarch', 'Rune Snag', 'Phalanx Leader', 'Phyrexian Revoker', 'Explore', 'Wanderwine Hub', 'Shimmer Dragon', 'Zuran Orb', 'Jace, Unraveler of Secrets', 'Return to the Ranks', 'Mistveil Plains', 'Siege Rhino', 'Thawing Glaciers', 'Halana and Alena, Partners', 'Frantic Search', 'Combat Thresher', 'Sin Prodder', 'Dross Skullbomb', 'Mistvault Bridge', 'Gigadrowse', 'Voltage Surge', 'Burst Lightning', 'Gather the Townsfolk', 'Needle Spires', 'Elvish Visionary', 'Falkenrath Pit Fighter', 'Farhaven Elf', 'Abzan Charm', 'Engulf the Shore', 'Stromkirk Noble', 'Hada Freeblade', 'Evolving Wilds', 'Murderous Cut', 'Slagwoods Bridge', 'Delver of Secrets', 'Shimmerdrift Vale', 'Forging the Anchor', 'Orzhov Basilica', 'Mind''s Desire', 'Avacyn''s Pilgrim', 'Elvish Rejuvenator', 'Nissa, Steward of Elements', 'Golgari Guildgate', 'Open the Gates', 'Slogurk, the Overslime', 'Union of the Third Path', 'Jukai Naturalist', 'Tocasia''s Dig Site', 'Hall of Oracles', 'Arch of Orazca', 'Venser, Shaper Savant', 'Wizard''s Retort', 'Destroy Evil', 'Rotting Rats', 'Might of Old Krosa', 'Academy Loremaster', 'Aetherling', 'Rain of Tears', 'Silumgar''s Scorn', 'Sinister Concoction', 'Dark-Dweller Oracle', 'Rust Goliath', 'Arcane Sanctum', 'Ponder', 'Mastermind''s Acquisition', 'Hero''s Downfall', 'Shrieking Affliction', 'Spell Pierce', 'Archon of Sun''s Grace', 'Rustvale Bridge', 'Vraska''s Contempt', 'Stir the Grave', 'Spikefield Hazard', 'Ashen Rider', 'Endbringer', 'Gitaxian Probe', 'Bring the Ending', 'Thornglint Bridge', 'Inscription of Ruin', 'Crystal Grotto', 'Tanglepool Bridge', 'Battle of Wits', 'Angel of Despair', 'Stirring Wildwood', 'Invasion of Azgol', 'Sandsteppe Citadel', 'Brave the Elements', 'Izzet Guildgate', 'Oblivion Ring', 'Ral, Storm Conduit', 'Mindslaver', 'Merrow Reejerey', 'Volt Charge', 'Sin Collector', 'Price of Progress', 'Bident of Thassa', 'Alms of the Vein', 'Jwari Shapeshifter', 'Epic Experiment', 'Wild Cantor', 'Fact or Fiction', 'Artisan of Kozilek', 'Postmortem Lunge', 'Mausoleum Secrets', 'Akiri, Fearless Voyager', 'Huatli, Radiant Champion', 'Gideon''s Intervention', 'Universal Automaton', 'Karn''s Bastion', 'Giant Killer', 'Rootbound Crag', 'Seal of Cleansing', 'Riveteers Charm', 'Tear Asunder', 'Circuit Mender', 'Assault // Battery', 'Grave Scrabbler', 'Temple of Silence', 'Kemba, Kha Regent', 'Bone Shards', 'Glimpse of Tomorrow', 'Silverblade Paladin', 'Luminarch Ascension', 'Akoum Hellhound', 'Ogre Slumlord', 'Unsubstantiate', 'Karumonix, the Rat King', 'Vampire Lacerator', 'Condemn', 'The Scorpion God', 'Throat Slitter', 'Bloodsoaked Champion', 'Memory Lapse', 'Archfiend''s Vessel', 'Sultai Charm', 'Temple of Mystery', 'Surrak, the Hunt Caller', 'Ghostfire Blade', 'Sorin, Vengeful Bloodlord', 'Deliberate', 'Thrash // Threat', 'Voidslime', 'Opulent Palace', 'Declaration in Stone', 'Stinkdrinker Bandit', 'Kalastria Healer', 'Hypergenesis', 'Lizard Blades', 'Apostle''s Blessing', 'Pain Seer', 'Teneb, the Harvester', 'Raze to the Ground', 'Flooded Grove', 'Dying to Serve', 'Settle the Wreckage', 'Ancient Ziggurat', 'Waking the Trolls', 'Breya''s Apprentice', 'Doomskar', 'Doomed Traveler', 'Notorious Throng', 'Sunstrike Legionnaire', 'Fierce Empath', 'Earthquake', 'Divinity of Pride', 'Silundi Vision', 'Steppe Lynx', 'Thundermaw Hellkite', 'Melira, Sylvok Outcast', 'Aetherblade Agent', 'Smuggler''s Copter', 'Nevermore', 'Secluded Courtyard', 'Jungle Hollow', 'Fire Prophecy', 'Graven Lore', 'Seismic Assault', 'Grenzo, Dungeon Warden', 'Mina and Denn, Wildborn', 'Drowned Catacomb', 'Wrath of God', 'Shape Anew', 'Bloodchief''s Thirst', 'Wrench Mind', 'Priest of the Haunted Edge', 'Kjeldoran Outpost', 'Day of Judgment', 'Lose Focus', 'Armored Scrapgorger', 'Genesis Ultimatum', 'Hieroglyphic Illumination', 'Assemble the Legion', 'White Sun''s Zenith', 'Okina, Temple to the Grandfathers', 'Of One Mind', 'Unctus, Grand Metatect', 'Mirran Crusader', 'Cabaretti Courtyard', 'Erebos''s Intervention', 'Mulch', 'Dimir Guildgate', 'Elvish Mystic', 'Lantern-Lit Graveyard', 'Woodfall Primus', 'Forbid', 'Eldrazi Displacer', 'Rampant Growth', 'Slip Out the Back', 'Shardless Agent', 'Sigil of the Empty Throne', 'Selesnya Guildgate', 'Chain Lightning', 'Vessel of Nascency', 'Grand Abolisher', 'Basilisk Collar', 'Farseek', 'Dakmor Salvage', 'Abundant Harvest', 'Zombie Infestation', 'Predatory Sliver', 'Festering Newt', 'Mortuary Mire', 'Figure of Destiny', 'Search for Azcanta', 'Vadrik, Astral Archmage', 'Deafening Clarion', 'Gruul Spellbreaker', 'Winds of Abandon', 'Empyrial Armor', 'Sculpted Perfection', 'Mistblade Shinobi', 'Touch the Spirit Realm', 'Ulvenwald Hydra', 'Orzhov Charm', 'Pardic Miner', 'Monument to Perfection', 'Knight of the Reliquary', 'Time of Need', 'Lochmere Serpent', 'Fracturing Gust', 'Fyndhorn Elves', 'Stinkweed Imp', 'Impulse', 'Self-Assembler', 'Graveborn Muse', 'Marwyn, the Nurturer', 'Benevolent Bodyguard', 'Teshar, Ancestor''s Apostle', 'Varolz, the Scar-Striped', 'Counterflux', 'Shard Volley', 'Vault Skirge', 'Vivid Crag', 'Chief Engineer', 'Terminus', 'Floriferous Vinewall', 'Inevitable Betrayal', 'Tomebound Lich', 'Honor of the Pure', 'Jungle Shrine', 'Temple of Deceit', 'Pack Rat', 'Izzet Boilerworks', 'Gnat Miser', 'Slagstorm', 'Vault of the Archangel', 'Bogardan Hellkite', 'Skyshroud Elf', 'Invasion of Kaladesh', 'Tresserhorn Sinks', 'Vivid Grove', 'Dragon''s Hoard', 'Angrath, the Flame-Chained', 'Arcum''s Astrolabe', 'Obstinate Baloth', 'Kher Keep', 'Temple of Malady', 'Auriok Sunchaser', 'Maestros Charm', 'Experimental Synthesizer', 'Dryad Militant', 'Dead of Winter', 'Venser, Corpse Puppet', 'Bitter Reunion', 'Silent Gravestone', 'Rift Bolt', 'Nomad Outpost', 'Glint-Sleeve Siphoner', 'Tribute to Horobi', 'Groundswell', 'Approach of the Second Sun', 'Myth Realized', 'Tooth and Nail', 'Worship', 'Sunlit Marsh', 'Zur''s Weirding', 'Mulldrifter', 'Orim''s Chant', 'Prosperous Thief', 'Seal of Fire', 'Pillage', 'Servo Exhibition', 'Felidar Cub', 'Caldera Hellion', 'Harbinger of the Tides', 'Rakdos Cackler', 'Blightning', 'Ichorclaw Myr', 'Sheoldred''s Edict', 'Blightbelly Rat', 'Fangren Marauder', 'Circular Logic', 'Brokers Hideout', 'Ephara, God of the Polis', 'Galerider Sliver', 'Talisman of Curiosity', 'Gateway Plaza', 'Oona, Queen of the Fae', 'Frenetic Sliver', 'Quest for the Holy Relic', 'Supreme Will', 'Thopter Spy Network', 'Angel of Condemnation', 'Mothdust Changeling', 'Succumb to Temptation', 'Terramorphic Expanse', 'Seething Song', 'Hornet Queen', 'Stoic Rebuttal', 'Boreal Shelf', 'Rocco, Cabaretti Caterer', 'Valakut Exploration', 'Diffusion Sliver', 'Forgotten Cave', 'Bubbling Muck', 'Late to Dinner', 'Annex Sentry', 'Verduran Enchantress', 'Abyssal Persecutor', 'Teferi, Mage of Zhalfir', 'Knowledge Pool', 'Stubborn Denial', 'Clifftop Retreat', 'Ghost Quarter', 'Sylvan Caryatid', 'Quiet Speculation', 'Embodiment of Fury', 'Raven''s Crime', 'Xenagos, the Reveler', 'Marit Lage''s Slumber', 'River of Tears', 'Torens, Fist of the Angels', 'Obzedat, Ghost Council', 'Drainpipe Vermin', 'Disallow', 'Repudiate // Replicate', 'Kiora, the Crashing Wave', 'Dovin''s Acuity', 'Tectonic Edge', 'Smother', 'Nephalia Drownyard', 'Nature''s Lore', 'Rabbit Battery', 'Curious Homunculus', 'Martyr of Sands', 'Changeling Outcast', 'Azorius Guildgate', 'Call to the Grave', 'Kefnet the Mindful', 'Ancient Amphitheater', 'Lightning Strike', 'Cabal Therapist', 'Kambal, Consul of Allocation', 'Mystical Teachings', 'Altar of the Goyf', 'Zurgo Bellstriker', 'Rakdos Guildgate', 'Tendrils of Agony', 'Oracle of Mul Daya', 'Wayward Guide-Beast', 'Elvish Archdruid', 'Idyllic Tutor', 'Sudden Edict', 'Din of the Fireherd', 'Destiny Spinner', 'Concealing Curtains', 'Radha, Heart of Keld', 'Reinforced Ronin', 'Secluded Steppe', 'Ghostly Flicker', 'Orzhov Guildgate', 'Dregscape Zombie', 'Ransack the Lab', 'Kor Firewalker', 'Cataclysmic Gearhulk', 'Corrupted Crossroads', 'Vampiric Rites', 'Ambush Viper', 'Precursor Golem', 'Oath of Teferi', 'Dawn of Hope', 'Burning of Xinye', 'Witching Well', 'Terrarion', 'Master of Death', 'Whispersilk Cloak', 'Tribute to Hunger', 'Tilling Treefolk', 'Frostwalk Bastion', 'The Flame of Keld', 'Oath of Kaya', 'Chandra, Flamecaller', 'Ignite Memories', 'Serra Ascendant', 'Angel of Serenity', 'Become Immense', 'Eiganjo Castle', 'Gift of Immortality', 'Loxodon Smiter', 'Rites of Initiation', 'Glorybringer', 'Ash Zealot', 'Kazandu Blademaster', 'Venser, the Sojourner', 'Battle of Frost and Fire', 'Ravenous Squirrel', 'Fae of Wishes', 'Steel Overseer', 'Shaman of the Pack', 'Azorius Charm', 'Gleeful Demolition', 'Skyclave Shade', 'Devil''s Play', 'Fireblade Charger', 'Big Game Hunter', 'Seal of Removal', 'Drown in Ichor', 'Vigor', 'See Beyond', 'Feed the Swarm', 'Master of Etherium', 'Big Score', 'Snow-Covered Swamp', 'Mesa Enchantress', 'Yahenni''s Expertise', 'Wonder', 'Weapons Trainer', 'Benthic Biomancer', 'Nimbus Maze', 'Archaeomancer', 'Altar of the Brood', 'Kira, Great Glass-Spinner', 'Urban Evolution', 'Victim of Night', 'Reckoner''s Bargain', 'Dead Weight', 'Council''s Judgment', 'Flametongue Kavu', 'Elderscale Wurm', 'Deeproot Waters', 'Chaotic Transformation', 'Kozilek''s Predator', 'Razortide Bridge', 'Archangel of Wrath', 'Ishkanah, Grafwidow', 'Commune with Nature', 'Energy Refractor', 'Kitchen Finks', 'Bloodline Keeper', 'Ayli, Eternal Pilgrim', 'Brave the Sands', 'Flame Rift', 'Nine Lives', 'Artistic Refusal', 'Glamerdye', 'Darksteel Colossus', 'Decree of Justice', 'Pillar of the Paruns', 'Folio of Fancies', 'Wolfbriar Elemental', 'Vindicate', 'Think Twice', 'Glistener Elf', 'Phoenix Chick', 'Hissing Quagmire', 'Oni-Cult Anvil', 'Voidwing Hybrid', 'Devious Cover-Up', 'Night of Souls'' Betrayal', 'Collected Conjuring', 'Drake Haven', 'Baneful Omen', 'Stoke the Flames', 'Psychic Possession', 'Kogla, the Titan Ape', 'Icehide Golem', 'Sins of the Past', 'Solemn Simulacrum', 'Voldaren Pariah', 'Shambling Vent', 'Summary Dismissal', 'Bontu''s Last Reckoning', 'Ammit Eternal', 'Simic Guildgate', 'General Ferrous Rokiric', 'Precinct Captain', 'Archangel Avacyn', 'Swooping Lookout', 'Unbreakable Formation', 'Lodestone Golem', 'Eldrazi Skyspawner', 'Cremate', 'Nezumi Graverobber', 'Sea-Dasher Octopus', 'Divest', 'Fade from Memory', 'Lazotep Chancellor', 'Sol Talisman', 'Commit // Memory', 'Consuming Vapors', 'Ancient Stirrings', 'Bloodbraid Elf', 'Gnawing Vermin', 'Cut Down', 'Anafenza, Kin-Tree Spirit', 'Barbarian Ring', 'Unmarked Grave', 'Sinew Sliver', 'Ethersworn Sphinx', 'Genesis Wave', 'Anger of the Gods', 'Ground Seal', 'Leonin Arbiter', 'Simian Spirit Guide', 'Ghostly Pilferer', 'Heliod''s Pilgrim', 'Vexing Shusher', 'Malakir Rebirth', 'Shalai, Voice of Plenty', 'Shizo, Death''s Storehouse', 'Invisible Stalker', 'Morsel Theft', 'Basking Rootwalla', 'Vampire Hexmage', 'Vivid Marsh', 'Sunblade Samurai', 'Founding the Third Path', 'Golgari Rot Farm', 'Scrying Sheets', 'Ulamog''s Crusher', 'Moon-Circuit Hacker', 'Resurgent Belief', 'Zephyr Singer', 'Out of Time', 'Venerated Loxodon', 'Inkwell Leviathan', 'Dark Prophecy', 'Empyrial Plate', 'Mazemind Tome', 'Deprive', 'Woe Strider', 'Heap Doll', 'Vines of Vastwood', 'Satyr Wayfinder', 'Wilt', 'Invasion of Amonkhet', 'Goldmire Bridge', 'Vedalken Heretic', 'Deep Forest Hermit', 'Electrolyze', 'Helm of the Host', 'Brain Freeze', 'Botanical Plaza', 'Stern Dismissal', 'Misery Charm', 'Xerex Strobe-Knight', 'Smoldering Marsh', 'Sleight of Hand', 'Stone Haven Outfitter', 'Nekrataal', 'Sire of Insanity', 'Sterling Grove', 'Nether Traitor', 'Agonizing Remorse', 'Executioner''s Capsule', 'Unburial Rites', 'Commune with the Gods', 'Knight of the White Orchid', 'Gloomshrieker', 'Orcish Lumberjack', 'Halimar Excavator', 'Haunted Fengraf', 'Acidic Slime', 'Celestial Colonnade', 'Hard Evidence', 'Repeal', 'Maze''s End', 'Wooded Bastion', 'Duress', 'Necrogen Spellbomb', 'Ezuri, Renegade Leader', 'Scuttling Doom Engine', 'Izzet Charm', 'Turnabout', 'The Celestus', 'Voyaging Satyr', 'Barter in Blood', 'Wandering Fumarole', 'Commence the Endgame', 'Soltari Priest', 'Negate', 'Scour All Possibilities', 'Kabira Takedown', 'Languish', 'Aegis of the Gods', 'Into the Story', 'Hyena Umbra', 'Ethereal Armor', 'Jace, Architect of Thought', 'Sphere of Safety', 'Dream Trawler', 'Shrapnel Blast', 'Trace of Abundance', 'King Darien XLVIII', 'Disrupting Shoal', 'Blue Sun''s Zenith', 'Corpse Cur', 'Sweltering Suns', 'Bilious Skulldweller', 'Psychatog', 'Sign in Blood', 'Myr Superion', 'Isolated Chapel', 'Vampire Nighthawk', 'Drossforge Bridge', 'Incinerate', 'Evacuation', 'Lavinia of the Tenth', 'Wall of Omens', 'Desperate Ritual', 'Far // Away', 'Temple of Abandon', 'Delay', 'Boon-Bringer Valkyrie', 'Heliod''s Intervention', 'Odds // Ends', 'Nameless Inversion', 'Strike It Rich', 'Pyretic Ritual', 'Sulfur Falls', 'Gadrak, the Crown-Scourge', 'Corrupted Conviction', 'Gideon Jura', 'Sarkhan, the Dragonspeaker', 'Drowned Rusalka', 'Chandra, Pyromaster', 'Genesis Hydra', 'Resolute Reinforcements', 'Bloodchief Ascension', 'Ovika, Enigma Goliath', 'Gilt-Leaf Archdruid', 'Llanowar Augur', 'Sunpetal Grove', 'Llanowar Tribe', 'Ranger of Eos', 'Seeker of the Way', 'Ramunap Excavator', 'Kunoros, Hound of Athreos', 'Oona''s Grace', 'Change the Equation', 'Grand Arbiter Augustin IV', 'Gutterbones', 'Timely Reinforcements', 'Thrill of Possibility', 'Thopter Mechanic', 'Rally the Ancestors', 'Cathartic Reunion', 'Silversmote Ghoul', 'Boros Guildgate', 'Thornwood Falls', 'Scarab Feast', 'Viscera Seer', 'Rise and Shine', 'Spatial Contortion', 'Dragonskull Summit', 'Vryn Wingmare', 'Elite Inquisitor', 'Porphyry Nodes', 'Tendo Ice Bridge', 'Argentum Masticore', 'Remorseful Cleric', 'Demonic Bargain', 'Molten Tributary', 'Discovery // Dispersal', 'Dauntless Bodyguard', 'Oona''s Prowler', 'Call of the Death-Dweller', 'Sylvan Library', 'Harmonize', 'Temple of Enlightenment', 'Squee, Goblin Nabob', 'Squadron Hawk', 'Cabal Initiate', 'Sandwurm Convergence', 'Shriekmaw', 'Syphon Life', 'Glacial Fortress', 'Peek', 'Invasion of Zendikar', 'Blood on the Snow', 'Esper Charm', 'Prophetic Prism', 'Stupor', 'Diabolic Tutor', 'Rakdos''s Return', 'Angel of Grace', 'Tidespout Tyrant', 'Kemba, Kha Enduring', 'Oust', 'Graaz, Unstoppable Juggernaut', 'Fearless Fledgling', 'Throne of the God-Pharaoh', 'Mystic Monastery', 'Forked Bolt', 'Grave Titan', 'Melira, the Living Cure', 'Pharika''s Libation', 'Dire-Strain Rampage', 'Rise // Fall', 'Ghitu Lavarunner', 'Dimir Aqueduct', 'Talisman of Unity', 'Combat Research', 'Geomancer''s Gambit', 'Nested Shambler', 'Treasure Cruise', 'Liliana Vess', 'Herald of the Pantheon', 'Temple of Plenty', 'Experimental Augury', 'Death Cloud', 'Summer Bloom', 'Blanchwood Prowler', 'Reckless Charge', 'Mesmeric Fiend', 'Merfolk Mistbinder', 'Purify the Grave', 'Titania, Protector of Argoth', 'Chittering Rats', 'Timeless Witness', 'Urza''s Factory', 'Etherium Sculptor', 'Distorted Curiosity', 'Westvale Abbey', 'Exclude', 'Vraska''s Fall', 'Llanowar Mentor', 'Battlefield Forge', 'Akroan Crusader', 'Frantic Inventory', 'Champion of Wits', 'Elixir of Immortality', 'Expedite', 'Enchantress''s Presence', 'Gravelgill Duo', 'Aetherspouts', 'Swiftfoot Boots', 'Graven Cairns', 'Madcap Experiment', 'Ardent Recruit', 'Moorland Haunt', 'Thragtusk', 'Castigate', 'Curiosity', 'Simian Sling', 'Gird for Battle', 'Lost Legacy', 'Recurring Nightmare', 'Jwari Disruption', 'Scattered Groves', 'Timeless Dragon', 'Blight Mamba', 'Mishra''s Factory', 'Dreadhorde Butcher', 'Rix Maadi Reveler', 'Invasion of Regatha', 'Raging Ravine', 'Revitalize', 'Control Magic', 'Haunted Mire', 'Grafted Butcher', 'Ornithopter', 'Favored Hoplite', 'Lay Down Arms', 'Goblin Electromancer', 'Tangled Islet', 'Sprite Dragon', 'Grolnok, the Omnivore', 'Fertile Ground', 'Frontier Bivouac', 'Plated Geopede', 'Spirited Companion', 'Invoke Calamity', 'Night Market Lookout', 'Leonin Warleader', 'Yawgmoth''s Bargain', 'Racers'' Ring', 'Pariah', 'Kitesail Freebooter', 'Lingering Souls', 'Cartel Aristocrat', 'Fetid Heath', 'Bogbrew Witch', 'Galvanic Relay', 'Jokulhaups', 'Scab-Clan Berserker', 'Obliterate', 'Go for the Throat', 'Hesitation', 'Unlucky Witness', 'Seedcradle Witch', 'Spectral Procession', 'Fight as One', 'Sea Gate Oracle', 'Fruit of Tizerus', 'Cathedral of War', 'Grand Architect', 'Leonin Lightscribe', 'General''s Enforcer', 'Sheltered Thicket', 'Ivy Lane Denizen', 'Koth, Fire of Resistance', 'Dead // Gone', 'Maelstrom Pulse', 'Prologue to Phyresis', 'Stasis Snare', 'Putrid Imp', 'Crack the Earth', 'Faerie Vandal', 'Abundant Growth', 'Tocatli Honor Guard', 'Frost Titan', 'Dispatch', 'Grim Haruspex', 'Arcbound Ravager', 'Flood Plain', 'Snow-Covered Plains', 'Territorial Kavu', 'Lead the Stampede', 'Canyon Slough', 'Careful Cultivation', 'The Underworld Cookbook', 'Fetid Pools', 'Putrefy', 'Wood Elves', 'Sphinx''s Herald', 'Pharika''s Cure', 'Cloudpost', 'Cultivate', 'Drowner of Hope', 'Nimble Larcenist', 'Tangle', 'Wrenn''s Resolve', 'Increasing Ambition', 'Garruk Wildspeaker', 'Blade Splicer', 'Hostage Taker', 'Cult Conscript', 'Dread Wanderer', 'Elas il-Kor, Sadistic Pilgrim', 'Ivory Tower', 'Staff of Domination', 'Eternal Scourge', 'Unholy Heat', 'Arlinn Kord', 'Glimmerpost', 'Temple of Epiphany', 'Blood Artist', 'Mindsplice Apparatus', 'Greater Gargadon', 'Jor Kadeen, First Goldwarden', 'Disciple of Bolas', 'Elemental Masterpiece', 'Blazing Rootwalla', 'Yorion, Sky Nomad', 'Future Sight', 'Snow-Covered Mountain', 'Gruul Guildgate', 'Kami of False Hope', 'Froghemoth', 'Lotus Cobra', 'Nezumi Shortfang', 'Mana Leak', 'Fallaji Archaeologist', 'Gallia of the Endless Dance', 'Obscura Charm', 'Springleaf Drum', 'Empty the Warrens', 'Anafenza, the Foremost', 'Yisan, the Wanderer Bard', 'Kiora Bests the Sea God', 'Chief of the Foundry', 'Dimensional Infiltrator', 'Briarbridge Tracker', 'Sylvan Scrying', 'Cabal Ritual', 'Goblin Dark-Dwellers', 'Invigorate', 'Jace Beleren', 'Ral, Izzet Viceroy', 'Dokuchi Silencer', 'Geothermal Bog', 'Temple of Triumph', 'Merciless Eviction', 'Port Town', 'Pyrite Spellbomb', 'Brainstone', 'Network Disruptor', 'Sylvan Advocate', 'Tranquil Thicket', 'Inscribed Tablet', 'Overgrowth', 'Gift of Estates', 'Patchwork Automaton', 'Obscura Storefront', 'Chandra, Fire Artisan', 'Lavaclaw Reaches', 'Third Path Iconoclast', 'Rule of Law', 'Tezzeret, Artifice Master', 'Nezahal, Primal Tide', 'Rites of Spring', 'Lagrella, the Magpie', 'Silverbluff Bridge', 'Lurrus of the Dream-Den', 'Mistcutter Hydra', 'Commune with Spirits', 'Terastodon', 'Spellweaver Helix', 'Ashnod, Flesh Mechanist', 'Riveteers Overlook', 'Kumano Faces Kakkazan', 'Kaya, Ghost Assassin', 'Altered Ego', 'Triumphant Adventurer', 'Oracle of Tragedy', 'Dark Petition', 'Gruul Turf', 'The Seedcore', 'Colossal Skyturtle', 'Sunken Hollow', 'Myr Battlesphere', 'Mouth of Ronom', 'Chamber Sentry', 'Kaito, Dancing Shadow', 'Ally Encampment', 'Cleansing Wildfire', 'Coiling Oracle', 'Krosan Grip', 'Judge''s Familiar', 'Vampire Neonate', 'Herd Baloth', 'Solemnity', 'Phyrexian Unlife', 'Scrapheap Scrounger', 'Murmuring Bosk', 'Marauding Blight-Priest', 'Tempest Djinn', 'Cloudshredder Sliver', 'Smallpox', 'Draugr Necromancer', 'Yavimaya Iconoclast', 'World Shaper', 'Green Sun''s Twilight', 'Invasion of New Capenna', 'Stone Rain', 'Ensoul Artifact', 'Hideous End', 'Tezzeret''s Gambit', 'Eerie Ultimatum', 'Satyr Hoplite', 'Duneblast', 'Dissipate', 'Augur of Bolas', 'Heartless Act', 'Ertai''s Scorn', 'Mirage Mirror', 'Vapor Snag', 'Doom Blade', 'Duplicant', 'Aether Spellbomb', 'Into the Roil', 'Arbor Elf', 'Mindcrank', 'Brineborn Cutthroat', 'Murderous Redcap', 'Woodland Cemetery', 'Search for Tomorrow', 'Herd Migration', 'Malcator, Purity Overseer', 'Quicken', 'Forbidden Alchemy', 'Possibility Storm', 'Narcomoeba', 'Magister of Worth', 'Marble Diamond', 'Spectral Shift', 'Check for Traps', 'Tainted Indulgence', 'Nightscape Familiar', 'Dakkon, Shadow Slayer', 'Birds of Paradise', 'Crawling Barrens', 'Crawling Chorus', 'Nimble Trapfinder', 'Pull from Tomorrow', 'Upheaval', 'Polukranos, World Eater', 'Knight of New Alara', 'Reflector Mage', 'Reveillark', 'Eidolon of Blossoms', 'Tymaret, Chosen from Death', 'Vraan, Executioner Thane', 'Bloodvial Purveyor', 'Sarkhan the Masterless', 'Nether Spirit', 'Shred Memory', 'Silver-Fur Master', 'Saffi Eriksdotter', 'Barbed Sextant', 'Raffine''s Informant', 'Fiery Justice', 'Dark Ritual', 'Kessig Wolf Run', 'Mishra''s Research Desk', 'Guile', 'Knight of Glory', 'Makeshift Mannequin', 'Ayara, First of Locthwain', 'Rally the Peasants', 'Mirror Entity', 'Thirst for Meaning', 'Kitchen Imp', 'Caves of Koilos', 'Thassa''s Intervention', 'Mnemonic Sphere', 'Flaying Tendrils', 'Restoration Angel', 'Valiant Changeling', 'Bituminous Blast', 'Open the Armory', 'Merfolk Sovereign', 'Dread Return', 'Tomb of Urami', 'Contaminated Aquifer', 'Midnight Guard', 'Malicious Malfunction', 'Bubbling Cauldron', 'Phyrexian Censor', 'Slaughter Pact', 'Defiant Strike', 'Phantasmal Image', 'Consult the Necrosages', 'Sigrid, God-Favored', 'Hooting Mandrills'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Solitary Confinement', 'Tendo Ice Bridge', 'Secluded Steppe', 'Raven''s Crime', 'Sea-Dasher Octopus', 'Fight as One', 'Flame Rift', 'Izzet Guildgate', 'Karumonix, the Rat King', 'Tomebound Lich', 'Fallaji Archaeologist', 'Hideous End', 'Blightbelly Rat', 'Disciple of Bolas', 'Sarkhan the Masterless', 'Into the Roil', 'Seismic Assault', 'Devious Cover-Up', 'Smuggler''s Copter', 'Hero''s Downfall', 'Drowner of Hope', 'Ethereal Armor', 'Temple of Enlightenment', 'Dark Ritual', 'Sin Collector', 'Ichorclaw Myr', 'Silver-Fur Master', 'Chain Lightning', 'Graven Lore', 'Shimmer Dragon', 'Angel of Despair', 'Blightning', 'Bubbling Cauldron', 'Mindsplice Apparatus', 'Expedite', 'Big Game Hunter', 'Tidespout Tyrant', 'Torens, Fist of the Angels', 'Evacuation', 'General Ferrous Rokiric', 'Abundant Harvest', 'Drowned Catacomb', 'Shaman of the Pack', 'Nekrataal', 'Chandra, Pyromaster', 'Dross Skullbomb', 'Mishra''s Factory', 'Auriok Sunchaser', 'Quicken', 'Hard Evidence', 'Mnemonic Sphere', 'Ulcerate', 'Chittering Rats', 'Scab-Clan Berserker', 'Soltari Priest', 'Bilious Skulldweller', 'Mausoleum Secrets', 'Mwonvuli Acid-Moss', 'Winds of Abandon', 'Aegis of the Gods', 'Mesmeric Fiend', 'Dokuchi Silencer', 'Drake Haven', 'Spectral Procession', 'Plated Geopede', 'Dreams of Steel and Oil', 'Merfolk Mistbinder', 'Tempest Djinn', 'Ral, Izzet Viceroy', 'Esper Charm', 'Ivory Tower', 'Kemba, Kha Enduring', 'Overgrowth', 'Experimental Augury', 'Snow-Covered Mountain', 'Ranger of Eos', 'Gateway Plaza', 'Gruul Guildgate', 'Oona, Queen of the Fae', 'Putrid Imp', 'Elite Inquisitor', 'Garruk Wildspeaker', 'Unholy Heat', 'Sin Prodder', 'Gideon''s Intervention', 'Temple of Malady', 'Mirran Crusader', 'Spell Pierce', 'Fiery Temper', 'Knight of the Reliquary', 'Cult Conscript', 'Helm of the Host', 'Repudiate // Replicate', 'Nether Traitor', 'Teferi, Mage of Zhalfir', 'Basilisk Collar', 'Elvish Archdruid', 'Judge''s Familiar', 'Galerider Sliver', 'Phantasmal Image', 'Veinfire Borderpost', 'Sulfur Falls', 'Unlucky Witness', 'Terminus', 'Unctus, Grand Metatect', 'Cleansing Wildfire', 'Champion of Wits', 'Out of Time', 'Thaumatic Compass', 'Avacyn''s Pilgrim', 'Fetid Heath', 'Rally the Peasants', 'Dauntless Bodyguard', 'Assemble the Legion', 'Marble Diamond', 'Epic Experiment', 'Aether Spellbomb', 'Sigil of the Empty Throne', 'Fangren Marauder', 'Canyon Slough', 'Worship', 'Cryptic Caves', 'Hooting Mandrills', 'Radha, Heart of Keld', 'Crux of Fate', 'Reckless Rage', 'Myr Battlesphere', 'Glacial Fortress', 'Triumphant Adventurer', 'Silverbluff Bridge', 'Akroan Crusader', 'Glorybringer', 'Arbalest Engineers', 'Nimble Trapfinder', 'Settle the Wreckage', 'Invasion of Kaladesh', 'Angel of Grace', 'Destroy Evil', 'Meeting of Minds', 'Fruit of Tizerus', 'Dryad Militant', 'Satyr Hoplite', 'Artisan of Kozilek', 'Recurring Nightmare', 'Thopter Spy Network', 'Bloodbraid Elf', 'Fiery Justice', 'Acidic Slime', 'Archon of Sun''s Grace', 'Frost Titan', 'Bituminous Blast', 'Lizard Blades', 'Invigorate', 'Luminarch Ascension', 'Fertile Ground', 'Gruul Spellbreaker', 'Felidar Retreat', 'Altar of the Brood', 'Brave the Sands', 'Seal of Fire', 'Raging Ravine', 'Repeal', 'Pariah', 'Canopy Vista', 'Bitter Reunion', 'Tidehollow Sculler', 'Diabolic Tutor', 'Obliterate', 'Cremate', 'Whispersilk Cloak', 'Brineborn Cutthroat', 'Necrogen Spellbomb', 'Game Trail', 'Experimental Synthesizer', 'Open the Armory', 'Stupor', 'Sinew Sliver', 'Falkenrath Pit Fighter', 'Fracturing Gust', 'Magister of Worth', 'Zuran Orb', 'Sylvan Scrying', 'Gnawing Vermin', 'Argentum Armor', 'Ghitu Lavarunner', 'Vindicate', 'Aetherblade Agent', 'Bogbrew Witch', 'Night of Souls'' Betrayal', 'Ruric Thar, the Unbowed', 'Stone Rain', 'Castigate', 'Maze''s End', 'Temple of Epiphany', 'Kazandu Blademaster', 'Knight of New Alara', 'Doomskar', 'Venser, Shaper Savant', 'Geothermal Bog', 'Thopter Mechanic', 'Scattered Groves', 'Ardent Recruit', 'Nimbus Maze', 'Silumgar, the Drifting Death', 'Vampire Lacerator', 'Protect the Negotiators', 'Day of Judgment', 'Mistvein Borderpost', 'Darksteel Colossus', 'Obstinate Baloth', 'Vivid Crag', 'Pull from Tomorrow', 'Oona''s Grace', 'Predatory Sliver', 'Lingering Souls', 'Vampire Neonate', 'Sleight of Hand', 'Terrarion', 'Timely Reinforcements', 'Flood Plain', 'Frost Marsh', 'Blade Splicer', 'Scrapheap Scrounger', 'Makeshift Mannequin', 'Turnabout', 'Terminate', 'Pyrite Spellbomb', 'Sever the Bloodline', 'Gallia of the Endless Dance', 'Murderous Cut', 'Sterling Grove', 'Disenchant', 'Gnat Miser', 'Gather the Pack', 'Polukranos, World Eater', 'Throne of the God-Pharaoh', 'Opulent Palace', 'Fireblade Charger', 'Gilt-Leaf Archdruid', 'Battle of Wits', 'Barter in Blood', 'Gift of Immortality', 'Basking Rootwalla', 'Shred Memory', 'Ghostly Pilferer', 'Fact or Fiction', 'Stinkweed Imp', 'Academy Loremaster', 'Forbidden Alchemy', 'Timeless Dragon', 'Mothdust Changeling', 'Herd Migration', 'Heliod''s Intervention', 'Commune with the Gods', 'Hypergenesis', 'Ashenmoor Liege', 'Shrapnel Blast', 'Harmonize', 'Vampire Nighthawk', 'Caves of Koilos', 'Urban Evolution', 'Snow-Covered Plains', 'Tear Asunder', 'Sunblade Samurai', 'Weathered Wayfarer', 'Witching Well', 'Evangel of Synthesis', 'Haunted Fengraf', 'Ghost Quarter', 'Changeling Outcast', 'Idyllic Tutor', 'Rise // Fall', 'Llanowar Mentor', 'Augur of Bolas', 'Reckless Charge', 'Fleecemane Lion', 'Hinterland Harbor', 'Racers'' Ring', 'Drossforge Bridge', 'Voidwing Hybrid', 'Empyrial Plate', 'Lochmere Serpent', 'Bloodchief''s Thirst', 'Merrow Reejerey', 'Dying to Serve', 'Wolfbriar Elemental', 'River of Tears', 'Golgari Guildgate', 'Collected Conjuring', 'Venerated Loxodon', 'Nether Spirit', 'Midnight Reaper', 'Become Immense', 'Viashino Pyromancer', 'Curious Homunculus', 'Declaration in Stone', 'Reveillark', 'Kefnet the Mindful', 'Icehide Golem', 'Sunlit Marsh', 'Akiri, Fearless Voyager', 'Corrupted Conviction', 'Demolition Field', 'Founding the Third Path', 'Malcator, Purity Overseer', 'Wild Cantor', 'Slogurk, the Overslime', 'Divest', 'Kumano Faces Kakkazan', 'Brainstone', 'Ornithopter', 'Temple of Abandon', 'Tooth and Nail', 'Grove of the Guardian', 'Sphere of Safety', 'Nissa, Steward of Elements', 'Verduran Enchantress', 'Elspeth Conquers Death', 'Mina and Denn, Wildborn', 'Fearless Fledgling', 'Temple of Mystery', 'Arcbound Ravager', 'Kessig Wolf Run', 'Midnight Guard', 'Concealing Curtains', 'Resurgent Belief', 'Kiora Bests the Sea God', 'Festering Newt', 'Inscribed Tablet', 'Mikokoro, Center of the Sea', 'Eldrazi Displacer', 'Leonin Relic-Warder', 'Thirst for Meaning', 'Talisman of Unity', 'Goblin Dark-Dwellers', 'Raze to the Ground', 'Marwyn, the Nurturer', 'Crawling Barrens', 'Thundermaw Hellkite', 'Death Cloud', 'Languish', 'Forsake the Worldly', 'Morsel Theft', 'Wilt', 'Glint-Sleeve Siphoner', 'Riveteers Overlook', 'Celestial Colonnade', 'Fae of Wishes', 'Memoricide', 'Dissipate', 'King Darien XLVIII', 'Glamerdye', 'Rise and Shine', 'Ancient Amphitheater', 'Angel of Condemnation', 'Yavimaya Coast', 'Dreadhorde Butcher', 'The Mending of Dominaria', 'Mindslaver', 'Mistblade Shinobi', 'Fieldmist Borderpost', 'Benevolent Bodyguard', 'Glistener Elf', 'Pharika''s Cure', 'Knight of Glory', 'Geyadrone Dihada', 'Cut Down', 'Mistvault Bridge', 'Nephalia Drownyard', 'Jwari Disruption', 'Network Disruptor', 'Blight Mamba', 'Varolz, the Scar-Striped', 'Incinerate', 'Lantern-Lit Graveyard', 'Pain Seer', 'Stirring Wildwood', 'Stoic Rebuttal', 'Detention Sphere', 'Lotus Cobra', 'Krosan Grip', 'Grave Titan', 'Phyrexian Censor', 'Moderation', 'Purify the Grave', 'Swooping Lookout', 'Summer Bloom', 'Oath of Teferi', 'Anger of the Gods', 'Teshar, Ancestor''s Apostle', 'Woodfall Primus', 'Cabal Therapist', 'Abyssal Persecutor', 'Clifftop Retreat', 'Obscura Charm', 'Ghostly Flicker', 'Nezumi Graverobber', 'Volt Charge', 'Melira, Sylvok Outcast', 'Voltage Surge', 'Mind''s Desire', 'Wooded Bastion', 'Consume the Meek', 'Satyr Wayfinder', 'Chandra, Flamecaller', 'Sire of Insanity', 'Supreme Will', 'Scarab Feast', 'Baneful Omen', 'Kher Keep', 'Abiding Grace', 'Curiosity', 'Empyrial Armor', 'Dispatch', 'Gideon Jura', 'Marauding Blight-Priest', 'Alms of the Vein', 'Wanderwine Hub', 'Sylvan Advocate', 'Springleaf Drum', 'Cultivate', 'Flametongue Kavu', 'Progenitor Exarch', 'Annex Sentry', 'Deep Forest Hermit', 'Choked Estuary', 'Gravelgill Duo', 'Diffusion Sliver', 'Temple of Plenty', 'Inkwell Leviathan', 'Commune with Nature', 'Seeker of the Way', 'Frantic Inventory', 'Voyaging Satyr', 'Kira, Great Glass-Spinner', 'Ponder', 'Radiant Grove', 'Counterflux', 'Dark Prophecy', 'Nissa, Worldwaker', 'Tomb of Urami', 'Phyrexian Revoker', 'Llanowar Augur', 'Chamber Sentry', 'Terramorphic Expanse', 'Rites of Initiation', 'Artistic Refusal', 'Nezumi Informant', 'Bump in the Night', 'Remorseful Cleric', 'Liliana Vess', 'Bloodvial Purveyor', 'Yorion, Sky Nomad', 'Ayli, Eternal Pilgrim', 'Explore', 'Executioner''s Capsule', 'Gift of Estates', 'Throat Slitter', 'Blanchwood Prowler', 'Vraan, Executioner Thane', 'Pore Over the Pages', 'Tolarian Terror', 'Gitaxian Probe', 'Call of the Death-Dweller', 'Swiftfoot Boots', 'The Seedcore', 'Earthquake', 'Cartel Aristocrat', 'Wildborn Preserver', 'Kruphix''s Insight', 'Malakir Rebirth', 'Prosperous Thief', 'Commune with Spirits', 'Maelstrom Pulse', 'Enchantress''s Presence', 'Archangel Avacyn', 'Nine Lives', 'Jungle Hollow', 'Jace, Unraveler of Secrets', 'Scuttling Doom Engine', 'Valiant Changeling', 'Greater Gargadon', 'Mazemind Tome', 'Bone Shards', 'Doom Blade', 'Master of Etherium', 'Cabal Initiate', 'Elvish Visionary', 'Kogla, the Titan Ape', 'Ground Seal', 'Rift Bolt', 'Arguel''s Blood Fast', 'Angel of Serenity', 'Desperate Ritual', 'Bontu''s Last Reckoning', 'Blue Sun''s Zenith', 'Knight of the White Orchid', 'Lodestone Golem', 'Terastodon', 'Stoke the Flames', 'Time of Need', 'Ally Encampment', 'Apostle''s Blessing', 'Shape Anew', 'Dream Trawler', 'Patchwork Automaton', 'Vedalken Heretic', 'Thrash // Threat', 'Anafenza, Kin-Tree Spirit', 'Ambush Viper', 'Darksteel Citadel', 'The Underworld Cookbook', 'Solemnity', 'Inevitable Betrayal', 'Brain Freeze', 'Hissing Quagmire', 'Shriekmaw', 'Greater Tanuki', 'Rustvale Bridge', 'Kunoros, Hound of Athreos', 'Notorious Throng', 'Postmortem Lunge', 'Yavimaya Iconoclast', 'Scrapwork Mutt', 'Kaya, Ghost Assassin', 'Of One Mind', 'Azorius Charm', 'Cataclysmic Gearhulk', 'Benthic Biomancer', 'Titania, Protector of Argoth', 'Fyndhorn Elves', 'Drown in Ichor', 'Late to Dinner', 'Din of the Fireherd', 'Delay', 'Secluded Courtyard', 'Jokulhaups', 'Reinforced Ronin', 'Vines of Vastwood', 'Teneb, the Harvester', 'The Scorpion God', 'Control Magic', 'Malicious Malfunction', 'Rocco, Cabaretti Caterer', 'Forging the Anchor', 'Wrench Mind', 'Razortide Bridge', 'Archfiend''s Vessel', 'Exclude', 'Think Twice', 'Jor Kadeen, First Goldwarden', 'Vault of the Archangel', 'Wildfire', 'Grolnok, the Omnivore', 'Lost Legacy', 'Toolcraft Exemplar', 'Rotting Rats', 'Peek', 'Ogre Slumlord', 'Orzhov Charm', 'Wayward Guide-Beast', 'Arbor Elf', 'Syphon Life', 'Rix Maadi Reveler', 'Selesnya Guildgate', 'Cloudshredder Sliver', 'Bident of Thassa', 'Grand Abolisher', 'Scrying Sheets', 'Urza''s Factory', 'Consuming Vapors', 'Runed Halo', 'Nameless Inversion', 'Maestros Charm', 'Geomancer''s Gambit', 'Elvish Mystic', 'Dark Petition', 'Weapons Trainer', 'Invasion of Azgol', 'Hornet Queen', 'Sultai Charm', 'Murderous Redcap', 'Tranquil Thicket', 'Kitchen Imp', 'Curse of Exhaustion', 'General''s Enforcer', 'Pharika''s Libation', 'Sign in Blood', 'Eiganjo Castle', 'Unburial Rites', 'Slip Out the Back', 'Sandsteppe Citadel', 'Boros Guildgate', 'Ivy Lane Denizen', 'Porphyry Nodes', 'Westvale Abbey', 'Nimble Obstructionist', 'Viscera Seer', 'Second Sunrise', 'Tectonic Edge', 'Ayara, First of Locthwain', 'Vryn Wingmare', 'Galvanic Relay', 'Commit // Memory', 'Bloodsoaked Champion', 'Servo Exhibition', 'Otherworldly Journey', 'Ishkanah, Grafwidow', 'Rabbit Battery', 'Timeless Witness', 'Cabaretti Courtyard', 'Go for the Throat', 'Jace Beleren', 'Spell Burst', 'Nullpriest of Oblivion', 'Arcane Sanctum', 'Skyclave Shade', 'Prologue to Phyresis', 'Silundi Vision', 'Dovin''s Acuity', 'Boon-Bringer Valkyrie', 'Folio of Fancies', 'Staff of Domination', 'Briarbridge Tracker', 'Mastermind''s Acquisition', 'Pillar of the Paruns', 'Fierce Empath', 'Nevermore', 'Oracle of Mul Daya', 'Careful Cultivation', 'Lead the Stampede', 'Colossal Skyturtle', 'Green Sun''s Twilight', 'Spatial Contortion', 'Gutterbones', 'Erebos''s Intervention', 'Jukai Naturalist', 'Goblin Bombardment', 'Grafted Butcher', 'Burst Lightning', 'Vexing Shusher', 'Corrupted Crossroads', 'Deprive', 'Drainpipe Vermin', 'Tresserhorn Sinks', 'Battlefield Forge', 'Crystal Grotto', 'Pyretic Ritual', 'Dimensional Infiltrator', 'Delver of Secrets', 'Zur''s Weirding', 'Ancestral Blade', 'Gigadrowse', 'Quest for the Holy Relic', 'Dismal Backwater', 'Ancient Ziggurat', 'Moon-Circuit Hacker', 'Circular Logic', 'Nightscape Familiar', 'Kitesail Freebooter', 'Priest of the Haunted Edge', 'Woodland Cemetery', 'Burning of Xinye', 'Azorius Guildgate', 'Sculpted Perfection', 'Vivid Grove', 'Shardless Agent', 'Ghostfire Blade', 'Primal Command', 'Tanglepool Bridge', 'Open the Gates', 'Chief of the Foundry', 'Gavony Township', 'Rally the Ancestors', 'Yisan, the Wanderer Bard', 'Forked Bolt', 'Odds // Ends', 'Nomad Outpost', 'Rampant Growth', 'Electrolyze', 'Seething Song', 'Coiling Oracle', 'Tymaret, Chosen from Death', 'Tangle', 'Leonin Arbiter', 'All That Glitters', 'Doomed Traveler', 'Wall of Omens', 'Haunted Mire', 'Shimmerdrift Vale', 'Shambling Vent', 'Floriferous Vinewall', 'Scour All Possibilities', 'Tendrils of Agony', 'Ash Zealot', 'Combat Thresher', 'Chandra, Fire Artisan', 'Angrath, the Flame-Chained', 'Cliffside Lookout', 'Heartless Act', 'Kalastria Healer', 'Mirage Mirror', 'Temple of Triumph', 'Goldmire Bridge', 'Tezzeret''s Gambit', 'Heap Doll', 'Platinum Angel', 'Demigod of Revenge', 'Hyena Umbra', 'Ancient Stirrings', 'Slaughter Pact', 'Check for Traps', 'Dead // Gone', 'Inscription of Ruin', 'Far // Away', 'Precinct Captain', 'Possibility Storm', 'Cauldron Familiar', 'Contaminated Aquifer', 'Draugr Necromancer', 'Duress', 'Narcomoeba', 'Botanical Plaza', 'Fumigate', 'Lose Focus', 'Zurgo Bellstriker', 'Crawling Chorus', 'Dragon''s Hoard', 'Ossification', 'Jace, Architect of Thought', 'Marit Lage''s Slumber', 'Master of Death', 'Healer''s Hawk', 'Stern Dismissal', 'Vessel of Nascency', 'Stir the Grave', 'Eidolon of Blossoms', 'One with the Machine', 'Steel Overseer', 'Nature''s Lore', 'Dimir Aqueduct', 'Combat Research', 'Madcap Experiment', 'Might of Old Krosa', 'Halana and Alena, Partners', 'Hall of Oracles', 'Unbreakable Formation', 'Sacred Peaks', 'Forbid', 'Circuit Mender', 'Etherium Sculptor', 'Embodiment of Fury', 'Figure of Destiny', 'Silumgar''s Scorn', 'Buried Ruin', 'Invasion of New Capenna', 'Saproling Migration', 'Murmuring Bosk', 'Felidar Cub', 'Harbinger of the Tides', 'Bogardan Hellkite', 'Unsubstantiate', 'Unmarked Grave', 'Talisman of Curiosity', 'Elves of Deep Shadow', 'Smoldering Marsh', 'Hope of Ghirapur', 'Mulch', 'Jungle Shrine', 'Thawing Glaciers', 'Jwari Shapeshifter', 'Herald of the Pantheon', 'Invasion of Zendikar', 'Faerie Vandal', 'Succumb to Temptation', 'Commence the Endgame', 'Arch of Orazca', 'Oona''s Prowler', 'Altar of the Goyf', 'Archangel of Wrath', 'Frenetic Sliver', 'Rites of Spring', 'Rootbound Crag', 'Froghemoth', 'Knowledge Pool', 'Grand Architect', 'Corpse Cur', 'Lavaclaw Reaches', 'Zephyr Singer', 'Herd Baloth', 'Ajani, Mentor of Heroes', 'Elas il-Kor, Sadistic Pilgrim', 'Caldera Hellion', 'Hanweir Garrison', 'Hesitation', 'Sylvan Caryatid', 'Skirk Prospector', 'Yahenni''s Expertise', 'Ammit Eternal', 'Misery Charm', 'Rakdos Charm', 'Wrath of God', 'Kappa Tech-Wrecker', 'Okina, Temple to the Grandfathers', 'Kaito, Dancing Shadow', 'Xerex Strobe-Knight', 'Deliberate', 'Orcish Lumberjack', 'Tainted Indulgence', 'Gleeful Demolition', 'Honor of the Pure', 'Eerie Ultimatum', 'Vault Skirge', 'Cathartic Reunion', 'Devil''s Play', 'Sprite Dragon', 'Sylvan Library', 'Silent Gravestone', 'Flooded Grove', 'Wasteland Strangler', 'Pardic Miner', 'Approach of the Second Sun', 'Resolute Reinforcements', 'Bubbling Muck', 'Saffi Eriksdotter', 'Disrupting Shoal', 'Shivan Reef', 'Vapor Snag', 'Aetherling', 'Sunstrike Legionnaire', 'Elvish Rejuvenator', 'Tilling Treefolk', 'Blessed Alliance', 'Xenagos, the Reveler', 'Dread Return', 'Heliod''s Pilgrim', 'Kor Firewalker', 'Ramunap Excavator', 'Eternal Scourge', 'Glimpse of Tomorrow', 'Sorin, Vengeful Bloodlord', 'Isolated Chapel', 'Goblin Blast-Runner', 'Shizo, Death''s Storehouse', 'Sins of the Past', 'Fade from Memory', 'Frontier Bivouac', 'Izzet Charm', 'Faith''s Reward', 'Return to the Ranks', 'Spellweaver Helix', 'Abundant Growth', 'Sigrid, God-Favored', 'Blood on the Snow', 'Treasure Cruise', 'Golgari Rot Farm', 'Elderscale Wurm', 'Spectral Shift', 'Wandering Fumarole', 'Ashen Rider', 'Simian Sling', 'Port Town', 'Duplicant', 'Hada Freeblade', 'Silverblade Paladin', 'Psychic Possession', 'Temple of Deceit', 'Council''s Judgment', 'Seal of Cleansing', 'Phyrexian Unlife', 'Faerie Miscreant', 'Grave Scrabbler', 'Slagwoods Bridge', 'Impulse', 'Drowned Rusalka', 'Woe Strider', 'Arcum''s Astrolabe', 'Change the Equation', 'Joint Exploration', 'Divinity of Pride', 'Frostwalk Bastion', 'Chief Engineer', 'Reflector Mage', 'Deep Analysis', 'Venser, Corpse Puppet', 'Pack Rat', 'Rule of Law', 'Dakmor Salvage', 'Union of the Third Path', 'Squee, Goblin Nabob', 'Shigeki, Jukai Visionary', 'Guile', 'Lavinia of the Tenth', 'Breya''s Apprentice', 'Deafening Clarion', 'Pillage', 'Groundswell', 'Karn''s Bastion', 'Night Market Lookout', 'Seal of Removal', 'Prophetic Prism', 'Graaz, Unstoppable Juggernaut', 'Melira, the Living Cure', 'Kami of False Hope', 'World Shaper', 'Sarkhan, the Dragonspeaker', 'Dire-Strain Rampage', 'Ulvenwald Hydra', 'Elixir of Immortality', 'Archpriest of Shadows', 'Surrak, the Hunt Caller', 'Flaying Tendrils', 'Into the Story', 'Boreal Shelf', 'Dead of Winter', 'Vadrik, Astral Archmage', 'Godo, Bandit Warlord', 'Lightning Strike', 'Ensoul Artifact', 'Kor Skyfisher', 'Invasion of Ergamon', 'Ethersworn Sphinx', 'Disciple of the Vault', 'Thoughts of Ruin', 'Sweltering Suns', 'Victim of Night', 'Agonizing Remorse', 'Thragtusk', 'Lightning Spear', 'Leonin Warleader', 'Surge of Salvation', 'Tribal Flames', 'Gather the Townsfolk', 'Stinkdrinker Bandit', 'Ephara, God of the Polis', 'Quiet Speculation', 'Slagstorm', 'Barbed Sextant', 'Eldrazi Skyspawner', 'Tocatli Honor Guard', 'Negate', 'Expedition Envoy', 'Seedcradle Witch', 'Hypnotic Specter', 'Barbarian Ring', 'Genesis Wave', 'Phyrexian Dreadnought', 'Akoum Hellhound', 'Talisman of Conviction', 'Obzedat, Ghost Council', 'Rakdos Cackler', 'Nezahal, Primal Tide', 'Kabira Takedown', 'Rakdos Guildgate', 'Defiant Strike', 'Bloodline Keeper', 'Metalwork Colossus', 'Cloudpost', 'Big Score', 'Revitalize', 'Brave the Elements', 'Phoenix Chick', 'Venser, the Sojourner', 'Blazing Rootwalla', 'Sol Talisman', 'Hostage Taker', 'Putrefy', 'Search for Tomorrow', 'Thornwood Falls', 'Sheoldred''s Edict', 'Energy Refractor', 'Yawgmoth''s Bargain', 'Invasion of Regatha', 'Mesa Enchantress', 'Phalanx Leader', 'Carven Caryatid', 'Gloomshrieker', 'Gruul Turf', 'Sea Gate Oracle', 'Raffine''s Informant', 'See Beyond', 'Temple of Silence', 'Blood Artist', 'Thornglint Bridge', 'Genesis Hydra', 'Rakdos''s Return', 'Nimble Larcenist', 'Demonic Bargain', 'Rishkar, Peema Renegade', 'Idyllic Beachfront', 'Stone Haven Outfitter', 'Koth, Fire of Resistance', 'Bolas''s Citadel', 'Ovika, Enigma Goliath', 'Squadron Hawk', 'Orzhov Basilica', 'Feed the Swarm', 'Oracle of Tragedy', 'Leonin Lightscribe', 'Wonder', 'Presence of Gond', 'Izzet Boilerworks', 'Frantic Search', 'Goblin Electromancer', 'Spirited Companion', 'Trace of Abundance', 'Smallpox', 'Gadrak, the Crown-Scourge', 'Sudden Edict', 'Empty the Warrens', 'Strike It Rich', 'Merciless Eviction', 'Decree of Justice', 'The Celestus', 'Sinister Concoction', 'Argentum Masticore', 'Vraska''s Contempt', 'Thassa''s Intervention', 'Tangled Islet', 'Chaotic Transformation', 'Distorted Curiosity', 'Monument to Perfection', 'Increasing Ambition', 'Vivid Marsh', 'Tribute to Horobi', 'Lay Down Arms', 'Riveteers Charm', 'Wizard''s Retort', 'Invisible Stalker', 'Myr Superion', 'Self-Assembler', 'Voldaren Pariah', 'Engulf the Shore', 'Rain of Tears', 'Price of Progress', 'Forgotten Cave', 'Ertai''s Scorn', 'Sunken Hollow', 'Deeproot Waters', 'Kiora, the Crashing Wave', 'White Sun''s Zenith', 'Memory Lapse', 'Dusk // Dawn', 'Utter End', 'The Antiquities War', 'Black Sun''s Zenith', 'Gird for Battle', 'Dawn of Hope', 'Ravenous Squirrel', 'Abzan Charm', 'Oath of Kaya', 'Ral, Storm Conduit', 'Anguished Unmaking', 'Shard Volley', 'Llanowar Elves', 'Raise the Alarm', 'Armored Scrapgorger', 'Valakut Exploration', 'Loxodon Smiter', 'Dread Wanderer', 'Ulamog''s Crusher', 'Universal Automaton', 'Glimmerpost', 'Summary Dismissal', 'Orim''s Chant', 'Psychatog', 'Fetid Pools', 'Precursor Golem', 'Favored Hoplite', 'Molten Tributary', 'Sculpting Steel', 'Sheltered Thicket', 'Third Path Iconoclast', 'Huatli, Radiant Champion', 'Oust', 'Kozilek''s Predator', 'Disallow', 'Serra Ascendant', 'Simian Spirit Guide', 'Obscura Storefront', 'Ajani, Adversary of Tyrants', 'Thraben Inspector', 'Pyroclasm', 'Tyrant''s Choice', 'Twinshot Sniper', 'Future Sight', 'Birds of Paradise', 'Shrieking Affliction', 'Dakkon, Shadow Slayer', 'Stasis Snare', 'Norn''s Inquisitor', 'Reckoner''s Bargain', 'Consult the Necrosages', 'Invoke Calamity', 'Lurrus of the Dream-Den', 'Anafenza, the Foremost', 'Kambal, Consul of Allocation', 'Hour of Promise', 'Faeburrow Elder', 'Emmara, Soul of the Accord', 'Wood Elves', 'Aetherspouts', 'Mishra''s Research Desk', 'Tezzeret, Artifice Master', 'Kemba, Kha Regent', 'Territorial Kavu', 'Solemn Simulacrum', 'Oblivion Ring', 'Bloodchief Ascension', 'Waking the Trolls', 'Dark-Dweller Oracle', 'Dragonskull Summit', 'Needle Spires', 'Mistveil Plains', 'Dimir Guildgate', 'Martyr of Sands', 'Rust Goliath', 'Smother', 'The Flame of Keld', 'Vampire Hexmage', 'Mystic Monastery', 'Endbringer', 'Search for Azcanta', 'Hieroglyphic Illumination', 'Duneblast', 'Ignite Memories', 'Vampiric Rites', 'Myth Realized', 'Siege Rhino', 'Discovery // Dispersal', 'Mirror Entity', 'Cabal Ritual', 'Merfolk Sovereign', 'Yasharn, Implacable Earth', 'Mistcutter Hydra', 'Bring the Ending', 'Scrabbling Claws', 'Sunpetal Grove', 'Lazotep Chancellor', 'Rune Snag', 'Grenzo, Dungeon Warden', 'Genesis Ultimatum', 'Grand Arbiter Augustin IV', 'Nezumi Shortfang', 'Kjeldoran Outpost', 'Altered Ego', 'Invasion of Amonkhet', 'Zombie Infestation', 'Vigor', 'Dregscape Zombie', 'Mana Leak', 'Firewild Borderpost', 'Brokers Hideout', 'Ezuri, Renegade Leader', 'Upheaval', 'Orzhov Guildgate', 'Restoration Angel', 'Mouth of Ronom', 'Moorland Haunt', 'Mindcrank', 'Thrill of Possibility', 'Mortuary Mire', 'Assault // Battery', 'Archaeomancer', 'Arlinn Kord', 'Steppe Lynx', 'Call to the Grave', 'Snow-Covered Swamp', 'Llanowar Tribe', 'Sphinx''s Herald', 'Mulldrifter', 'Shalai, Voice of Plenty', 'Stromkirk Noble', 'Voidslime', 'Grim Haruspex', 'Banishing Slash', 'Mystical Teachings', 'Crack the Earth', 'Evolving Wilds', 'Graveborn Muse', 'Simic Guildgate', 'Tribute to Hunger', 'Lagrella, the Magpie', 'Farseek', 'Wrenn''s Resolve', 'Giant Killer', 'Spikefield Hazard', 'Farhaven Elf', 'Sandwurm Convergence', 'Elemental Masterpiece', 'Touch the Spirit Realm', 'Fire Prophecy', 'Silversmote Ghoul', 'Graven Cairns', 'Condemn', 'Nested Shambler', 'Oni-Cult Anvil', 'Skyshroud Elf', 'Ransack the Lab', 'Kitchen Finks', 'Vraska''s Fall', 'Cathedral of War', 'Destiny Spinner', 'Ashnod, Flesh Mechanist', 'Stubborn Denial', 'Halimar Excavator', 'Battle of Frost and Fire', 'Tocasia''s Dig Site', 'Dead Weight'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.5 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Disciple of the Vault', 'Gideon Jura', 'Glamerdye', 'Mirage Mirror', 'Marauding Blight-Priest', 'Sterling Grove', 'Grove of the Guardian', 'Darksteel Colossus', 'Oust', 'Stone Rain', 'Talisman of Curiosity', 'Haunted Dead', 'Dawn of Hope', 'Vivid Marsh', 'Caves of Koilos', 'Phyrexian Dreadnought', 'Consuming Vapors', 'Union of the Third Path', 'Changeling Outcast', 'Armored Scrapgorger', 'Altar of the Brood', 'Treasure Cruise', 'Mishra''s Research Desk', 'Marit Lage''s Slumber', 'Ruin Crab', 'Gnat Miser', 'Wall of Omens', 'Scarab Feast', 'Distorted Curiosity', 'Ivory Tower', 'Zombie Infestation', 'Vault Skirge', 'Vivid Grove', 'Archangel of Wrath', 'Arch of Orazca', 'Fireblade Charger', 'Giant Killer', 'Pack Rat', 'Kumano Faces Kakkazan', 'Wandering Fumarole', 'Erebos''s Intervention', 'Carven Caryatid', 'Gruul Turf', 'Oracle of Mul Daya', 'Thirst for Meaning', 'Kalastria Healer', 'Tilling Treefolk', 'Hypnotic Specter', 'Check for Traps', 'Forked Bolt', 'Razortide Bridge', 'Shred Memory', 'Toolcraft Exemplar', 'Nullpriest of Oblivion', 'Goblin Blast-Runner', 'Rotting Rats', 'Tezzeret''s Gambit', 'Tainted Indulgence', 'Glimmerpost', 'Rune Snag', 'Nekrataal', 'Karumonix, the Rat King', 'Aetherspouts', 'Cloudpost', 'Drown in Ichor', 'Bontu''s Last Reckoning', 'Brineborn Cutthroat', 'Goblin Electromancer', 'Jor Kadeen, First Goldwarden', 'Oracle of Tragedy', 'All That Glitters', 'Siege Rhino', 'Dire-Strain Rampage', 'Yavimaya Iconoclast', 'Pain Seer', 'Pull from Tomorrow', 'Sire of Insanity', 'Silver-Fur Master', 'Mind''s Desire', 'Sudden Edict', 'Sylvan Scrying', 'Galerider Sliver', 'Thornglint Bridge', 'Archpriest of Shadows', 'Jwari Disruption', 'Blood on the Snow', 'Knight of the Reliquary', 'Faith''s Reward', 'Genesis Ultimatum', 'Sigil of the Empty Throne', 'Vessel of Nascency', 'Exclude', 'Doom Blade', 'Shrapnel Blast', 'Spatial Contortion', 'Lavinia of the Tenth', 'Frontier Bivouac', 'Forgotten Cave', 'Angel of Glory''s Rise', 'Ulvenwald Hydra', 'Sarkhan the Masterless', 'Clifftop Retreat', 'Floriferous Vinewall', 'Urban Evolution', 'Reckless Charge', 'Misery Charm', 'Ral, Storm Conduit', 'Fact or Fiction', 'Nine Lives', 'Doomed Traveler', 'Kher Keep', 'Murmuring Bosk', 'Mausoleum Secrets', 'Artistic Refusal', 'Death Cloud', 'Gavony Township', 'Rites of Spring', 'Lotus Cobra', 'Ardent Recruit', 'Prohibit', 'Embodiment of Fury', 'Coiling Oracle', 'Detention Sphere', 'Delay', 'Terramorphic Expanse', 'Biting-Palm Ninja', 'Seedcradle Witch', 'Sins of the Past', 'Gigadrowse', 'Corpse Cur', 'Spider Umbra', 'Nissa, Steward of Elements', 'Brainstone', 'Grim Haruspex', 'Harmonize', 'Wrenn''s Resolve', 'Honor of the Pure', 'Molten Tributary', 'Slogurk, the Overslime', 'Llanowar Tribe', 'Disciple of Bolas', 'Gitaxian Probe', 'Goblin Charbelcher', 'Rustvale Bridge', 'Bident of Thassa', 'Unburial Rites', 'Ancient Ziggurat', 'Future Sight', 'Sylvan Caryatid', 'Think Twice', 'Expedite', 'Greater Gargadon', 'Possibility Storm', 'Fae of Wishes', 'Ancient Stirrings', 'Birds of Paradise', 'Kami of False Hope', 'Steel Overseer', 'Gather the Pack', 'Rakdos''s Return', 'Elspeth Conquers Death', 'Botanical Plaza', 'Abyssal Persecutor', 'Maelstrom Pulse', 'Lavaclaw Reaches', 'Quest for the Holy Relic', 'Drowned Rusalka', 'Combat Thresher', 'Kambal, Consul of Allocation', 'Tangled Islet', 'Shivan Reef', 'Graaz, Unstoppable Juggernaut', 'Stromkirk Noble', 'Fallaji Archaeologist', 'Scuttling Doom Engine', 'Deafening Clarion', 'Crack the Earth', 'World Shaper', 'Huatli, Radiant Champion', 'Ivy Lane Denizen', 'Tymaret, Chosen from Death', 'Talisman of Unity', 'Thrash // Threat', 'Jace Beleren', 'Agonizing Remorse', 'Knight of New Alara', 'Xenagos, the Reveler', 'Tooth and Nail', 'Mothdust Changeling', 'Yahenni''s Expertise', 'Saproling Migration', 'Empyrial Plate', 'Flooded Grove', 'Vampire Hexmage', 'Temple of Silence', 'Hissing Quagmire', 'Timeless Dragon', 'Kozilek''s Predator', 'Vadrik, Astral Archmage', 'Vexing Shusher', 'Hooting Mandrills', 'Spirited Companion', 'Seal of Cleansing', 'Psychatog', 'Hero''s Downfall', 'Acquisitions Expert', 'Avatar of the Resolute', 'General Ferrous Rokiric', 'Nissa, Worldwaker', 'Tidehollow Sculler', 'Grand Abolisher', 'Cabal Ritual', 'Glacial Fortress', 'Flametongue Kavu', 'Mistvein Borderpost', 'Ghitu Lavarunner', 'Experimental Synthesizer', 'Blessed Alliance', 'Combat Research', 'Crawling Barrens', 'Mazemind Tome', 'Bone Shards', 'Knight of the White Orchid', 'Swiftfoot Boots', 'Master of Death', 'Consume the Meek', 'Platinum Angel', 'Malcator, Purity Overseer', 'Verduran Enchantress', 'Invisible Stalker', 'Inscription of Ruin', 'Torens, Fist of the Angels', 'Invasion of New Capenna', 'Seal of Removal', 'Abundant Growth', 'Hard Evidence', 'Ossification', 'Tribute to Hunger', 'Tocasia''s Dig Site', 'Dismal Backwater', 'Ammit Eternal', 'Benthic Biomancer', 'Tendrils of Agony', 'Putrid Imp', 'Forbidden Alchemy', 'Fyndhorn Elves', 'Fetid Pools', 'Explore', 'Lotleth Giant', 'Tidespout Tyrant', 'Oona''s Prowler', 'Farseek', 'Meeting of Minds', 'Makeshift Mannequin', 'King Darien XLVIII', 'Approach of the Second Sun', 'Mnemonic Sphere', 'Shape Anew', 'Kemba, Kha Regent', 'Flaying Tendrils', 'Assault // Battery', 'Gruul Spellbreaker', 'Thawing Glaciers', 'Gideon''s Lawkeeper', 'Evolving Wilds', 'Diffusion Sliver', 'Obliterate', 'Stoic Rebuttal', 'The Celestus', 'Putrefy', 'Cathartic Reunion', 'Goblin Bombardment', 'Slaughter Pact', 'Demolition Field', 'Llanowar Mentor', 'Commence the Endgame', 'Chief of the Foundry', 'Monument to Perfection', 'Mishra''s Factory', 'Isolated Chapel', 'Elvish Rejuvenator', 'Oblivion Ring', 'Malicious Malfunction', 'Mesmeric Fiend', 'Kaito, Dancing Shadow', 'Thragtusk', 'Blood Artist', 'Avacyn''s Pilgrim', 'Terastodon', 'Wrench Mind', 'Bubbling Muck', 'Anafenza, Kin-Tree Spirit', 'Vigor', 'Kefnet the Mindful', 'Temple of Deceit', 'Out of Time', 'Soltari Priest', 'Ensoul Artifact', 'Adanto Vanguard', 'Staff of Domination', 'Scattered Groves', 'Felidar Retreat', 'Ishkanah, Grafwidow', 'Seething Song', 'Cremate', 'Disallow', 'Deep Analysis', 'Green Sun''s Twilight', 'Marwyn, the Nurturer', 'Rule of Law', 'Fierce Empath', 'Urza''s Factory', 'Ayara, First of Locthwain', 'Stoke the Flames', 'Elderscale Wurm', 'Pillage', 'Nezumi Shortfang', 'Unbreakable Formation', 'Ghost Quarter', 'Kemba, Kha Enduring', 'Polukranos, World Eater', 'Energy Refractor', 'Dark Petition', 'Drannith Healer', 'Wooded Bastion', 'Self-Assembler', 'Orzhov Charm', 'Jukai Naturalist', 'Thrill of Possibility', 'Scab-Clan Berserker', 'Black Sun''s Zenith', 'Skyshroud Elf', 'Gravelgill Duo', 'Crystal Grotto', 'Temple of Epiphany', 'Memoricide', 'Supreme Will', 'Yavimaya Coast', 'Progenitor Exarch', 'Goblin Dark-Dwellers', 'Council''s Judgment', 'Otherworldly Journey', 'Rise // Fall', 'Dark-Dweller Oracle', 'Evangel of Synthesis', 'Izzet Guildgate', 'Eidolon of Blossoms', 'Ground Seal', 'Sphinx''s Herald', 'Gadrak, the Crown-Scourge', 'Chaotic Transformation', 'Kor Firewalker', 'Elvish Visionary', 'Falkenrath Pit Fighter', 'Varolz, the Scar-Striped', 'Elixir of Immortality', 'Zurgo Bellstriker', 'Galvanic Relay', 'Hostage Taker', 'Mindsplice Apparatus', 'Blazing Rootwalla', 'Electrolyze', 'Burning of Xinye', 'Invasion of Ergamon', 'Drowned Catacomb', 'Blightning', 'Phyrexian Censor', 'Tyvar''s Stand', 'Stir the Grave', 'Grand Arbiter Augustin IV', 'Fight as One', 'Go for the Throat', 'Unctus, Grand Metatect', 'Kogla, the Titan Ape', 'Moderation', 'Summary Dismissal', 'Anafenza, the Foremost', 'Dread Return', 'Ramunap Excavator', 'Tear Asunder', 'Archaeomancer', 'Melira, Sylvok Outcast', 'Orzhov Guildgate', 'Sleight of Hand', 'Gift of Immortality', 'Hour of Promise', 'Zur''s Weirding', 'Turnabout', 'Joint Exploration', 'Saffi Eriksdotter', 'Shimmerdrift Vale', 'Graven Cairns', 'Commune with the Gods', 'Rally the Peasants', 'Stinkdrinker Bandit', 'The Mending of Dominaria', 'Chain Lightning', 'Expedition Envoy', 'Notorious Throng', 'Zof Consumption', 'Nested Shambler', 'Orim''s Chant', 'High-Speed Hoverbike', 'Viscera Seer', 'Blackbloom Rogue', 'Chandra, Flamecaller', 'Night Market Lookout', 'Sigrid, God-Favored', 'Sign in Blood', 'Sandsteppe Citadel', 'Ovika, Enigma Goliath', 'Price of Progress', 'Terrarion', 'Cataclysmic Gearhulk', 'The Underworld Cookbook', 'Ruric Thar, the Unbowed', 'Opulent Palace', 'The Scorpion God', 'Vampiric Rites', 'Glorybringer', 'Simian Sling', 'Stinkweed Imp', 'Needle Spires', 'Crux of Fate', 'Circular Logic', 'Stasis Snare', 'Kessig Wolf Run', 'Valakut Exploration', 'Arbor Elf', 'Stone Haven Outfitter', 'Emmara, Soul of the Accord', 'Burst Lightning', 'Destiny Spinner', 'Gods Willing', 'Blighted Agent', 'Riveteers Charm', 'Malakir Rebirth', 'Mistvault Bridge', 'Champion of Wits', 'True Believer', 'Tolarian Terror', 'Lightning Spear', 'Duplicant', 'Pyroclasm', 'Careful Cultivation', 'Ashnod, Flesh Mechanist', 'Sandwurm Convergence', 'Return to the Ranks', 'Hyena Umbra', 'Voidwing Hybrid', 'Selesnya Guildgate', 'Teshar, Ancestor''s Apostle', 'Frantic Inventory', 'Liliana Vess', 'Bloodline Keeper', 'Gideon''s Intervention', 'Assemble the Legion', 'Wild Cantor', 'Endbringer', 'Consult the Necrosages', 'Magister of Worth', 'Midnight Reaper', 'Footfall Crater', 'Thaumatic Compass', 'Artisan of Kozilek', 'Annex Sentry', 'Boon-Bringer Valkyrie', 'Genesis Wave', 'Oona, Queen of the Fae', 'Remorseful Cleric', 'Drannith Stinger', 'Mindcrank', 'Destroy Evil', 'Flood Plain', 'Gateway Plaza', 'Fleecemane Lion', 'Ancient Amphitheater', 'Leechridden Swamp', 'Lay Down Arms', 'Swooping Lookout', 'Sea-Dasher Octopus', 'Loran''s Escape', 'Fumigate', 'Call of the Death-Dweller', 'Dream Trawler', 'Stupor', 'Spell Pierce', 'Geomancer''s Gambit', 'Haunted Mire', 'Venerated Loxodon', 'Circuit Mender', 'Midnight Guard', 'Hypergenesis', 'Tocatli Honor Guard', 'Sinister Concoction', 'Dakmor Salvage', 'Oni-Cult Anvil', 'Viashino Pyromancer', 'Shard Volley', 'Invasion of Regatha', 'Twinshot Sniper', 'Hideous End', 'Jungle Hollow', 'Dispatch', 'One with the Machine', 'Glint-Sleeve Siphoner', 'Altered Ego', 'Sea Gate Oracle', 'Invasion of Azgol', 'Arlinn Kord', 'Abzan Charm', 'Venser, the Sojourner', 'Strike It Rich', 'Nephalia Drownyard', 'Kor Skyfisher', 'Witching Well', 'Psychic Possession', 'Settle the Wreckage', 'Academy Loremaster', 'Pyretic Ritual', 'Mouth of Ronom', 'Disrupting Shoal', 'Thassa''s Intervention', 'Shriekmaw', 'Mesa Enchantress', 'Banishing Slash', 'Invoke Calamity', 'Rise and Shine', 'Tomb of Urami', 'Glaring Aegis', 'Prosperous Thief', 'Zenith Flare', 'Vampire Neonate', 'Fangren Marauder', 'Ajani, Mentor of Heroes', 'Graveborn Muse', 'Augur of Bolas', 'Dimensional Infiltrator', 'Auriok Sunchaser', 'Sweltering Suns', 'Sculpting Steel', 'Dakkon, Shadow Slayer', 'Lead the Stampede', 'Demonic Bargain', 'Nezumi Graverobber', 'Protect the Negotiators', 'Sin Prodder', 'Crawling Chorus', 'Resolute Reinforcements', 'Wanderwine Hub', 'Farhaven Elf', 'Harbinger of the Tides', 'Vapor Snag', 'Seismic Assault', 'Dead // Gone', 'Hesitation', 'Voltage Surge', 'Flourishing Fox', 'Devious Cover-Up', 'Vindicate', 'Racers'' Ring', 'Temple of Enlightenment', 'Mistcutter Hydra', 'Voidslime', 'Lightning Rift', 'Dross Skullbomb', 'Battlefield Forge', 'Day of Judgment', 'Dusk // Dawn', 'Cleansing Wildfire', 'Ulcerate', 'Deprive', 'Vedalken Heretic', 'Myth Realized', 'Diabolic Tutor', 'Brave the Elements', 'Tribal Flames', 'Madcap Experiment', 'Secluded Steppe', 'Divinity of Pride', 'Bloodthrone Vampire', 'Sol Talisman', 'Barbed Sextant', 'Titania, Protector of Argoth', 'Empyrial Armor', 'Universal Automaton', 'Steppe Lynx', 'Declaration in Stone', 'Loxodon Smiter', 'Cultivate', 'Oath of Kaya', 'The Antiquities War', 'Fade from Memory', 'Mortuary Mire', 'Argentum Masticore', 'Pariah', 'Pillar of the Paruns', 'Knight of Glory', 'Phantasmagorian', 'Bring the Ending', 'Demigod of Revenge', 'Anoint with Affliction', 'Distortion Strike', 'Gryff''s Boon', 'Open the Armory', 'Woe Strider', 'Eldrazi Displacer', 'Dragon''s Hoard', 'Festering Newt', 'Yorvo, Lord of Garenbrig', 'Laboratory Maniac', 'Dark Prophecy', 'Inkwell Leviathan', 'Sacred Peaks', 'Westvale Abbey', 'Duress', 'Mwonvuli Acid-Moss', 'Drake Haven', 'Dimir Aqueduct', 'Blade Splicer', 'Apostle''s Blessing', 'Invasion of Amonkhet', 'Throat Slitter', 'Marble Diamond', 'Spectral Procession', 'Purify the Grave', 'Argentum Armor', 'Myr Superion', 'Nimble Obstructionist', 'Nomad Outpost', 'Memory Lapse', 'Izzet Boilerworks', 'Heliod''s Pilgrim', 'Nezahal, Primal Tide', 'Primal Command', 'Raze to the Ground', 'Temple of Mystery', 'Mirran Crusader', 'Dimir Guildgate', 'Blightbelly Rat', 'Barbarian Ring', 'Smoldering Marsh', 'Silumgar, the Drifting Death', 'Blight Mamba', 'Woodfall Primus', 'Servo Exhibition', 'Inscribed Tablet', 'Spellweaver Helix', 'Fracturing Gust', 'Sunken Hollow', 'Solemnity', 'Elvish Mystic', 'Cliffside Lookout', 'Weapons Trainer', 'Nightscape Familiar', 'Lightning Strike', 'Draugr Necromancer', 'Solitary Confinement', 'Vampire Nighthawk', 'Defiant Strike', 'Runed Halo', 'Grafted Butcher', 'Mistveil Plains', 'Faeburrow Elder', 'Stubborn Denial', 'Nether Spirit', 'Gloomshrieker', 'Commit // Memory', 'Norn''s Inquisitor', 'Korlash, Heir to Blackblade', 'Founding the Third Path', 'Maestros Charm', 'Hinterland Harbor', 'Eerie Ultimatum', 'Feed the Swarm', 'Cloudshredder Sliver', 'Rabbit Battery', 'Tomebound Lich', 'Fruit of Tizerus', 'Curious Homunculus', 'Presence of Gond', 'Pharika''s Cure', 'Tribute to Horobi', 'Kruphix''s Insight', 'Boreal Shelf', 'Kira, Great Glass-Spinner', 'Herald of the Pantheon', 'Curse of Exhaustion', 'Change the Equation', 'Pore Over the Pages', 'Lost Legacy', 'Gird for Battle', 'Castigate', 'Lurrus of the Dream-Den', 'Drowner of Hope', 'Winds of Abandon', 'Scour All Possibilities', 'Zephyr Singer', 'Vampire Lacerator', 'Late to Dinner', 'Cult Conscript', 'Ezuri, Renegade Leader', 'Cabaretti Courtyard', 'Grolnok, the Omnivore', 'Rakdos Charm', 'Leonin Relic-Warder', 'Shardless Agent', 'Chittering Rats', 'River of Tears', 'Akoum Hellhound', 'Ral, Izzet Viceroy', 'Kitchen Imp', 'Geyadrone Dihada', 'Gray Merchant of Asphodel', 'Obstinate Baloth', 'Haunted Fengraf', 'Herd Migration', 'Locket of Yesterdays', 'Thornwood Falls', 'Luminarch Ascension', 'Syr Faren, the Hengehammer', 'Balustrade Spy', 'Utter End', 'Leonin Arbiter', 'Elvish Archdruid', 'Recurring Nightmare', 'Mina and Denn, Wildborn', 'Frost Titan', 'Deep Forest Hermit', 'Lizard Blades', 'Inevitable Betrayal', 'Ambush Viper', 'Corrupted Crossroads', 'Rampant Growth', 'Revitalize', 'See Beyond', 'Lose Focus', 'Martyr of Sands', 'Ethereal Armor', 'Phoenix Chick', 'Sinew Sliver', 'Delver of Secrets', 'Yorion, Sky Nomad', 'Jungle Shrine', 'Blisterpod', 'Grave Scrabbler', 'Serra Ascendant', 'Sunlit Marsh', 'Whispersilk Cloak', 'Rocco, Cabaretti Caterer', 'Koth, Fire of Resistance', 'Condemn', 'Pardic Miner', 'Wildfire', 'Esper Charm', 'Vryn Wingmare', 'Wayward Guide-Beast', 'Arcum''s Astrolabe', 'The Seedcore', 'Ulamog''s Crusher', 'Eldrazi Skyspawner', 'Bituminous Blast', 'Silundi Vision', 'Far // Away', 'Snow-Covered Mountain', 'Prophetic Prism', 'Mikokoro, Center of the Sea', 'Nature''s Lore', 'Zuran Orb', 'Hall of Oracles', 'Illuminator Virtuoso', 'Mulch', 'Odds // Ends', 'Weathered Wayfarer', 'Vraan, Executioner Thane', 'Terminate', 'Radiant Grove', 'Worship', 'Dreadhorde Butcher', 'Merciless Eviction', 'Blanchwood Prowler', 'Contaminated Aquifer', 'Of One Mind', 'Night of Souls'' Betrayal', 'Slagwoods Bridge', 'Forging the Anchor', 'Fertile Ground', 'Bubbling Cauldron', 'Graven Lore', 'Unmarked Grave', 'Abiding Grace', 'Arbalest Engineers', 'Jaddi Offshoot', 'Yasharn, Implacable Earth', 'Pelakka Predation', 'Sorin, Vengeful Bloodlord', 'Akiri, Fearless Voyager', 'Phyrexian Revoker', 'Call to the Grave', 'Jokulhaups', 'Idyllic Beachfront', 'Victim of Night', 'Reckless Rage', 'Scrying Sheets', 'Silent Gravestone', 'Elas il-Kor, Sadistic Pilgrim', 'Ichorclaw Myr', 'Lagrella, the Magpie', 'Sulfur Falls', 'Tectonic Edge', 'Reveillark', 'Maze''s End', 'Bloodchief Ascension', 'Din of the Fireherd', 'Rakdos Cackler', 'Wolfbriar Elemental', 'Kabira Takedown', 'Unsubstantiate', 'Bump in the Night', 'Tranquil Thicket', 'Valiant Changeling', 'Goldmire Bridge', 'Aetherblade Agent', 'Quicken', 'Kunoros, Hound of Athreos', 'Tyrant''s Choice', 'Trace of Abundance', 'Into the Story', 'Chandra, Fire Artisan', 'Leather Armor', 'Leonin Warleader', 'Arguel''s Blood Fast', 'Guile', 'Talisman of Conviction', 'Gleeful Demolition', 'Nezumi Informant', 'Invasion of Kaladesh', 'Kiora Bests the Sea God', 'Metalwork Colossus', 'Increasing Ambition', 'Terminus', 'Tezzeret the Schemer', 'Lochmere Serpent', 'Oath of Teferi', 'Archon of Sun''s Grace', 'Sarkhan, the Dragonspeaker', 'Burning Sun''s Fury', 'Choked Estuary', 'Collected Conjuring', 'Glimpse of Tomorrow', 'Jace, Unraveler of Secrets', 'Grand Architect', 'Karn''s Bastion', 'Judge''s Familiar', 'Merfolk Sovereign', 'Knowledge Pool', 'Ertai''s Scorn', 'Wasteland Strangler', 'Satyr Wayfinder', 'Divest', 'Dokuchi Silencer', 'Garruk Wildspeaker', 'Impulse', 'Ethersworn Sphinx', 'Shigeki, Jukai Visionary', 'Bloodsoaked Champion', 'Ornithopter', 'Temple of Malady', 'Drossforge Bridge', 'Network Disruptor', 'Smother', 'Triumphant Adventurer', 'Go for Blood', 'Frantic Search', 'Shambling Vent', 'Ghostly Pilferer', 'Narcomoeba', 'Cathedral of War', 'Skirk Prospector', 'Myr Battlesphere', 'Simian Spirit Guide', 'Kaya, Ghost Assassin', 'Ashen Rider', 'Kitchen Finks', 'Archangel Avacyn', 'Search for Tomorrow', 'Nether Traitor', 'Empty the Warrens', 'Tezzeret, Artifice Master', 'Enchantress''s Presence', 'Steel Leaf Champion', 'Rix Maadi Reveler', 'Llanowar Augur', 'Rakdos Guildgate', 'Obzedat, Ghost Council', 'Anger of the Gods', 'Nevermore', 'Rift Bolt', 'Raise the Alarm', 'Sheltered Thicket', 'Devil''s Play', 'Porphyry Nodes', 'Canopy Vista', 'Fearless Fledgling', 'Glistener Elf', 'Angel of Grace', 'Boggart Ram-Gang', 'Second Sunrise', 'Lazotep Chancellor', 'Dovin''s Acuity', 'Ash Zealot', 'Ally Encampment', 'Bloodvial Purveyor', 'Cut Down', 'Ayli, Eternal Pilgrim', 'Azorius Charm', 'Gruul Guildgate', 'Time of Need', 'Altar of the Goyf', 'Snow-Covered Swamp', 'Kazandu Blademaster', 'Aetherling', 'Alms of the Vein', 'Canyon Slough', 'Snow-Covered Plains', 'Eiganjo Castle', 'Invasion of Zendikar', 'Bloodchief''s Thirst', 'Ingenious Infiltrator', 'Icehide Golem', 'Morsel Theft', 'Bogardan Hellkite', 'Benevolent Bodyguard', 'Fiery Justice', 'Waking the Trolls', 'Tempest Djinn', 'Kappa Tech-Wrecker', 'Pelt Collector', 'Boros Guildgate', 'Summer Bloom', 'Temple of Plenty', 'Ghostfire Blade', 'Smallpox', 'Jwari Shapeshifter', 'Sphere of Safety', 'Raging Ravine', 'Commune with Nature', 'Bitter Reunion', 'Satyr Hoplite', 'Dreams of Steel and Oil', 'Patchwork Automaton', 'Teferi, Mage of Zhalfir', 'Dying to Serve', 'Incinerate', 'Grenzo, Dungeon Warden', 'Priest of the Haunted Edge', 'Into the Roil', 'Obscura Charm', 'Raven''s Crime', 'Battle of Frost and Fire', 'Scrabbling Claws', 'Stirring Wildwood', 'Become Immense', 'Izzet Charm', 'Fetid Heath', 'Nimble Trapfinder', 'Dissipate', 'Unholy Heat', 'Sultai Charm', 'Squadron Hawk', 'Dark Ritual', 'Cabal Initiate', 'Sever the Bloodline', 'Phantasmal Image', 'Shaman of the Pack', 'Third Path Iconoclast', 'Slagstorm', 'Vraska''s Fall', 'Curiosity', 'Darksteel Citadel', 'Yawgmoth''s Bargain', 'Executioner''s Capsule', 'Undercity Informer', 'Woodland Cemetery', 'Corrupted Conviction', 'Smuggler''s Copter', 'Simic Guildgate', 'Experiment One', 'Scrapheap Scrounger', 'Territorial Kavu', 'Reinforced Ronin', 'Resurgent Belief', 'Touch the Spirit Realm', 'Arcane Sanctum', 'Sunpetal Grove', 'Rootbound Crag', 'Wrath of God', 'Moon-Circuit Hacker', 'Chief Engineer', 'Unlucky Witness', 'Languish', 'Geothermal Bog', 'Ephara, God of the Polis', 'Ogre Slumlord', 'Radha, Heart of Keld', 'Shimmer Dragon', 'Figure of Destiny', 'Okina, Temple to the Grandfathers', 'Xerex Strobe-Knight', 'Heap Doll', 'Peek', 'Mystic Monastery', 'Cabal Therapist', 'Postmortem Lunge', 'Angrath, the Flame-Chained', 'Silversmote Ghoul', 'Tangle', 'Throne of the God-Pharaoh', 'Counterflux', 'Consul''s Lieutenant', 'Cauldron Familiar', 'Mindslaver', 'Shizo, Death''s Storehouse', 'Might of Old Krosa', 'Ajani, Adversary of Tyrants', 'Faerie Vandal', 'Aegis of the Gods', 'Breya''s Apprentice', 'Wood Elves', 'Sculpted Perfection', 'Venser, Corpse Puppet', 'Ignite Memories', 'Aether Spellbomb', 'Folio of Fancies', 'Tanglepool Bridge', 'Angel of Serenity', 'Cartel Aristocrat', 'Big Score', 'Buried Ruin', 'Drainpipe Vermin', 'Fieldmist Borderpost', 'Silverblade Paladin', 'Idyllic Tutor', 'Lodestone Golem', 'Angel of Condemnation', 'Hornet Queen', 'Squee, Goblin Nabob', 'Precinct Captain', 'Legacy Weapon', 'Temple of Abandon', 'Elite Inquisitor', 'Rishkar, Peema Renegade', 'Frostwalk Bastion', 'Heliod''s Intervention', 'Azami, Lady of Scrolls', 'Eternal Scourge', 'Bogbrew Witch', 'Ponder', 'Precursor Golem', 'Rust Goliath', 'Thopter Mechanic', 'Ranger of Eos', 'Abundant Harvest', 'Surrak, the Hunt Caller', 'Sylvan Advocate', 'Heartless Act', 'Dragonskull Summit', 'Skyclave Shade', 'Healer''s Hawk', 'Pharika''s Libation', 'Helm of the Host', 'Open the Gates', 'Faerie Miscreant', 'Barter in Blood', 'Veinfire Borderpost', 'Game Trail', 'Reckoner''s Bargain', 'Oona''s Grace', 'Valiant Rescuer', 'Mulldrifter', 'Shrieking Affliction', 'Nimble Larcenist', 'Gallia of the Endless Dance', 'Disenchant', 'Volt Charge', 'Sunblade Samurai', 'Lantern-Lit Graveyard', 'Halimar Excavator', 'Bastion of Remembrance', 'Kitesail Freebooter', 'Baneful Omen', 'Akroan Crusader', 'Reflector Mage', 'Rally the Ancestors', 'Audacity', 'Hada Freeblade', 'Thoughts of Ruin', 'Spikefield Hazard', 'Thopter Spy Network', 'Gather the Townsfolk', 'Seal of Fire', 'Angel of Despair', 'Venser, Shaper Savant', 'Ravenous Squirrel', 'Vivid Crag', 'Perilous Myr', 'Fire Prophecy', 'Llanowar Elves', 'Kavu Predator', 'Brokers Hideout', 'Master of Etherium', 'Riveteers Overlook', 'Spark Spray', 'Jace, Architect of Thought', 'Quiet Speculation', 'Succumb to Temptation', 'Hieroglyphic Illumination', 'Ancestral Blade', 'Basilisk Collar', 'Frenetic Sliver', 'Deeproot Waters', 'Acidic Slime', 'Pyrite Spellbomb', 'Merfolk Mistbinder', 'Restoration Angel', 'Vault of the Archangel', 'Engulf the Shore', 'Desperate Ritual', 'Deliberate', 'Big Game Hunter', 'Akoum Warrior', 'Sin Collector', 'Herd Baloth', 'Spell Burst', 'Thousand-Faced Shadow', 'Greater Tanuki', 'Serrated Scorpion', 'Dead Weight', 'Krosan Grip', 'Secluded Courtyard', 'Blue Sun''s Zenith', 'Groundswell', 'Invigorate', 'Mana Leak', 'Negate', 'Anguished Unmaking', 'Fallen Shinobi', 'Archfiend''s Vessel', 'Wonder', 'Shalai, Voice of Plenty', 'Concealing Curtains', 'Nameless Inversion', 'Chandra, Pyromaster', 'Etherium Sculptor', 'Lingering Souls', 'Solemn Simulacrum', 'Temple of Triumph', 'Grave Titan', 'Surge of Salvation', 'Obscura Storefront', 'Upheaval', 'Tendo Ice Bridge', 'Hanweir Garrison', 'Celestial Colonnade', 'Slip Out the Back', 'Doomskar', 'Yisan, the Wanderer Bard', 'Phyrexian Unlife', 'Leonin Lightscribe', 'Timeless Witness', 'Gutterbones', 'Sheoldred''s Edict', 'Forbid', 'Moorland Haunt', 'Necrogen Spellbomb', 'Fiery Temper', 'Dryad Militant', 'Gatekeeper of Malakir', 'Syphon Life', 'Flame Rift', 'Azorius Guildgate', 'Dread Wanderer', 'Spectral Shift', 'Decree of Justice', 'Plated Geopede', 'Kiora, the Crashing Wave', 'Wizard''s Retort', 'Halana and Alena, Partners', 'Murderous Redcap', 'Ghostly Flicker', 'Stern Dismissal', 'Raffine''s Informant', 'The Flame of Keld', 'Bloodbraid Elf', 'Thundermaw Hellkite', 'Aspect of Hydra', 'Thraben Inspector', 'Mystical Teachings', 'Evacuation', 'Melira, the Living Cure', 'Briarbridge Tracker', 'Teneb, the Harvester', 'Colossal Skyturtle', 'Timely Reinforcements', 'Sunstrike Legionnaire', 'Godo, Bandit Warlord', 'Gnawing Vermin', 'Port Town', 'Commune with Spirits', 'Golgari Guildgate', 'Scrapwork Mutt', 'Predatory Sliver', 'Recruitment Officer', 'Gilt-Leaf Archdruid', 'Wildborn Preserver', 'Brave the Sands', 'Orcish Lumberjack', 'Kjeldoran Outpost', 'Dauntless Bodyguard', 'Arcbound Ravager', 'Cryptic Caves', 'Mastermind''s Acquisition', 'Elemental Masterpiece', 'Rain of Tears', 'Mirror Entity', 'Basking Rootwalla', 'Felidar Cub', 'Phalanx Leader', 'Seeker of the Way', 'Caldera Hellion', 'Hope of Ghirapur', 'Nimbus Maze', 'Voyaging Satyr', 'Firewild Borderpost', 'Vines of Vastwood', 'Vraska''s Contempt', 'Bilious Skulldweller', 'Sprite Dragon', 'Mistblade Shinobi', 'Golgari Rot Farm', 'Epic Experiment', 'Froghemoth', 'Duneblast', 'Carnophage', 'Frost Marsh', 'Ashenmoor Liege', 'Favored Hoplite', 'Sylvan Library', 'Dregscape Zombie', 'Silverbluff Bridge', 'Orzhov Basilica', 'General''s Enforcer', 'Silumgar''s Scorn', 'Discovery // Dispersal', 'Control Magic', 'Bolas''s Citadel', 'Repudiate // Replicate', 'Ransack the Lab', 'Gift of Estates', 'Murderous Cut', 'Earthquake', 'Rites of Initiation', 'Forsake the Worldly', 'Tresserhorn Sinks', 'Chamber Sentry', 'Wilt', 'Experimental Augury', 'Genesis Hydra', 'Search for Azcanta', 'Voldaren Pariah', 'Dead of Winter', 'Elves of Deep Shadow', 'Overgrowth', 'Merrow Reejerey', 'White Sun''s Zenith', 'Prologue to Phyresis', 'Repeal', 'Springleaf Drum', 'Brain Freeze', 'Battle of Wits'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.5, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Mirror Entity', 'Basilisk Collar', 'Marwyn, the Nurturer', 'Voidslime', 'Oblivion Ring', 'Burst Lightning', 'Magister of Worth', 'Sorin, Vengeful Bloodlord', 'Gideon Jura', 'Thornglint Bridge', 'Wonder', 'Porphyry Nodes', 'Faerie Vandal', 'Geothermal Bog', 'Dead // Gone', 'Ancient Ziggurat', 'Wrench Mind', 'Nezumi Graverobber', 'Thopter Mechanic', 'Dread Return', 'Graaz, Unstoppable Juggernaut', 'Sleight of Hand', 'Alms of the Vein', 'Inevitable Betrayal', 'Reckoner''s Bargain', 'Cultivate', 'Prohibit', 'Akiri, Fearless Voyager', 'Snow-Covered Mountain', 'Coiling Oracle', 'Harbinger of the Tides', 'Sunpetal Grove', 'Gather the Townsfolk', 'Into the Story', 'Syphon Life', 'Vraan, Executioner Thane', 'Sphinx''s Herald', 'Unsubstantiate', 'Rampant Growth', 'Deep Analysis', 'Game Trail', 'Bloodchief Ascension', 'Terminus', 'Lay Down Arms', 'Devious Cover-Up', 'Spirited Companion', 'Drowner of Hope', 'Dark-Dweller Oracle', 'Careful Cultivation', 'Karn''s Bastion', 'Flourishing Fox', 'Crystal Grotto', 'Wildfield Borderpost', 'Simian Spirit Guide', 'Fire Prophecy', 'Morsel Theft', 'Pariah', 'Grolnok, the Omnivore', 'Saproling Migration', 'Explore', 'Surge of Salvation', 'Sarkhan the Masterless', 'Barter in Blood', 'Kor Skyfisher', 'Lantern-Lit Graveyard', 'Krosan Grip', 'Smother', 'Blue Sun''s Zenith', 'Tresserhorn Sinks', 'Yasharn, Implacable Earth', 'Disciple of Bolas', 'Draugr Necromancer', 'Healer''s Hawk', 'Loxodon Smiter', 'Control Magic', 'Kruphix''s Insight', 'Hostage Taker', 'Tear Asunder', 'Vault of the Archangel', 'Timeless Dragon', 'Resolute Reinforcements', 'Caldera Hellion', 'Ally Encampment', 'Lose Focus', 'Kumano Faces Kakkazan', 'Desperate Ritual', 'Bloodthrone Vampire', 'Shrieking Affliction', 'Ash Zealot', 'Sunlit Marsh', 'Seedcradle Witch', 'Bontu''s Last Reckoning', 'Bloodbraid Elf', 'Anguished Unmaking', 'Liliana Vess', 'Nullpriest of Oblivion', 'Repeal', 'Gateway Plaza', 'Staff of Domination', 'Hall of Oracles', 'Drown in Ichor', 'Anafenza, Kin-Tree Spirit', 'Ghitu Lavarunner', 'Invasion of Kaladesh', 'Smuggler''s Copter', 'Ajani, Adversary of Tyrants', 'Elderscale Wurm', 'Teneb, the Harvester', 'Demonic Bargain', 'Torens, Fist of the Angels', 'Wilt', 'Eternal Scourge', 'Silverbluff Bridge', 'Fireblade Charger', 'Merciless Eviction', 'Glint-Sleeve Siphoner', 'Elixir of Immortality', 'Serra Ascendant', 'Blightning', 'Boon-Bringer Valkyrie', 'Valiant Rescuer', 'Stromkirk Noble', 'Din of the Fireherd', 'Pain Seer', 'Open the Gates', 'Lightning Rift', 'Wood Elves', 'Scrying Sheets', 'Bogbrew Witch', 'Locket of Yesterdays', 'Tyvar''s Stand', 'Psychatog', 'Tamiyo, Collector of Tales', 'Lagrella, the Magpie', 'Ornithopter', 'Leonin Warleader', 'Mouth of Ronom', 'Etherium Sculptor', 'Recurring Nightmare', 'Vines of Vastwood', 'Kunoros, Hound of Athreos', 'Fleecemane Lion', 'Satyr Wayfinder', 'Sulfur Falls', 'Hissing Quagmire', 'Search for Azcanta', 'Sandsteppe Citadel', 'Ground Seal', 'Heartless Act', 'Dross Skullbomb', 'Slagstorm', 'Fallaji Archaeologist', 'Approach of the Second Sun', 'Azami, Lady of Scrolls', 'Yawgmoth''s Bargain', 'Elemental Masterpiece', 'Choked Estuary', 'Cliffside Lookout', 'Unbreakable Formation', 'Benevolent Bodyguard', 'Mistveil Plains', 'Timely Reinforcements', 'Mirran Crusader', 'Jungle Hollow', 'Angel of Grace', 'Call of the Death-Dweller', 'Lotleth Giant', 'Gift of Estates', 'Wrath of God', 'Spikefield Hazard', 'Haunted Fengraf', 'Frantic Inventory', 'Gray Merchant of Asphodel', 'Blightbelly Rat', 'Sea Gate Oracle', 'Spider Umbra', 'Ancient Stirrings', 'Eiganjo Castle', 'Shrapnel Blast', 'Adanto Vanguard', 'Kambal, Consul of Allocation', 'Nephalia Drownyard', 'Hypergenesis', 'Port Town', 'Spectral Shift', 'Rule of Law', 'Birds of Paradise', 'Hinterland Harbor', 'Sacred Peaks', 'Peek', 'Inscription of Ruin', 'Norn''s Inquisitor', 'Commune with Spirits', 'Festering Newt', 'Narcomoeba', 'Kami of False Hope', 'Delay', 'Voldaren Pariah', 'Gutterbones', 'True Believer', 'Chain Lightning', 'Cleansing Wildfire', 'Sire of Insanity', 'Pelakka Predation', 'Gideon''s Intervention', 'Monument to Perfection', 'Radiant Grove', 'Cabaretti Courtyard', 'Founding the Third Path', 'The Underworld Cookbook', 'Bident of Thassa', 'Altered Ego', 'Tendo Ice Bridge', 'Ghostly Flicker', 'Kemba, Kha Regent', 'Oath of Kaya', 'Sheltered Thicket', 'Delver of Secrets', 'Gnat Miser', 'Chaotic Transformation', 'Dying to Serve', 'Feed the Swarm', 'Stinkdrinker Bandit', 'Gloomshrieker', 'Haunted Mire', 'Chandra, Pyromaster', 'Hanweir Garrison', 'Curse of Exhaustion', 'Gods Willing', 'Halana and Alena, Partners', 'Grave Scrabbler', 'Snow-Covered Plains', 'Vadrik, Astral Archmage', 'Hieroglyphic Illumination', 'Remorseful Cleric', 'Footfall Crater', 'Scab-Clan Berserker', 'Abundant Harvest', 'Empyrial Armor', 'Divest', 'Siege Rhino', 'Treasure Cruise', 'Vivid Marsh', 'Vampire Lacerator', 'Akoum Hellhound', 'Spatial Contortion', 'Gideon''s Lawkeeper', 'Blood on the Snow', 'Geomancer''s Gambit', 'Forked Bolt', 'Diffusion Sliver', 'Skyshroud Elf', 'Ransack the Lab', 'Scour All Possibilities', 'Ghostfire Blade', 'Invasion of New Capenna', 'Blood Artist', 'Putrefy', 'Knowledge Pool', 'Raven''s Crime', 'Marit Lage''s Slumber', 'Academy Loremaster', 'Lochmere Serpent', 'Blighted Agent', 'Cabal Ritual', 'Pharika''s Libation', 'Dovin''s Acuity', 'The Antiquities War', 'Honor of the Pure', 'Turnabout', 'Fracturing Gust', 'Volt Charge', 'Battlefield Forge', 'Rakdos Cackler', 'Angrath, the Flame-Chained', 'Ertai''s Scorn', 'Devil''s Play', 'Glorybringer', 'Boggart Ram-Gang', 'Moorland Haunt', 'Greater Tanuki', 'Fumigate', 'Avatar of the Resolute', 'Dream Trawler', 'Day of Judgment', 'Mind''s Desire', 'Hyena Umbra', 'Thirst for Meaning', 'Altar of the Brood', 'Brave the Sands', 'Restoration Angel', 'Universal Automaton', 'Voyaging Satyr', 'Temple of Epiphany', 'Anoint with Affliction', 'Mistvein Borderpost', 'Caves of Koilos', 'Kogla, the Titan Ape', 'Duress', 'Rites of Spring', 'Groundswell', 'Terrarion', 'Rootbound Crag', 'Forbid', 'Sign in Blood', 'Rally the Ancestors', 'Green Sun''s Twilight', 'Marble Diamond', 'Rakdos''s Return', 'Hour of Promise', 'Tendrils of Agony', 'Shape Anew', 'Haunted Dead', 'Spell Pierce', 'Ossification', 'Solemn Simulacrum', 'Swiftfoot Boots', 'Brineborn Cutthroat', 'Clifftop Retreat', 'Utter End', 'Reveillark', 'Lingering Souls', 'Leechridden Swamp', 'Dusk // Dawn', 'Corpse Cur', 'Banishing Slash', 'Dire-Strain Rampage', 'Hypnotic Specter', 'Ashenmoor Liege', 'Bogardan Hellkite', 'Joint Exploration', 'Gird for Battle', 'Ancient Amphitheater', 'Pyretic Ritual', 'Artisan of Kozilek', 'Out of Time', 'Galvanic Relay', 'Stoke the Flames', 'Fight as One', 'Gilt-Leaf Archdruid', 'Phyrexian Revoker', 'Kjeldoran Outpost', 'Darksteel Citadel', 'Falkenrath Pit Fighter', 'Jor Kadeen, First Goldwarden', 'Pelt Collector', 'Titania, Protector of Argoth', 'Chief Engineer', 'Invasion of Ergamon', 'Murderous Redcap', 'Mastermind''s Acquisition', 'Upheaval', 'Assemble the Legion', 'Jukai Naturalist', 'Artistic Refusal', 'Teferi, Mage of Zhalfir', 'Sin Collector', 'Succumb to Temptation', 'Overgrowth', 'Changeling Outcast', 'Repudiate // Replicate', 'Fiery Temper', 'Kozilek''s Predator', 'Sarkhan, the Dragonspeaker', 'Undercity Informer', 'Late to Dinner', 'Eerie Ultimatum', 'Azorius Guildgate', 'Mishra''s Research Desk', 'Seal of Cleansing', 'Negate', 'White Sun''s Zenith', 'Lavinia of the Tenth', 'Isolated Chapel', 'Ravenous Squirrel', 'Lotus Cobra', 'Stinkweed Imp', 'Auriok Sunchaser', 'Vraska''s Contempt', 'Mirage Mirror', 'Ivory Tower', 'Kessig Wolf Run', 'Evolving Wilds', 'Marauding Blight-Priest', 'Fertile Ground', 'Korlash, Heir to Blackblade', 'Unholy Heat', 'Nezumi Informant', 'Tezzeret, Artifice Master', 'Snow-Covered Swamp', 'Hornet Queen', 'Vivid Crag', 'Elvish Mystic', 'Knight of the White Orchid', 'Tidehollow Sculler', 'Urban Evolution', 'Doomed Traveler', 'Invasion of Amonkhet', 'Vampire Hexmage', 'Increasing Ambition', 'Memory Lapse', 'Reckless Charge', 'Pore Over the Pages', 'Oona''s Grace', 'Shaman of the Pack', 'Demigod of Revenge', 'Return to the Ranks', 'Acidic Slime', 'Phalanx Leader', 'Terminate', 'Protect the Negotiators', 'Waking the Trolls', 'Mistcutter Hydra', 'World Shaper', 'Flame Rift', 'Maze''s End', 'Hard Evidence', 'Worship', 'Sandwurm Convergence', 'Disrupting Shoal', 'Yorvo, Lord of Garenbrig', 'Abundant Growth', 'Grafted Butcher', 'Destiny Spinner', 'Victim of Night', 'Baneful Omen', 'Mazemind Tome', 'Merfolk Mistbinder', 'Mindsplice Apparatus', 'Cabal Therapist', 'Simian Sling', 'Kappa Tech-Wrecker', 'Elas il-Kor, Sadistic Pilgrim', 'Seal of Removal', 'Strike It Rich', 'Farseek', 'Gryff''s Boon', 'Nevermore', 'Loran''s Escape', 'Sprite Dragon', 'Unctus, Grand Metatect', 'Woodland Cemetery', 'Forsake the Worldly', 'Grand Architect', 'Blisterpod', 'Epic Experiment', 'Izzet Guildgate', 'Heliod''s Pilgrim', 'Slogurk, the Overslime', 'Ephara, God of the Polis', 'Sunblade Samurai', 'Kazandu Blademaster', 'Spellweaver Helix', 'Vraska''s Fall', 'Dreadhorde Butcher', 'Ghost Quarter', 'Bloodchief''s Thirst', 'Kabira Takedown', 'Consult the Necrosages', 'Midnight Reaper', 'Erebos''s Intervention', 'Akoum Warrior', 'Grand Abolisher', 'Check for Traps', 'Wildborn Preserver', 'Duneblast', 'Kitchen Imp', 'Stir the Grave', 'Mishra''s Factory', 'Wizard''s Retort', 'Martyr of Sands', 'Lizard Blades', 'Gitaxian Probe', 'Breya''s Apprentice', 'Weathered Wayfarer', 'Dark Petition', 'Briarbridge Tracker', 'Sunken Hollow', 'Lead the Stampede', 'Settle the Wreckage', 'Oracle of Mul Daya', 'Karumonix, the Rat King', 'Helm of the Host', 'Grim Haruspex', 'General''s Enforcer', 'Summer Bloom', 'Search for Tomorrow', 'Apostle''s Blessing', 'Tangle', 'Genesis Hydra', 'Godo, Bandit Warlord', 'Mistvault Bridge', 'Empyrial Plate', 'The Mending of Dominaria', 'Canyon Slough', 'Arbalest Engineers', 'Summary Dismissal', 'Bloodsoaked Champion', 'Rune Snag', 'Legacy Weapon', 'Kemba, Kha Enduring', 'Balustrade Spy', 'Serrated Scorpion', 'Thassa''s Intervention', 'Dakmor Salvage', 'Unlucky Witness', 'Tainted Indulgence', 'Crack the Earth', 'Guile', 'Akroan Crusader', 'Talisman of Unity', 'Disciple of the Vault', 'Decree of Justice', 'Rishkar, Peema Renegade', 'Dimir Guildgate', 'Swooping Lookout', 'Radha, Heart of Keld', 'Unmarked Grave', 'Thawing Glaciers', 'Izzet Boilerworks', 'Phyrexian Censor', 'General Ferrous Rokiric', 'Dread Wanderer', 'Pull from Tomorrow', 'Ponder', 'Nezahal, Primal Tide', 'Inkwell Leviathan', 'Sol Talisman', 'Izzet Charm', 'Blackbloom Rogue', 'Garruk Wildspeaker', 'Gleeful Demolition', 'Favored Hoplite', 'Lazotep Chancellor', 'Demolition Field', 'Tocasia''s Dig Site', 'Frenetic Sliver', 'Council''s Judgment', 'Wildfire', 'Madcap Experiment', 'Arguel''s Blood Fast', 'Obzedat, Ghost Council', 'Shard Volley', 'Mothdust Changeling', 'Sultai Charm', 'Impulse', 'Nightscape Familiar', 'Heliod''s Intervention', 'Call to the Grave', 'Vigor', 'Resurgent Belief', 'Drowned Rusalka', 'Chittering Rats', 'Assault // Battery', 'Mulldrifter', 'Orzhov Basilica', 'Smallpox', 'Memoricide', 'Bolas''s Citadel', 'Zof Consumption', 'Burning Sun''s Fury', 'Supreme Will', 'Nine Lives', 'Evangel of Synthesis', 'Flood Plain', 'Curiosity', 'Reckless Rage', 'Malicious Malfunction', 'Thrill of Possibility', 'Dimir Aqueduct', 'Woodfall Primus', 'Steel Overseer', 'Thornwood Falls', 'Rix Maadi Reveler', 'Triumphant Adventurer', 'Raze to the Ground', 'Mesa Enchantress', 'Rakdos Guildgate', 'Wasteland Strangler', 'Sculpted Perfection', 'Mystic Monastery', 'Cult Conscript', 'Colossal Skyturtle', 'Veinfire Borderpost', 'Silumgar, the Drifting Death', 'Kaya, Ghost Assassin', 'Tribute to Horobi', 'Duplicant', 'Cathartic Reunion', 'Lightning Strike', 'Bubbling Muck', 'Ogre Slumlord', 'Fieldmist Borderpost', 'Nested Shambler', 'Wanderwine Hub', 'The Flame of Keld', 'Nature''s Lore', 'Shriekmaw', 'Temple of Mystery', 'Silumgar''s Scorn', 'Fabricate', 'Eldrazi Displacer', 'Disallow', 'Bump in the Night', 'Yavimaya Coast', 'Bituminous Blast', 'The Seedcore', 'Frontier Bivouac', 'Pyrite Spellbomb', 'Diabolic Tutor', 'Zenith Flare', 'Jungle Shrine', 'Brave the Elements', 'Jace, Architect of Thought', 'Kefnet the Mindful', 'Shalai, Voice of Plenty', 'Glimpse of Tomorrow', 'Selesnya Guildgate', 'Dismal Backwater', 'Expedition Envoy', 'Illuminator Virtuoso', 'Opulent Palace', 'Tyrant''s Choice', 'Sterling Grove', 'Glaring Aegis', 'Agonizing Remorse', 'Sins of the Past', 'Melira, the Living Cure', 'Precinct Captain', 'Acquisitions Expert', 'Rust Goliath', 'Abyssal Persecutor', 'Argentum Armor', 'Argentum Masticore', 'Thaumatic Compass', 'Priest of the Haunted Edge', 'Aetherblade Agent', 'Tempest Djinn', 'Pardic Miner', 'Aspect of Hydra', 'Combat Research', 'Tomb of Urami', 'Leonin Arbiter', 'Might of Old Krosa', 'Goblin Electromancer', 'Secluded Courtyard', 'Distortion Strike', 'Shardless Agent', 'Malcator, Purity Overseer', 'Fangren Marauder', 'Silundi Vision', 'Scuttling Doom Engine', 'Harmonize', 'Seismic Assault', 'Anafenza, the Foremost', 'Vault Skirge', 'Energy Refractor', 'Dark Ritual', 'Grenzo, Dungeon Warden', 'Idyllic Tutor', 'Moon-Circuit Hacker', 'Frost Titan', 'Demonic Dread', 'The Scorpion God', 'Kiora, the Crashing Wave', 'Grave Titan', 'Hideous End', 'Molten Tributary', 'Melira, Sylvok Outcast', 'Slaughter Pact', 'Ezuri, Renegade Leader', 'Goblin Charbelcher', 'Mindslaver', 'Jwari Shapeshifter', 'Mina and Denn, Wildborn', 'Kher Keep', 'Tomebound Lich', 'Gruul Spellbreaker', 'Hope of Ghirapur', 'Sever the Bloodline', 'Oni-Cult Anvil', 'Shambling Vent', 'Felidar Retreat', 'Sculpting Steel', 'Midnight Guard', 'Forging the Anchor', 'Arcbound Ravager', 'Executioner''s Capsule', 'Greater Gargadon', 'Slagwoods Bridge', 'Timeless Witness', 'Barbarian Ring', 'Big Game Hunter', 'Luminarch Ascension', 'Seeker of the Way', 'River of Tears', 'Second Sunrise', 'Urza''s Factory', 'Solemnity', 'Notorious Throng', 'All That Glitters', 'Spark Spray', 'Elvish Rejuvenator', 'Spell Burst', 'Gather the Pack', 'Ramunap Excavator', 'Blade Splicer', 'Crawling Chorus', 'Earthquake', 'Cauldron Familiar', 'Kalastria Healer', 'Grove of the Guardian', 'Glistener Elf', 'Contaminated Aquifer', 'Orcish Lumberjack', 'Drainpipe Vermin', 'High-Speed Hoverbike', 'Anger of the Gods', 'Myr Battlesphere', 'Engulf the Shore', 'Biting-Palm Ninja', 'Tribal Flames', 'Kira, Great Glass-Spinner', 'Quicken', 'Winds of Abandon', 'Frost Marsh', 'Elves of Deep Shadow', 'Stasis Snare', 'Emmara, Soul of the Accord', 'Ruin Crab', 'Crawling Barrens', 'Canopy Vista', 'Firewild Borderpost', 'Hada Freeblade', 'Leonin Relic-Warder', 'Twinshot Sniper', 'Folio of Fancies', 'Basking Rootwalla', 'Shred Memory', 'Gruul Turf', 'Counterflux', 'Invasion of Regatha', 'Genesis Wave', 'Zephyr Singer', 'Yisan, the Wanderer Bard', 'Stubborn Denial', 'Ranger of Eos', 'Arcum''s Astrolabe', 'Champion of Wits', 'King Darien XLVIII', 'Herd Migration', 'Sunstrike Legionnaire', 'Dimensional Infiltrator', 'Deafening Clarion', 'Yorion, Sky Nomad', 'Seething Song', 'Stirring Wildwood', 'Self-Assembler', 'Seal of Fire', 'Ral, Storm Conduit', 'Faerie Miscreant', 'Hero''s Downfall', 'Forgotten Cave', 'Misery Charm', 'Rocco, Cabaretti Caterer', 'Unburial Rites', 'Golgari Guildgate', 'Temple of Plenty', 'Maestros Charm', 'Drake Haven', 'Botanical Plaza', 'Gatekeeper of Malakir', 'Network Disruptor', 'Perilous Myr', 'Corrupted Crossroads', 'Temple of Deceit', 'Lurrus of the Dream-Den', 'Squadron Hawk', 'Vivid Grove', 'Goblin Dark-Dwellers', 'Wandering Fumarole', 'Idyllic Beachfront', 'Angel of Despair', 'Weapons Trainer', 'Defiant Strike', 'Cloudshredder Sliver', 'Concealing Curtains', 'Pharika''s Cure', 'Master of Death', 'Far // Away', 'Viscera Seer', 'Dead Weight', 'Fade from Memory', 'Darksteel Colossus', 'Gadrak, the Crown-Scourge', 'Myth Realized', 'Discovery // Dispersal', 'Enchantress''s Presence', 'Elspeth Conquers Death', 'Temple of Silence', 'Obliterate', 'Temple of Abandon', 'Scrapwork Mutt', 'Fact or Fiction', 'Tranquil Thicket', 'Eldrazi Skyspawner', 'Predatory Sliver', 'Mausoleum Secrets', 'Wall of Omens', 'Ingenious Infiltrator', 'Cataclysmic Gearhulk', 'Raise the Alarm', 'Mistblade Shinobi', 'Disenchant', 'Temple of Malady', 'Goblin Blast-Runner', 'Empty the Warrens', 'Glamerdye', 'Xenagos, the Reveler', 'Shizo, Death''s Storehouse', 'Orzhov Guildgate', 'Psychic Possession', 'Figure of Destiny', 'Rabbit Battery', 'Lavaclaw Reaches', 'Goblin Bombardment', 'Lightning Spear', 'Rustvale Bridge', 'Koth, Fire of Resistance', 'Forbidden Alchemy', 'Zurgo Bellstriker', 'Thrash // Threat', 'Sphere of Safety', 'Jwari Disruption', 'Phyrexian Dreadnought', 'Drowned Catacomb', 'Vapor Snag', 'Oust', 'Electrolyze', 'Progenitor Exarch', 'Thopter Spy Network', 'Glimmerpost', 'Commence the Endgame', 'Springleaf Drum', 'Archangel of Wrath', 'Battle of Frost and Fire', 'Chandra, Flamecaller', 'Terramorphic Expanse', 'Of One Mind', 'Blazing Rootwalla', 'Nezumi Shortfang', 'Dryad Militant', 'Voltage Surge', 'Simic Guildgate', 'Prophetic Prism', 'Territorial Kavu', 'Chief of the Foundry', 'Gift of Immortality', 'Raging Ravine', 'Aether Spellbomb', 'Night Market Lookout', 'Invasion of Azgol', 'Bilious Skulldweller', 'Kitchen Finks', 'Steel Leaf Champion', 'Solitary Confinement', 'Nimble Trapfinder', 'Saffi Eriksdotter', 'Sylvan Scrying', 'Faeburrow Elder', 'Vampire Nighthawk', 'Fetid Pools', 'Maelstrom Pulse', 'Scattered Groves', 'Scrapheap Scrounger', 'Deliberate', 'Commune with the Gods', 'Dispatch', 'Dokuchi Silencer', 'Galerider Sliver', 'Dakkon, Shadow Slayer', 'Knight of Glory', 'Halimar Excavator', 'Sylvan Advocate', 'Archfiend''s Vessel', 'Go for the Throat', 'Ensoul Artifact', 'Aegis of the Gods', 'Heap Doll', 'Angel of Glory''s Rise', 'Razortide Bridge', 'Dreams of Steel and Oil', 'Blight Mamba', 'Rain of Tears', 'Venser, Shaper Savant', 'Ichorclaw Myr', 'Flaying Tendrils', 'Vindicate', 'Kaito, Dancing Shadow', 'Bastion of Remembrance', 'Mystical Teachings', 'Frostwalk Bastion', 'Pillage', 'Slip Out the Back', 'Skirk Prospector', 'Recruitment Officer', 'Experiment One', 'Llanowar Mentor', 'Phoenix Chick', 'Chandra, Fire Artisan', 'Nimble Obstructionist', 'Kavu Predator', 'Reflector Mage', 'Mortuary Mire', 'Time of Need', 'Blanchwood Prowler', 'Thragtusk', 'Sweltering Suns', 'Satyr Hoplite', 'Rise and Shine', 'Racers'' Ring', 'Runed Halo', 'Herd Baloth', 'Rites of Initiation', 'Carnophage', 'Stone Rain', 'Flametongue Kavu', 'Trace of Abundance', 'Fiery Justice', 'Goldmire Bridge', 'Big Score', 'Mnemonic Sphere', 'Patchwork Automaton', 'Judge''s Familiar', 'Nomad Outpost', 'Change the Equation', 'Quiet Speculation', 'Deep Forest Hermit', 'Rotting Rats', 'Lost Legacy', 'Burning of Xinye', 'Elite Inquisitor', 'Floriferous Vinewall', 'Merrow Reejerey', 'Tymaret, Chosen from Death', 'Arlinn Kord', 'See Beyond', 'Distorted Curiosity', 'Sigil of the Empty Throne', 'Mindcrank', 'Deeproot Waters', 'Vampire Neonate', 'Silver-Fur Master', 'Doomskar', 'Tanglepool Bridge', 'Celestial Colonnade', 'Hesitation', 'Wrenn''s Resolve', 'Talisman of Conviction', 'Prosperous Thief', 'Angel of Condemnation', 'Circuit Mender', 'Venser, Corpse Puppet', 'Sudden Edict', 'Riveteers Charm', 'Future Sight', 'Jace, Unraveler of Secrets', 'Otherworldly Journey', 'One with the Machine', 'Barbed Sextant', 'Viashino Pyromancer', 'Primal Command', 'Archaeomancer', 'Temple of Triumph', 'Hooting Mandrills', 'Graven Cairns', 'Quest for the Holy Relic', 'Aetherling', 'Vryn Wingmare', 'Sea-Dasher Octopus', 'Pyroclasm', 'Tocatli Honor Guard', 'Myr Superion', 'Mesmeric Fiend', 'Abzan Charm', 'Ulcerate', 'Sin Prodder', 'Soltari Priest', 'Geyadrone Dihada', 'Nimble Larcenist', 'Woe Strider', 'Buried Ruin', 'Froghemoth', 'Wild Cantor', 'Bitter Reunion', 'Polukranos, World Eater', 'Benthic Biomancer', 'Shimmer Dragon', 'Faith''s Reward', 'Leonin Lightscribe', 'Bloodvial Purveyor', 'Spectral Procession', 'Flooded Grove', 'Riveteers Overlook', 'Orim''s Chant', 'Dead of Winter', 'Ayara, First of Locthwain', 'Touch the Spirit Realm', 'Terastodon', 'Bubbling Cauldron', 'Thousand-Faced Shadow', 'Restore Balance', 'Fierce Empath', 'Tooth and Nail', 'Wayward Guide-Beast', 'Sinew Sliver', 'Revitalize', 'Cut Down', 'Possibility Storm', 'Master of Etherium', 'Zuran Orb', 'Chamber Sentry', 'Rift Bolt', 'Zombie Infestation', 'Shigeki, Jukai Visionary', 'Whispersilk Cloak', 'Commune with Nature', 'Odds // Ends', 'Toolcraft Exemplar', 'Makeshift Mannequin', 'Venser, the Sojourner', 'Grand Arbiter Augustin IV', 'Dauntless Bodyguard', 'Cathedral of War', 'Tezzeret the Schemer', 'Witching Well', 'Giant Killer', 'Plated Geopede', 'Scarab Feast', 'Castigate', 'Gruul Guildgate', 'Temple of Enlightenment', 'Stern Dismissal', 'Huatli, Radiant Champion', 'Drannith Healer', 'Boreal Shelf', 'Stone Haven Outfitter', 'Esper Charm', 'Open the Armory', 'Cabal Initiate', 'Jaddi Offshoot', 'Tangled Islet', 'Mana Leak', 'Black Sun''s Zenith', 'Wooded Bastion', 'Westvale Abbey', 'Avacyn''s Pilgrim', 'Dragon''s Hoard', 'Ovika, Enigma Goliath', 'Phantasmagorian', 'Llanowar Elves', 'Moderation', 'Rally the Peasants', 'Stoic Rebuttal', 'Smoldering Marsh', 'Ambush Viper', 'Eidolon of Blossoms', 'Kor Firewalker', 'Invoke Calamity', 'Oona''s Prowler', 'Yahenni''s Expertise', 'Archpriest of Shadows', 'Oath of Teferi', 'Throne of the God-Pharaoh', 'Voidwing Hybrid', 'Invasion of Zendikar', 'Third Path Iconoclast', 'Archangel Avacyn', 'Steppe Lynx', 'Curious Homunculus', 'Syr Faren, the Hengehammer', 'Golgari Rot Farm', 'Into the Roil', 'Tribute to Hunger', 'Cremate', 'Pillar of the Paruns', 'Abiding Grace', 'Orzhov Charm', 'Divinity of Pride', 'Murderous Cut', 'Oona, Queen of the Fae', 'Arbor Elf', 'Verduran Enchantress', 'Silversmote Ghoul', 'Genesis Ultimatum', 'Xerex Strobe-Knight', 'Circular Logic', 'Rakdos Charm', 'Cartel Aristocrat', 'Ulvenwald Hydra', 'Kiora Bests the Sea God', 'Cryptic Caves', 'Become Immense', 'Glacial Fortress', 'Drossforge Bridge', 'Lodestone Golem', 'Stupor', 'Llanowar Tribe', 'Ancestral Blade', 'Combat Thresher', 'Leather Armor', 'Fyndhorn Elves', 'Ignite Memories', 'Condemn', 'Sinister Concoction', 'Silverblade Paladin', 'Tolarian Terror', 'Bring the Ending', 'Elvish Visionary', 'Necrogen Spellbomb', 'Dragonskull Summit', 'Merfolk Sovereign', 'Bone Shards', 'Yavimaya Iconoclast', 'Carven Caryatid', 'Herald of the Pantheon', 'Purify the Grave', 'Ethereal Armor', 'Felidar Cub', 'Mwonvuli Acid-Moss', 'Vedalken Heretic', 'Scrabbling Claws', 'Squee, Goblin Nabob', 'Ghostly Pilferer', 'Cloudpost', 'Ruric Thar, the Unbowed', 'Fruit of Tizerus', 'Pack Rat', 'Putrid Imp', 'Gigadrowse', 'Commit // Memory', 'Exclude', 'Aetherspouts', 'Declaration in Stone', 'Phyrexian Unlife', 'Death Cloud', 'Sheoldred''s Edict', 'Tidespout Tyrant', 'Inscribed Tablet', 'Malakir Rebirth', 'Brain Freeze', 'Bloodline Keeper', 'Tezzeret''s Gambit', 'Brainstone', 'Gravelgill Duo', 'Thraben Inspector', 'Kitesail Freebooter', 'Rise // Fall', 'Presence of Gond', 'Detention Sphere', 'Sigrid, God-Favored', 'Dawn of Hope', 'Tilling Treefolk', 'Tectonic Edge', 'Altar of the Goyf', 'Murmuring Bosk', 'Ajani, Mentor of Heroes', 'Nimbus Maze', 'Go for Blood', 'Surrak, the Hunt Caller', 'Llanowar Augur', 'Nether Spirit', 'Ishkanah, Grafwidow', 'Knight of New Alara', 'Okina, Temple to the Grandfathers', 'Audacity', 'Dissipate', 'Wolfbriar Elemental', 'Talisman of Curiosity', 'Throat Slitter', 'Incinerate', 'Shivan Reef', 'Thundermaw Hellkite', 'Doom Blade', 'Graven Lore', 'Nekrataal', 'Platinum Angel', 'Invisible Stalker', 'Price of Progress', 'Ethersworn Sphinx', 'Ammit Eternal', 'Nissa, Worldwaker', 'Valakut Exploration', 'Night of Souls'' Betrayal', 'Needle Spires', 'Arcane Sanctum', 'Vampiric Rites', 'Deprive', 'Annex Sentry', 'Blessed Alliance', 'Experimental Augury', 'Experimental Synthesizer', 'Knight of the Reliquary', 'Dregscape Zombie', 'Vexing Shusher', 'Gavony Township', 'Meeting of Minds', 'Obstinate Baloth', 'Secluded Steppe', 'Teshar, Ancestor''s Apostle', 'Think Twice', 'Expedite', 'Mulch', 'Phantasmal Image', 'Valiant Changeling', 'Varolz, the Scar-Striped', 'Shimmerdrift Vale', 'Dark Prophecy', 'Oracle of Tragedy', 'Jace Beleren', 'Augur of Bolas', 'Archon of Sun''s Grace', 'Brokers Hideout', 'Fearless Fledgling', 'Fae of Wishes', 'Corrupted Conviction', 'Frantic Search', 'Armored Scrapgorger', 'Prologue to Phyresis', 'Obscura Storefront', 'Fetid Heath', 'Ivy Lane Denizen', 'Vessel of Nascency', 'Languish', 'Icehide Golem', 'Jokulhaups', 'Consul''s Lieutenant', 'Zur''s Weirding', 'Postmortem Lunge', 'Consume the Meek', 'Gnawing Vermin', 'Azorius Charm', 'Silent Gravestone', 'Evacuation', 'Gallia of the Endless Dance', 'Nether Traitor', 'Destroy Evil', 'Endbringer', 'Collected Conjuring', 'Embodiment of Fury', 'Ashnod, Flesh Mechanist', 'Crux of Fate', 'Ral, Izzet Viceroy', 'Metalwork Colossus', 'Elvish Archdruid', 'Nissa, Steward of Elements', 'Ardent Recruit', 'Ulamog''s Crusher', 'Angel of Serenity', 'Farhaven Elf', 'Graveborn Muse', 'Sylvan Caryatid', 'Sylvan Library', 'Reinforced Ronin', 'Obscura Charm', 'Arch of Orazca', 'Laboratory Maniac', 'Skyclave Shade', 'Ashen Rider', 'Ayli, Eternal Pilgrim', 'Thoughts of Ruin', 'Raffine''s Informant', 'Servo Exhibition', 'Union of the Third Path', 'Precursor Golem', 'Venerated Loxodon', 'Invigorate', 'Fallen Shinobi', 'Consuming Vapors', 'Mikokoro, Center of the Sea', 'Boros Guildgate', 'Nameless Inversion', 'Battle of Wits', 'The Celestus', 'Drannith Stinger'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Kozilek''s Predator', 'Silverblade Paladin', 'Knight of the Reliquary', 'Harmonize', 'Exclude', 'Silver-Fur Master', 'Vigor', 'Sinister Concoction', 'Nested Shambler', 'Lavaclaw Reaches', 'Dusk // Dawn', 'Kogla, the Titan Ape', 'Tomebound Lich', 'Fyndhorn Elves', 'Mistveil Plains', 'Council''s Judgment', 'Bone Shards', 'Dissipate', 'Geyadrone Dihada', 'Bubbling Cauldron', 'Temple of Enlightenment', 'Loxodon Smiter', 'Changeling Outcast', 'Ravenous Squirrel', 'Battlefield Forge', 'Seedcradle Witch', 'Disrupting Shoal', 'Otherworldly Journey', 'Augur of Bolas', 'Union of the Third Path', 'Giant Killer', 'Bloodbraid Elf', 'Spellweaver Helix', 'Brave the Elements', 'Gideon''s Lawkeeper', 'Brave the Sands', 'Brainstone', 'Ossification', 'Snow-Covered Mountain', 'Delay', 'Murderous Redcap', 'Elderscale Wurm', 'Gilt-Leaf Archdruid', 'Karumonix, the Rat King', 'Woodland Cemetery', 'Madcap Experiment', 'Smoldering Marsh', 'Fiery Justice', 'Phyrexian Unlife', 'Fact or Fiction', 'Assault // Battery', 'Quicken', 'Golgari Guildgate', 'Cabal Therapist', 'Anafenza, Kin-Tree Spirit', 'Lay Down Arms', 'Vraan, Executioner Thane', 'Mistblade Shinobi', 'Shimmerdrift Vale', 'Artistic Refusal', 'Falkenrath Pit Fighter', 'Arcum''s Astrolabe', 'Myth Realized', 'Forked Bolt', 'Barbarian Ring', 'General Ferrous Rokiric', 'Obzedat, Ghost Council', 'Sunstrike Legionnaire', 'Coiling Oracle', 'Sacred Peaks', 'True Believer', 'Altered Ego', 'Pain Seer', 'Wall of Omens', 'Oblivion Ring', 'Blue Sun''s Zenith', 'Invasion of Kaladesh', 'Ancestral Blade', 'Bitter Reunion', 'Talisman of Curiosity', 'Raging Ravine', 'Pack Rat', 'Elite Inquisitor', 'Gravelgill Duo', 'Fireblade Charger', 'Incinerate', 'Engulf the Shore', 'Blightbelly Rat', 'Sandsteppe Citadel', 'Commune with Spirits', 'Bloodvial Purveyor', 'Sigil of the Empty Throne', 'Idyllic Tutor', 'Impulse', 'Rally the Peasants', 'Bolas''s Citadel', 'Fire Prophecy', 'Lingering Souls', 'Notorious Throng', 'Malicious Malfunction', 'Second Sunrise', 'Fracturing Gust', 'Big Game Hunter', 'Flooded Grove', 'Inscription of Ruin', 'Crux of Fate', 'Bontu''s Last Reckoning', 'Pharika''s Cure', 'Seal of Fire', 'Scour All Possibilities', 'Kessig Wolf Run', 'Vivid Crag', 'Wildborn Preserver', 'Drowner of Hope', 'Doomskar', 'Obstinate Baloth', 'Odds // Ends', 'Sigrid, God-Favored', 'Careful Cultivation', 'Thraben Inspector', 'Kitchen Finks', 'Dauntless Bodyguard', 'Zombie Infestation', 'Stone Rain', 'Crack the Earth', 'Yahenni''s Expertise', 'Prosperous Thief', 'Squadron Hawk', 'Unburial Rites', 'Woe Strider', 'Dimensional Infiltrator', 'Gnat Miser', 'Resolute Reinforcements', 'Think Twice', 'Leonin Relic-Warder', 'Syphon Life', 'Sea-Dasher Octopus', 'Reckoner''s Bargain', 'Doom Blade', 'Return to the Ranks', 'White Sun''s Zenith', 'Black Sun''s Zenith', 'Temple of Plenty', 'Temple of Deceit', 'Ruric Thar, the Unbowed', 'Pillar of the Paruns', 'Jor Kadeen, First Goldwarden', 'Dismal Backwater', 'Rix Maadi Reveler', 'Night of Souls'' Betrayal', 'Anafenza, the Foremost', 'Seismic Assault', 'Wonder', 'Temple of Silence', 'Orzhov Guildgate', 'Contaminated Aquifer', 'Eternal Scourge', 'Raffine''s Informant', 'Emmara, Soul of the Accord', 'Distorted Curiosity', 'Goldmeadow Harrier', 'Triumphant Adventurer', 'Serra Ascendant', 'Prologue to Phyresis', 'Invasion of Azgol', 'Abiding Grace', 'Bubbling Muck', 'Martyr of Sands', 'Necrogen Spellbomb', 'Devious Cover-Up', 'Ertai''s Scorn', 'Divest', 'Torens, Fist of the Angels', 'Vivid Marsh', 'Dying to Serve', 'Reflector Mage', 'Skymarcher Aspirant', 'Volt Charge', 'Sunlit Marsh', 'Tendo Ice Bridge', 'Angrath, the Flame-Chained', 'Unlucky Witness', 'Rakdos Charm', 'Nature''s Lore', 'Obscura Storefront', 'Greater Gargadon', 'Dreadhorde Butcher', 'Solemnity', 'Karn''s Bastion', 'Demonic Bargain', 'Yorion, Sky Nomad', 'Altar of the Brood', 'Kunoros, Hound of Athreos', 'Kumano Faces Kakkazan', 'Fight as One', 'Geomancer''s Gambit', 'Oracle of Mul Daya', 'Jukai Naturalist', 'Concealing Curtains', 'Thawing Glaciers', 'Aether Spellbomb', 'Waking the Trolls', 'Garruk Wildspeaker', 'Stinkweed Imp', 'Shizo, Death''s Storehouse', 'Cathedral of War', 'Toolcraft Exemplar', 'Pharika''s Libation', 'Chandra, Fire Artisan', 'Godo, Bandit Warlord', 'Riveteers Charm', 'Mortuary Mire', 'Cultivate', 'Timeless Dragon', 'Jace Beleren', 'Memory Lapse', 'Scrabbling Claws', 'Dread Wanderer', 'Angel of Condemnation', 'Slogurk, the Overslime', 'Arbor Elf', 'Swiftfoot Boots', 'Wilt', 'Hard Evidence', 'Into the Story', 'Carnophage', 'Servo Exhibition', 'Razortide Bridge', 'Open the Gates', 'Gutterbones', 'Elixir of Immortality', 'Thragtusk', 'Pardic Miner', 'Drake Haven', 'Grand Abolisher', 'Teneb, the Harvester', 'Spectral Procession', 'Control Magic', 'Silent Gravestone', 'Terminate', 'Invasion of Regatha', 'Caves of Koilos', 'The Antiquities War', 'Marauding Blight-Priest', 'Purify the Grave', 'Sheltered Thicket', 'Ivory Tower', 'Cleansing Wildfire', 'Steppe Lynx', 'Empty the Warrens', 'Shriekmaw', 'Herald of the Pantheon', 'Grave Scrabbler', 'Annex Sentry', 'Recruitment Officer', 'Auriok Sunchaser', 'Inevitable Betrayal', 'Zuran Orb', 'Wild Cantor', 'Tocasia''s Dig Site', 'Change the Equation', 'Oona''s Grace', 'Third Path Iconoclast', 'Sire of Insanity', 'Chittering Rats', 'Venerated Loxodon', 'Felidar Cub', 'Tear Asunder', 'Llanowar Elves', 'Out of Time', 'Hour of Promise', 'Gruul Guildgate', 'Winds of Abandon', 'Leonin Warleader', 'Banishing Slash', 'Consul''s Lieutenant', 'Stubborn Denial', 'Bump in the Night', 'Marit Lage''s Slumber', 'Tolarian Terror', 'Dregscape Zombie', 'Skirk Prospector', 'Chandra, Pyromaster', 'Nissa, Steward of Elements', 'Psychatog', 'Invasion of Zendikar', 'Agonizing Remorse', 'Into the Roil', 'Kaya, Ghost Assassin', 'Graven Lore', 'Wolfbriar Elemental', 'Dark Petition', 'Izzet Charm', 'Divinity of Pride', 'Slaughter Pact', 'Invisible Stalker', 'Ghostfire Blade', 'Voidwing Hybrid', 'Whispersilk Cloak', 'War Falcon', 'Kiora, the Crashing Wave', 'Gather the Townsfolk', 'Hostage Taker', 'Tangled Islet', 'Abyssal Persecutor', 'Declaration in Stone', 'Blanchwood Prowler', 'Negate', 'Mulldrifter', 'Marwyn, the Nurturer', 'Basilisk Collar', 'Rakdos Guildgate', 'Staff of Domination', 'Midnight Guard', 'Monument to Perfection', 'Leonin Arbiter', 'Twinshot Sniper', 'Consume the Meek', 'Tidespout Tyrant', 'Demigod of Revenge', 'Jwari Disruption', 'Frantic Search', 'Grave Titan', 'Silumgar''s Scorn', 'Bring the Ending', 'Eidolon of Blossoms', 'Nezumi Graverobber', 'Riveteers Overlook', 'Kjeldoran Outpost', 'Ayli, Eternal Pilgrim', 'Blood on the Snow', 'Nimble Larcenist', 'Honor of the Pure', 'Izzet Boilerworks', 'Lotus Cobra', 'Faeburrow Elder', 'Dead of Winter', 'Carven Caryatid', 'Tendrils of Agony', 'Strike It Rich', 'Titania, Protector of Argoth', 'Jace, Architect of Thought', 'Invoke Calamity', 'Stirring Wildwood', 'Viashino Pyromancer', 'Spikefield Hazard', 'Kor Skyfisher', 'Gruul Turf', 'Kitchen Imp', 'Firewild Borderpost', 'Secluded Courtyard', 'Mistvault Bridge', 'Mazemind Tome', 'Skyshroud Elf', 'Bident of Thassa', 'Huatli, Radiant Champion', 'Possibility Storm', 'Gift of Immortality', 'Adanto Vanguard', 'Cabaretti Courtyard', 'Jungle Shrine', 'Arbalest Engineers', 'Rain of Tears', 'Seal of Cleansing', 'Doomed Traveler', 'Nameless Inversion', 'Azorius Guildgate', 'Earthquake', 'Scarab Feast', 'Pillage', 'Burning of Xinye', 'Shred Memory', 'Jwari Shapeshifter', 'Founding the Third Path', 'Galerider Sliver', 'Heliod''s Intervention', 'Blessed Alliance', 'Discovery // Dispersal', 'Vampiric Rites', 'Ivy Lane Denizen', 'Progenitor Exarch', 'Eldrazi Skyspawner', 'Smuggler''s Copter', 'Knowledge Pool', 'Ancient Stirrings', 'Arguel''s Blood Fast', 'Teshar, Ancestor''s Apostle', 'Fae of Wishes', 'Smallpox', 'Disenchant', 'Rootbound Crag', 'Vraska''s Contempt', 'Icehide Golem', 'Glimmerpost', 'Shape Anew', 'Mindcrank', 'Chief Engineer', 'The Seedcore', 'Tribute to Horobi', 'Lagrella, the Magpie', 'Vivid Grove', 'Tranquil Thicket', 'Of One Mind', 'Sylvan Scrying', 'Approach of the Second Sun', 'Energy Refractor', 'Stoic Rebuttal', 'Dire-Strain Rampage', 'Drainpipe Vermin', 'Terastodon', 'Inscribed Tablet', 'Ghost Quarter', 'Sarkhan the Masterless', 'Ransack the Lab', 'Ornithopter', 'Drowned Catacomb', 'Farhaven Elf', 'Forging the Anchor', 'Bilious Skulldweller', 'Rustvale Bridge', 'Elas il-Kor, Sadistic Pilgrim', 'Akiri, Fearless Voyager', 'Surrak, the Hunt Caller', 'Kappa Tech-Wrecker', 'Chain Lightning', 'Elvish Mystic', 'Thaumatic Compass', 'Bogbrew Witch', 'Elvish Visionary', 'Drown in Ichor', 'Voltage Surge', 'Circuit Mender', 'Ghostly Pilferer', 'Overgrowth', 'Rishkar, Peema Renegade', 'Hesitation', 'Mishra''s Research Desk', 'Nine Lives', 'Hall of Oracles', 'Fearless Fledgling', 'Deep Forest Hermit', 'Fierce Empath', 'Yavimaya Coast', 'Yawgmoth''s Bargain', 'Voldaren Pariah', 'Gleeful Demolition', 'The Celestus', 'Flametongue Kavu', 'Corrupted Crossroads', 'Caldera Hellion', 'Chamber Sentry', 'Frantic Inventory', 'Glorybringer', 'Shardless Agent', 'Settle the Wreckage', 'Wooded Bastion', 'Seeker of the Way', 'Ral, Izzet Viceroy', 'Thopter Mechanic', 'Far // Away', 'Saffi Eriksdotter', 'Blade Splicer', 'Throat Slitter', 'Aetherspouts', 'Chaotic Transformation', 'Ambush Viper', 'Nevermore', 'Mystical Teachings', 'Mikokoro, Center of the Sea', 'Runed Halo', 'Briarbridge Tracker', 'Reinforced Ronin', 'Goblin Electromancer', 'Silverbluff Bridge', 'Meeting of Minds', 'Quiet Speculation', 'Cut Down', 'Dovin''s Acuity', 'Wrench Mind', 'Kazandu Blademaster', 'Circular Logic', 'The Mending of Dominaria', 'Oona''s Prowler', 'Priest of the Haunted Edge', 'Glacial Fortress', 'Lodestone Golem', 'Phantasmal Image', 'Kami of False Hope', 'Norn''s Inquisitor', 'Erebos''s Intervention', 'Temple of Abandon', 'Summary Dismissal', 'Corpse Cur', 'Orim''s Chant', 'Polukranos, World Eater', 'Unholy Heat', 'Azorius Charm', 'Glistener Elf', 'Dispatch', 'Vessel of Nascency', 'Dead // Gone', 'Chief of the Foundry', 'Sever the Bloodline', 'Vindicate', 'Angel of Serenity', 'Rotting Rats', 'Rites of Spring', 'Thundermaw Hellkite', 'Westvale Abbey', 'Frenetic Sliver', 'Counterflux', 'Dark Prophecy', 'Baneful Omen', 'Forgotten Cave', 'Nomad Outpost', 'Open the Armory', 'The Underworld Cookbook', 'Rakdos''s Return', 'Sunpetal Grove', 'Trace of Abundance', 'Aegis of the Gods', 'Sulfur Falls', 'Night Market Lookout', 'Breya''s Apprentice', 'Disciple of Bolas', 'Lantern-Lit Graveyard', 'Wrath of God', 'Knight of the White Orchid', 'Rocco, Cabaretti Caterer', 'Ghostly Flicker', 'Valiant Changeling', 'Ulamog''s Crusher', 'Din of the Fireherd', 'Phyrexian Censor', 'Gateway Plaza', 'Mausoleum Secrets', 'Sandwurm Convergence', 'Helm of the Host', 'Check for Traps', 'Jokulhaups', 'Diffusion Sliver', 'Folio of Fancies', 'Satyr Wayfinder', 'Mastermind''s Acquisition', 'Oracle of Tragedy', 'Malcator, Purity Overseer', 'Primal Command', 'Draugr Necromancer', 'Sea Gate Oracle', 'Acidic Slime', 'Eldrazi Displacer', 'Shrapnel Blast', 'Golgari Rot Farm', 'Kabira Takedown', 'Spatial Contortion', 'Sudden Edict', 'Universal Automaton', 'Detention Sphere', 'Rise and Shine', 'Ramunap Excavator', 'Commit // Memory', 'Eiganjo Castle', 'Kor Firewalker', 'Fetid Pools', 'Moderation', 'All That Glitters', 'Viscera Seer', 'Tocatli Honor Guard', 'Ardent Recruit', 'Supreme Will', 'Etherium Sculptor', 'Mind''s Desire', 'Champion of Wits', 'Ignite Memories', 'Self-Assembler', 'Duress', 'Varolz, the Scar-Striped', 'Fiery Temper', 'Fumigate', 'Argentum Masticore', 'Phyrexian Dreadnought', 'Pull from Tomorrow', 'Nissa, Worldwaker', 'Vampire Neonate', 'Ally Encampment', 'Shambling Vent', 'Thassa''s Intervention', 'Mindslaver', 'River of Tears', 'Remorseful Cleric', 'Goblin Dark-Dwellers', 'Magister of Worth', 'Obliterate', 'Dimir Guildgate', 'Sultai Charm', 'Tainted Indulgence', 'Cryptic Caves', 'Aetherblade Agent', 'Sunken Hollow', 'Deep Analysis', 'Ethersworn Sphinx', 'Mothdust Changeling', 'Locket of Yesterdays', 'Venser, Shaper Savant', 'Elspeth Conquers Death', 'Duplicant', 'Solemn Simulacrum', 'Witching Well', 'Frost Titan', 'Throne of the God-Pharaoh', 'Prohibit', 'Springleaf Drum', 'Vampire Lacerator', 'Sin Prodder', 'Sheoldred''s Edict', 'Rakdos Cackler', 'Big Score', 'Blazing Rootwalla', 'Victim of Night', 'Argentum Armor', 'Stinkdrinker Bandit', 'The Scorpion God', 'Kambal, Consul of Allocation', 'Mouth of Ronom', 'Weapons Trainer', 'Figure of Destiny', 'Patchwork Automaton', 'Galvanic Relay', 'Abzan Charm', 'Gadrak, the Crown-Scourge', 'Yasharn, Implacable Earth', 'Invasion of Amonkhet', 'Price of Progress', 'Quest for the Holy Relic', 'Stromkirk Noble', 'Opulent Palace', 'Hornet Queen', 'Pariah', 'King Darien XLVIII', 'Dragonskull Summit', 'Rise // Fall', 'Mistcutter Hydra', 'Oath of Kaya', 'Weathered Wayfarer', 'Battle of Wits', 'Ghitu Lavarunner', 'World Shaper', 'Pyroclasm', 'Ephara, God of the Polis', 'Dreams of Steel and Oil', 'Vapor Snag', 'Kruphix''s Insight', 'Porphyry Nodes', 'Sin Collector', 'Artisan of Kozilek', 'Blight Mamba', 'Blood Artist', 'Assemble the Legion', 'Silversmote Ghoul', 'Genesis Wave', 'Goldmire Bridge', 'Archpriest of Shadows', 'Simic Guildgate', 'Colossal Skyturtle', 'Mnemonic Sphere', 'Thrill of Possibility', 'Devil''s Play', 'Tezzeret''s Gambit', 'Myr Superion', 'Brineborn Cutthroat', 'Scuttling Doom Engine', 'Malakir Rebirth', 'Zephyr Singer', 'Graaz, Unstoppable Juggernaut', 'Wood Elves', 'Archangel of Wrath', 'Embodiment of Fury', 'Grand Arbiter Augustin IV', 'Worship', 'Thopter Spy Network', 'Predatory Sliver', 'Kemba, Kha Enduring', 'Sleight of Hand', 'Fabricate', 'Scrapheap Scrounger', 'Day of Judgment', 'Inkwell Leviathan', 'Yavimaya Iconoclast', 'Rampant Growth', 'Nekrataal', 'Ayara, First of Locthwain', 'Kaito, Dancing Shadow', 'Bloodchief Ascension', 'Explore', 'Vryn Wingmare', 'Ensoul Artifact', 'Greater Tanuki', 'Oona, Queen of the Fae', 'Tribute to Hunger', 'Wizard''s Retort', 'Kalastria Healer', 'Memoricide', 'Tezzeret the Schemer', 'Gideon''s Intervention', 'Tyrant''s Choice', 'Molten Tributary', 'Boros Elite', 'Tilling Treefolk', 'Master of Death', 'Guile', 'Dread Return', 'Birds of Paradise', 'Ancient Amphitheater', 'Crawling Chorus', 'Diabolic Tutor', 'Fieldmist Borderpost', 'Demolition Field', 'Nimble Trapfinder', 'Cloudshredder Sliver', 'Sinew Sliver', 'Stupor', 'Orcish Lumberjack', 'Resurgent Belief', 'Herd Migration', 'Evolving Wilds', 'Felidar Retreat', 'Combat Thresher', 'Geothermal Bog', 'Mina and Denn, Wildborn', 'Dimir Aqueduct', 'Lochmere Serpent', 'Bituminous Blast', 'Battle of Frost and Fire', 'Spell Burst', 'Hinterland Harbor', 'Anoint with Affliction', 'Peek', 'Sol Talisman', 'Teferi, Mage of Zhalfir', 'Vault Skirge', 'Consult the Necrosages', 'Hieroglyphic Illumination', 'Glint-Sleeve Siphoner', 'Yisan, the Wanderer Bard', 'Simian Spirit Guide', 'Scattered Groves', 'Mirage Mirror', 'Ulcerate', 'Angel of Despair', 'Idyllic Beachfront', 'Unsubstantiate', 'Turnabout', 'Voyaging Satyr', 'Empyrial Plate', 'Izzet Guildgate', 'Sarkhan, the Dragonspeaker', 'Forbidden Alchemy', 'Nullpriest of Oblivion', 'Midnight Reaper', 'Urban Evolution', 'Raise the Alarm', 'Death Cloud', 'Unbreakable Formation', 'Sweltering Suns', 'Endbringer', 'Angel of Grace', 'Obscura Charm', 'Simian Sling', 'Sylvan Caryatid', 'Rally the Ranks', 'Crystal Grotto', 'Xenagos, the Reveler', 'Go for the Throat', 'Festering Newt', 'Dakmor Salvage', 'Venser, the Sojourner', 'Sorin, Vengeful Bloodlord', 'Dokuchi Silencer', 'Cathartic Reunion', 'Putrefy', 'Elemental Masterpiece', 'Scrying Sheets', 'Moon-Circuit Hacker', 'Commune with the Gods', 'Arcbound Ravager', 'Delver of Secrets', 'Ponder', 'Fertile Ground', 'Skyclave Shade', 'Forbid', 'Mana Leak', 'Abundant Growth', 'Stoke the Flames', 'Commune with Nature', 'Valakut Exploration', 'Tooth and Nail', 'Sculpted Perfection', 'Genesis Ultimatum', 'Surge of Salvation', 'Shigeki, Jukai Visionary', 'Archangel Avacyn', 'Murmuring Bosk', 'Tribal Flames', 'Evangel of Synthesis', 'Revitalize', 'Invasion of New Capenna', 'Terminus', 'Melira, the Living Cure', 'Combat Research', 'Executioner''s Capsule', 'Ammit Eternal', 'Grafted Butcher', 'Hideous End', 'Evacuation', 'Plated Geopede', 'Arch of Orazca', 'Deafening Clarion', 'Clifftop Retreat', 'Pyretic Ritual', 'Ral, Storm Conduit', 'Groundswell', 'Duneblast', 'Steel Overseer', 'Stasis Snare', 'Boon-Bringer Valkyrie', 'Platinum Angel', 'Brain Freeze', 'Cabal Ritual', 'Hooting Mandrills', 'Benevolent Bodyguard', 'Enchantress''s Presence', 'Treasure Cruise', 'Soltari Priest', 'Search for Azcanta', 'Bloodchief''s Thirst', 'Siege Rhino', 'Murderous Cut', 'Grenzo, Dungeon Warden', 'Selesnya Guildgate', 'Electrolyze', 'Farseek', 'Frontier Bivouac', 'Hypergenesis', 'Ethereal Armor', 'Swooping Lookout', 'Judge''s Familiar', 'Timeless Witness', 'Ashenmoor Liege', 'Late to Dinner', 'Anguished Unmaking', 'Thrash // Threat', 'Fleecemane Lion', 'Hero''s Downfall', 'Jungle Hollow', 'Call of the Death-Dweller', 'Slagwoods Bridge', 'Needle Spires', 'Drowned Rusalka', 'Corrupted Conviction', 'Slagstorm', 'Squee, Goblin Nabob', 'Tectonic Edge', 'Ashen Rider', 'Arcane Sanctum', 'Consuming Vapors', 'Nightscape Familiar', 'Eerie Ultimatum', 'Venser, Corpse Puppet', 'Verduran Enchantress', 'Stir the Grave', 'Smother', 'Wayward Guide-Beast', 'Mirror Entity', 'Timely Reinforcements', 'Herd Baloth', 'Curse of Exhaustion', 'Dragon''s Hoard', 'Shimmer Dragon', 'Armored Scrapgorger', 'Dawn of Hope', 'Vines of Vastwood', 'Faerie Vandal', 'Utter End', 'Terrarion', 'Mystic Monastery', 'Acquisitions Expert', 'Tymaret, Chosen from Death', 'Talisman of Unity', 'Halimar Excavator', 'Spell Pierce', 'Apostle''s Blessing', 'Nimble Obstructionist', 'Dream Trawler', 'Mesa Enchantress', 'Ulvenwald Hydra', 'Mistvein Borderpost', 'Wanderwine Hub', 'Gitaxian Probe', 'Bogardan Hellkite', 'Maestros Charm', 'Alms of the Vein', 'High-Speed Hoverbike', 'Deprive', 'Thornwood Falls', 'Spirited Companion', 'Thornglint Bridge', 'Makeshift Mannequin', 'Ground Seal', 'Dark-Dweller Oracle', 'Restoration Angel', 'Lazotep Chancellor', 'Tamiyo, Collector of Tales', 'Hada Freeblade', 'Wandering Fumarole', 'Cliffside Lookout', 'Dross Skullbomb', 'Knight of New Alara', 'Scrapwork Mutt', 'Cremate', 'Precinct Captain', 'Network Disruptor', 'Crawling Barrens', 'Game Trail', 'Darksteel Colossus', 'Sphere of Safety', 'Spectral Shift', 'Altar of the Goyf', 'Rust Goliath', 'Repudiate // Replicate', 'Pyrite Spellbomb', 'Krosan Grip', 'Grand Architect', 'Restore Balance', 'Destiny Spinner', 'Grim Haruspex', 'Snow-Covered Swamp', 'Pore Over the Pages', 'Cloudpost', 'Destroy Evil', 'Dryad Militant', 'Kher Keep', 'Aetherling', 'Orzhov Basilica', 'Fade from Memory', 'Gavony Township', 'Darksteel Citadel', 'Ogre Slumlord', 'Collected Conjuring', 'Precursor Golem', 'Sins of the Past', 'Joint Exploration', 'Ovika, Enigma Goliath', 'Vampire Hexmage', 'Psychic Possession', 'Basking Rootwalla', 'Gloomshrieker', 'Sculpting Steel', 'Haunted Mire', 'Liliana Vess', 'Invigorate', 'Phyrexian Revoker', 'Veinfire Borderpost', 'Mulch', 'Forsake the Worldly', 'Ancient Ziggurat', 'Sylvan Advocate', 'Ashnod, Flesh Mechanist', 'General''s Enforcer', 'Voidslime', 'Experimental Augury', 'Port Town', 'Curiosity', 'Hanweir Garrison', 'Postmortem Lunge', 'Touch the Spirit Realm', 'Might of Old Krosa', 'Epic Experiment', 'Temple of Triumph', 'Drossforge Bridge', 'Prophetic Prism', 'Marble Diamond', 'Isolated Chapel', 'Boreal Shelf', 'Desperate Ritual', 'Soldier of the Pantheon', 'Feed the Swarm', 'Fallaji Archaeologist', 'Invasion of Ergamon', 'Zur''s Weirding', 'Ajani, Mentor of Heroes', 'Seal of Removal', 'Bloodline Keeper', 'Tezzeret, Artifice Master', 'Wasteland Strangler', 'Tangle', 'Arlinn Kord', 'Scab-Clan Berserker', 'Gigadrowse', 'Racers'' Ring', 'Burst Lightning', 'Luminarch Ascension', 'Grolnok, the Omnivore', 'Knight of Glory', 'Heliod''s Pilgrim', 'Chandra, Flamecaller', 'Frostwalk Bastion', 'Melira, Sylvok Outcast', 'Maze''s End', 'Grove of the Guardian', 'Sterling Grove', 'Rift Bolt', 'Lose Focus', 'Unmarked Grave', 'See Beyond', 'Graven Cairns', 'Increasing Ambition', 'Shalai, Voice of Plenty', 'Canyon Slough', 'Recurring Nightmare', 'Hope of Ghirapur', 'Protect the Negotiators', 'Experimental Synthesizer', 'Languish', 'Stern Dismissal', 'Anger of the Gods', 'Gruul Spellbreaker', 'Barter in Blood', 'Expedition Envoy', 'Flame Rift', 'Mishra''s Factory', 'Llanowar Augur', 'Archon of Sun''s Grace', 'Ishkanah, Grafwidow', 'Commence the Endgame', 'Secluded Steppe', 'Graveborn Muse', 'Xerex Strobe-Knight', 'Ruin Crab', 'Rites of Initiation', 'Hypnotic Specter', 'Upheaval', 'Vadrik, Astral Archmage', 'Glamerdye', 'Mindsplice Apparatus', 'Lightning Strike', 'Avacyn''s Pilgrim', 'Leather Armor', 'Nephalia Drownyard', 'Heartless Act', 'Moorland Haunt', 'Succumb to Temptation', 'Merciless Eviction', 'Cauldron Familiar', 'Orzhov Charm', 'Nezahal, Primal Tide', 'Putrid Imp', 'Froghemoth', 'Floriferous Vinewall', 'Choked Estuary', 'Raven''s Crime', 'Saproling Migration', 'Metalwork Colossus', 'Tempest Djinn', 'Fruit of Tizerus', 'Fetid Heath', 'Hyena Umbra', 'Akoum Hellhound', 'Heap Doll', 'Llanowar Mentor', 'Decree of Justice', 'Presence of Gond', 'Barbed Sextant', 'Gallia of the Endless Dance', 'Wrenn''s Resolve', 'Haunted Fengraf', 'Lizard Blades', 'Tanglepool Bridge', 'Vampire Nighthawk', 'Elvish Archdruid', 'Sprite Dragon', 'Blightning', 'Lavinia of the Tenth', 'Castigate', 'Sphinx''s Herald', 'Radiant Grove', 'Gather the Pack', 'Canopy Vista', 'Empyrial Armor', 'Ichorclaw Myr', 'Vedalken Heretic', 'Silumgar, the Drifting Death', 'Sylvan Library', 'Reveillark', 'Vexing Shusher', 'Vraska''s Fall', 'Bloodsoaked Champion', 'Silundi Vision', 'Llanowar Tribe', 'Summer Bloom', 'Temple of Malady', 'Tresserhorn Sinks', 'Esper Charm', 'Territorial Kavu', 'Stone Haven Outfitter', 'Time of Need', 'Maelstrom Pulse', 'Flaying Tendrils', 'Abundant Harvest', 'Gideon Jura', 'Woodfall Primus', 'Halana and Alena, Partners', 'Terramorphic Expanse', 'Faerie Miscreant', 'Fangren Marauder', 'Elves of Deep Shadow', 'Dark Ritual', 'Boros Guildgate', 'Shivan Reef', 'Botanical Plaza', 'The Flame of Keld', 'Condemn', 'Rune Snag', 'Disallow', 'Ajani, Adversary of Tyrants', 'Cabal Initiate', 'Search for Tomorrow', 'Repeal', 'Lightning Spear', 'Lurrus of the Dream-Den', 'Rabbit Battery', 'Tidehollow Sculler', 'Cartel Aristocrat', 'Genesis Hydra', 'Green Sun''s Twilight', 'Oni-Cult Anvil', 'Become Immense', 'Phoenix Chick', 'Celestial Colonnade', 'Ranger of Eos', 'Hissing Quagmire', 'Mwonvuli Acid-Moss', 'Morsel Theft', 'Nether Spirit', 'Myr Battlesphere', 'Oath of Teferi', 'Mirran Crusader', 'Goblin Bombardment', 'Mesmeric Fiend', 'Buried Ruin', 'Shard Volley', 'Misery Charm', 'Koth, Fire of Resistance', 'Gnawing Vermin', 'Raze to the Ground', 'Elvish Rejuvenator', 'Master of Etherium', 'Kefnet the Mindful', 'Snow-Covered Plains', 'Dakkon, Shadow Slayer', 'Radha, Heart of Keld', 'Unctus, Grand Metatect', 'Kiora Bests the Sea God', 'Lost Legacy', 'Nimbus Maze', 'Rally the Ancestors', 'Cataclysmic Gearhulk', 'Sign in Blood', 'Call to the Grave', 'Faith''s Reward', 'Solitary Confinement', 'Glimpse of Tomorrow', 'Kemba, Kha Regent', 'Wildfield Borderpost', 'Sunblade Samurai', 'Rule of Law', 'Dead Weight', 'Frost Marsh', 'Oust', 'Archaeomancer', 'Kitesail Freebooter', 'Vault of the Archangel', 'Healer''s Hawk', 'Brokers Hideout', 'Gift of Estates', 'Demonic Dread', 'Narcomoeba', 'Seething Song', 'Temple of Mystery', 'Curious Homunculus'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Glacial Fortress', 'Esper Charm', 'Grand Abolisher', 'Become Immense', 'Blight Mamba', 'Saproling Migration', 'Garruk Wildspeaker', 'Lagrella, the Magpie', 'Drainpipe Vermin', 'Forked Bolt', 'Mazemind Tome', 'Midnight Reaper', 'Stoke the Flames', 'Gallia of the Endless Dance', 'Smuggler''s Copter', 'Inkwell Leviathan', 'Spirited Companion', 'Stinkweed Imp', 'Kessig Wolf Run', 'Eldrazi Displacer', 'Ral, Izzet Viceroy', 'Cartel Aristocrat', 'Wolfbriar Elemental', 'Dragon''s Hoard', 'General Ferrous Rokiric', 'Melira, Sylvok Outcast', 'Overgrowth', 'Grafted Butcher', 'Shalai, Voice of Plenty', 'Moorland Haunt', 'Enchantress''s Presence', 'Guile', 'Kjeldoran Outpost', 'Sterling Grove', 'Bident of Thassa', 'Tribute to Hunger', 'Voidwing Hybrid', 'Izzet Boilerworks', 'Graveborn Muse', 'Silversmote Ghoul', 'River of Tears', 'Ajani, Mentor of Heroes', 'Avacyn''s Pilgrim', 'Monument to Perfection', 'Grove of the Guardian', 'Deep Forest Hermit', 'Mindcrank', 'Glorybringer', 'Hero''s Downfall', 'Rain of Tears', 'Secluded Steppe', 'Gadrak, the Crown-Scourge', 'Expedition Envoy', 'Rustvale Bridge', 'Farseek', 'Ruric Thar, the Unbowed', 'Zuran Orb', 'Fallaji Archaeologist', 'Eidolon of Blossoms', 'Gruul Guildgate', 'Metalwork Colossus', 'Psychic Possession', 'Apostle''s Blessing', 'Ignite Memories', 'Progenitor Exarch', 'Tempest Djinn', 'Cremate', 'Pillar of the Paruns', 'Morsel Theft', 'Clifftop Retreat', 'Worship', 'Augur of Bolas', 'Wrath of God', 'Sunpetal Grove', 'Kumano Faces Kakkazan', 'Kitchen Imp', 'Chief Engineer', 'Sigrid, God-Favored', 'Maelstrom Pulse', 'Graven Lore', 'Temple of Triumph', 'Mystical Teachings', 'Seeker of the Way', 'Dying to Serve', 'Obliterate', 'Kami of False Hope', 'Weapons Trainer', 'Breya''s Apprentice', 'Boros Guildgate', 'Bloodchief''s Thirst', 'Bituminous Blast', 'Forging the Anchor', 'Heliod''s Pilgrim', 'Strike It Rich', 'Goblin Electromancer', 'Tribute to Horobi', 'Fruit of Tizerus', 'Sea-Dasher Octopus', 'Banishing Slash', 'Chaotic Transformation', 'Blightning', 'Basking Rootwalla', 'Yahenni''s Expertise', 'Ertai''s Scorn', 'Carven Caryatid', 'Temple of Malady', 'Maze''s End', 'Thassa''s Intervention', 'Scab-Clan Berserker', 'Crack the Earth', 'Tranquil Thicket', 'Ivory Tower', 'Presence of Gond', 'Agonizing Remorse', 'Mastermind''s Acquisition', 'Sarkhan the Masterless', 'Bloodvial Purveyor', 'Jwari Disruption', 'Bump in the Night', 'Kher Keep', 'Lazotep Chancellor', 'Lotus Cobra', 'Felidar Cub', 'Artisan of Kozilek', 'Rotting Rats', 'Graven Cairns', 'Fieldmist Borderpost', 'Invasion of Kaladesh', 'Phyrexian Revoker', 'Vault Skirge', 'Commit // Memory', 'Seal of Cleansing', 'Cauldron Familiar', 'Nevermore', 'Gruul Spellbreaker', 'Circular Logic', 'Wood Elves', 'Phoenix Chick', 'Solemn Simulacrum', 'Sinew Sliver', 'Etherium Sculptor', 'Smother', 'Farhaven Elf', 'Scarab Feast', 'Sarkhan, the Dragonspeaker', 'Disallow', 'Wildfield Borderpost', 'Death Cloud', 'Llanowar Augur', 'Knight of the Reliquary', 'Whir of Invention', 'Dusk // Dawn', 'Sphere of Safety', 'Burst Lightning', 'Hieroglyphic Illumination', 'Heartless Act', 'Nezumi Graverobber', 'Succumb to Temptation', 'Brokers Hideout', 'Inevitable Betrayal', 'Hyena Umbra', 'Mothdust Changeling', 'Thrash // Threat', 'Annex Sentry', 'Cultivate', 'Idyllic Tutor', 'Teferi, Mage of Zhalfir', 'Kogla, the Titan Ape', 'Invasion of Zendikar', 'Corpse Cur', 'Norn''s Inquisitor', 'Commune with the Gods', 'Exclude', 'Master of Etherium', 'Languish', 'Fae of Wishes', 'Rakdos Guildgate', 'Birds of Paradise', 'Emmara, Soul of the Accord', 'Ghitu Lavarunner', 'Temple of Silence', 'Exhaustion', 'Honor of the Pure', 'Simic Guildgate', 'Vivid Crag', 'Destroy Evil', 'Diffusion Sliver', 'Frontier Bivouac', 'Combat Research', 'Snow-Covered Swamp', 'Impulse', 'Goblin Bombardment', 'Ornithopter', 'Din of the Fireherd', 'Ethersworn Sphinx', 'Kaya, Ghost Assassin', 'Champion of Wits', 'Electrolyze', 'Chittering Rats', 'Fetid Pools', 'Dreadhorde Butcher', 'Thaumatic Compass', 'Doomed Traveler', 'Rune Snag', 'Precinct Captain', 'Night of Souls'' Betrayal', 'Counterflux', 'Concealing Curtains', 'Valakut Exploration', 'Recruitment Officer', 'Skirk Prospector', 'Myth Realized', 'Shambling Vent', 'Altar of the Goyf', 'Scuttling Doom Engine', 'Sire of Insanity', 'Dross Skullbomb', 'Pyrite Spellbomb', 'Herd Migration', 'Big Game Hunter', 'Ravenous Squirrel', 'Invisible Stalker', 'Commune with Spirits', 'Merciless Eviction', 'Caves of Koilos', 'Dauntless Bodyguard', 'Assemble the Legion', 'General''s Enforcer', 'Jwari Shapeshifter', 'Tamiyo, Collector of Tales', 'Memory Lapse', 'Thopter Spy Network', 'Gift of Estates', 'Victim of Night', 'Icehide Golem', 'Faeburrow Elder', 'Geomancer''s Gambit', 'Chain Lightning', 'Devious Cover-Up', 'Tendo Ice Bridge', 'The Flame of Keld', 'Joint Exploration', 'Sins of the Past', 'Hesitation', 'Toolcraft Exemplar', 'Drowner of Hope', 'Stoic Rebuttal', 'Barter in Blood', 'Decree of Justice', 'Rootbound Crag', 'Thawing Glaciers', 'Experimental Augury', 'Crux of Fate', 'Akoum Hellhound', 'Master of Death', 'Cliffside Lookout', 'Ephara, God of the Polis', 'Halana and Alena, Partners', 'Careful Cultivation', 'Demolition Field', 'Rift Bolt', 'Chandra, Pyromaster', 'Seething Song', 'Nimbus Maze', 'Rakdos Cackler', 'Kabira Takedown', 'Heap Doll', 'Phyrexian Dreadnought', 'Boros Elite', 'Settle the Wreckage', 'Experimental Synthesizer', 'Unbreakable Formation', 'Destiny Spinner', 'Open the Gates', 'Gravelgill Duo', 'Boreal Shelf', 'Felidar Retreat', 'Archangel of Wrath', 'Slogurk, the Overslime', 'Wasteland Strangler', 'Gather the Townsfolk', 'Sheoldred''s Edict', 'Wall of Omens', 'Leonin Arbiter', 'Elas il-Kor, Sadistic Pilgrim', 'Blade Splicer', 'Kambal, Consul of Allocation', 'Oona''s Grace', 'Orzhov Charm', 'Botanical Plaza', 'Torens, Fist of the Angels', 'Fetid Heath', 'Anguished Unmaking', 'Genesis Hydra', 'Groundswell', 'Golgari Guildgate', 'Spellweaver Helix', 'Reckoner''s Bargain', 'Wandering Fumarole', 'Mikokoro, Center of the Sea', 'Curse of Exhaustion', 'Fertile Ground', 'Kruphix''s Insight', 'Nimble Trapfinder', 'Greater Gargadon', 'Rally the Peasants', 'Hope of Ghirapur', 'Seismic Assault', 'Mulldrifter', 'World Shaper', 'Spell Burst', 'Devil''s Play', 'Dakmor Salvage', 'Sign in Blood', 'Lurrus of the Dream-Den', 'Blood Artist', 'Tymaret, Chosen from Death', 'Invasion of Azgol', 'Huatli, Radiant Champion', 'Sphinx''s Herald', 'Frenetic Sliver', 'Deprive', 'Forgotten Cave', 'Hour of Promise', 'Thopter Mechanic', 'Mindslaver', 'Ambush Viper', 'Founding the Third Path', 'Unsubstantiate', 'Kozilek''s Predator', 'Declaration in Stone', 'Prologue to Phyresis', 'Nissa, Worldwaker', 'Graaz, Unstoppable Juggernaut', 'Reflector Mage', 'Tribal Flames', 'Ensoul Artifact', 'Delver of Secrets', 'Greater Tanuki', 'Battle of Frost and Fire', 'Gift of Immortality', 'Memoricide', 'Frost Marsh', 'Galvanic Relay', 'Faerie Vandal', 'Raffine''s Informant', 'Orim''s Chant', 'Anger of the Gods', 'Doomskar', 'Anafenza, the Foremost', 'Woodfall Primus', 'Second Sunrise', 'Gilt-Leaf Archdruid', 'The Seedcore', 'Fiery Justice', 'Rule of Law', 'Acquisitions Expert', 'Stromkirk Noble', 'Battlefield Forge', 'Crawling Barrens', 'Geothermal Bog', 'Elvish Archdruid', 'Kalastria Healer', 'Alms of the Vein', 'Fabricate', 'Melira, the Living Cure', 'Leonin Warleader', 'Fevered Visions', 'Azorius Guildgate', 'Celestial Colonnade', 'Vapor Snag', 'Bloodline Keeper', 'Voyaging Satyr', 'Maestros Charm', 'Silundi Vision', 'Rabbit Battery', 'Leather Armor', 'Tainted Indulgence', 'Pain Seer', 'Embodiment of Fury', 'Throne of the God-Pharaoh', 'Shrapnel Blast', 'Witching Well', 'Return to the Ranks', 'Invasion of New Capenna', 'Cabal Ritual', 'Weathered Wayfarer', 'Empyrial Armor', 'Rakdos''s Return', 'King Darien XLVIII', 'Vampire Neonate', 'Helm of the Host', 'Nine Lives', 'Energy Refractor', 'Woe Strider', 'Vigor', 'Haunted Fengraf', 'Thraben Inspector', 'Adanto Vanguard', 'Obstinate Baloth', 'Triumphant Adventurer', 'Vines of Vastwood', 'Rites of Spring', 'Terastodon', 'Anoint with Affliction', 'Late to Dinner', 'Godo, Bandit Warlord', 'Priest of the Haunted Edge', 'Consume the Meek', 'Mystic Monastery', 'Sylvan Library', 'Fearless Fledgling', 'Frantic Search', 'Invoke Calamity', 'Third Path Iconoclast', 'Bogardan Hellkite', 'Arch of Orazca', 'Approach of the Second Sun', 'Evolving Wilds', 'Molten Tributary', 'Sleight of Hand', 'Orzhov Guildgate', 'Sinister Concoction', 'Misery Charm', 'Fatestitcher', 'Oath of Kaya', 'Assault // Battery', 'Pardic Miner', 'Faith''s Reward', 'Inscribed Tablet', 'Stir the Grave', 'Murmuring Bosk', 'Remorseful Cleric', 'Needle Spires', 'Shimmer Dragon', 'Tendrils of Agony', 'Hostage Taker', 'Dispatch', 'Restore Balance', 'Terminus', 'Lightning Spear', 'Bone Shards', 'Oni-Cult Anvil', 'Veinfire Borderpost', 'Gitaxian Probe', 'Ayli, Eternal Pilgrim', 'Sculpting Steel', 'Stupor', 'Scrabbling Claws', 'Ulamog''s Crusher', 'Izzet Charm', 'Changeling Outcast', 'Smallpox', 'Hypergenesis', 'Valiant Changeling', 'Dark Ritual', 'Halimar Excavator', 'Tocatli Honor Guard', 'Dark Petition', 'Izzet Guildgate', 'Staff of Domination', 'Gideon''s Lawkeeper', 'Xenagos, the Reveler', 'Solitary Confinement', 'Galerider Sliver', 'Llanowar Elves', 'Dismal Backwater', 'Vedalken Heretic', 'Marit Lage''s Slumber', 'The Mending of Dominaria', 'Obscura Storefront', 'Forsake the Worldly', 'Malcator, Purity Overseer', 'Smoldering Marsh', 'Jace, Architect of Thought', 'Sea Gate Oracle', 'Mistvein Borderpost', 'Hissing Quagmire', 'Kiora, the Crashing Wave', 'Ethereal Armor', 'Union of the Third Path', 'Ulvenwald Hydra', 'Racers'' Ring', 'Temple of Abandon', 'Tocasia''s Dig Site', 'Mana Leak', 'Lodestone Golem', 'Goblin Dark-Dwellers', 'Dimir Guildgate', 'Earthquake', 'Kefnet the Mindful', 'Port Town', 'Tooth and Nail', 'Otherworldly Journey', 'Burning of Xinye', 'Aegis of the Gods', 'Search for Azcanta', 'Wooded Bastion', 'Blazing Rootwalla', 'Dreams of Steel and Oil', 'Teshar, Ancestor''s Apostle', 'Eerie Ultimatum', 'Karn''s Bastion', 'Wildborn Preserver', 'Arcane Sanctum', 'Radiant Grove', 'Gloomshrieker', 'Abyssal Persecutor', 'Notorious Throng', 'Vraska''s Fall', 'Rally the Ancestors', 'Froghemoth', 'Surge of Salvation', 'Psychatog', 'Quiet Speculation', 'Radha, Heart of Keld', 'Hideous End', 'Vadrik, Astral Archmage', 'Servo Exhibition', 'Knight of Glory', 'Flaying Tendrils', 'Rishkar, Peema Renegade', 'Ghostly Flicker', 'Voldaren Pariah', 'Soltari Priest', 'Peek', 'Dragonskull Summit', 'Stone Haven Outfitter', 'Duneblast', 'Darksteel Colossus', 'Twinshot Sniper', 'Myr Battlesphere', 'Elixir of Immortality', 'Obzedat, Ghost Council', 'Unlucky Witness', 'Shizo, Death''s Storehouse', 'Pariah', 'Divest', 'Wilt', 'Falkenrath Pit Fighter', 'Winds of Abandon', 'Invasion of Regatha', 'Cathartic Reunion', 'Curious Homunculus', 'Karumonix, the Rat King', 'Arcum''s Astrolabe', 'Shape Anew', 'Mistveil Plains', 'Angrath, the Flame-Chained', 'Faerie Miscreant', 'Pillage', 'Combat Thresher', 'Venser, Shaper Savant', 'Briarbridge Tracker', 'Arcbound Ravager', 'Kunoros, Hound of Athreos', 'Fierce Empath', 'Seal of Fire', 'Jungle Shrine', 'Mindsplice Apparatus', 'Ajani, Adversary of Tyrants', 'Open the Armory', 'Argentum Armor', 'Seal of Removal', 'Tear Asunder', 'Oblivion Ring', 'Primal Command', 'Empyrial Plate', 'Artistic Refusal', 'Demigod of Revenge', 'Marauding Blight-Priest', 'Festering Newt', 'Sandwurm Convergence', 'Commence the Endgame', 'Tezzeret''s Gambit', 'Ashen Rider', 'Wild Cantor', 'Nomad Outpost', 'Lost Legacy', 'Skyshroud Elf', 'Game Trail', 'Canyon Slough', 'Arbalest Engineers', 'Voidslime', 'Utter End', 'Gideon''s Intervention', 'Vampire Nighthawk', 'True Believer', 'Kemba, Kha Regent', 'Fracturing Gust', 'Brainstone', 'Swooping Lookout', 'The Celestus', 'Pore Over the Pages', 'Murderous Redcap', 'Whispersilk Cloak', 'Dokuchi Silencer', 'Hornet Queen', 'Dire-Strain Rampage', 'Repudiate // Replicate', 'Nimble Larcenist', 'Healer''s Hawk', 'Kami of the Crescent Moon', 'Vraska''s Contempt', 'Out of Time', 'Yorion, Sky Nomad', 'Fumigate', 'Abiding Grace', 'Slaughter Pact', 'Sheltered Thicket', 'Unmarked Grave', 'Inscription of Ruin', 'Evangel of Synthesis', 'Aetherling', 'Brave the Sands', 'Price of Progress', 'Duress', 'Bloodchief Ascension', 'Teneb, the Harvester', 'Hada Freeblade', 'Night Market Lookout', 'Possibility Storm', 'Erebos''s Intervention', 'Ardent Recruit', 'Thornglint Bridge', 'Big Score', 'Dimir Aqueduct', 'Tomebound Lich', 'Black Sun''s Zenith', 'Throat Slitter', 'Ground Seal', 'Ramunap Excavator', 'Nimble Obstructionist', 'Mausoleum Secrets', 'Quest for the Holy Relic', 'Kor Firewalker', 'Gleeful Demolition', 'Precursor Golem', 'Mesmeric Fiend', 'Ishkanah, Grafwidow', 'Orcish Lumberjack', 'Verduran Enchantress', 'Ogre Slumlord', 'Raging Ravine', 'Ancestral Blade', 'Stirring Wildwood', 'Spikefield Hazard', 'Urban Evolution', 'Scrapheap Scrounger', 'Hypnotic Specter', 'Temple of Plenty', 'The Underworld Cookbook', 'Archangel Avacyn', 'Stern Dismissal', 'Dream Trawler', 'Nullpriest of Oblivion', 'Blood on the Snow', 'Sever the Bloodline', 'Lizard Blades', 'War Falcon', 'Dark Prophecy', 'Ancient Ziggurat', 'Luminarch Ascension', 'Reveillark', 'Demonic Bargain', 'Resurgent Belief', 'Nephalia Drownyard', 'Bilious Skulldweller', 'Wizard''s Retort', 'Negate', 'Shimmerdrift Vale', 'Dead Weight', 'Blessed Alliance', 'Bitter Reunion', 'Elves of Deep Shadow', 'Distorted Curiosity', 'Glimpse of Tomorrow', 'Pyretic Ritual', 'Steel Overseer', 'Shardless Agent', 'Porphyry Nodes', 'Sunstrike Legionnaire', 'Tectonic Edge', 'Ghostly Pilferer', 'Bogbrew Witch', 'Blue Sun''s Zenith', 'Nested Shambler', 'Unburial Rites', 'Gnawing Vermin', 'Crawling Chorus', 'Myr Superion', 'Ghostfire Blade', 'Diabolic Tutor', 'Stasis Snare', 'Postmortem Lunge', 'Mistvault Bridge', 'Marwyn, the Nurturer', 'Mulch', 'Abundant Harvest', 'Satyr Wayfinder', 'Woodland Cemetery', 'Change the Equation', 'Ally Encampment', 'Ancient Amphitheater', 'Elvish Visionary', 'Fade from Memory', 'Squee, Goblin Nabob', 'Skymarcher Aspirant', 'Dread Return', 'Arlinn Kord', 'Rocco, Cabaretti Caterer', 'Desperate Ritual', 'Supreme Will', 'Touch the Spirit Realm', 'Curiosity', 'Genesis Wave', 'Fangren Marauder', 'Jace Beleren', 'Leonin Relic-Warder', 'Altar of the Brood', 'Midnight Guard', 'Eldrazi Skyspawner', 'Grave Scrabbler', 'Increasing Ambition', 'Yasharn, Implacable Earth', 'Contaminated Aquifer', 'Go for the Throat', 'Into the Roil', 'Rise // Fall', 'Anafenza, Kin-Tree Spirit', 'Pack Rat', 'Silumgar''s Scorn', 'Thrill of Possibility', 'Floriferous Vinewall', 'Self-Assembler', 'Tidespout Tyrant', 'Summer Bloom', 'Cloudpost', 'Caldera Hellion', 'Eiganjo Castle', 'Of One Mind', 'Archpriest of Shadows', 'Madcap Experiment', 'Mishra''s Research Desk', 'Terminate', 'Tidehollow Sculler', 'Forbidden Alchemy', 'Razortide Bridge', 'Temple of Enlightenment', 'Silverblade Paladin', 'Herd Baloth', 'Narcomoeba', 'Hooting Mandrills', 'Oath of Teferi', 'Selesnya Guildgate', 'Might of Old Krosa', 'Detention Sphere', 'Mwonvuli Acid-Moss', 'Siege Rhino', 'Dakkon, Shadow Slayer', 'Dimensional Infiltrator', 'Mnemonic Sphere', 'Vryn Wingmare', 'Chandra, Flamecaller', 'Arguel''s Blood Fast', 'Oona, Queen of the Fae', 'Purify the Grave', 'Azorius Charm', 'Spell Pierce', 'Deafening Clarion', 'Gather the Pack', 'Viscera Seer', 'Summary Dismissal', 'Gigadrowse', 'Westvale Abbey', 'Sultai Charm', 'Control Magic', 'Shigeki, Jukai Visionary', 'Yawgmoth''s Bargain', 'Hinterland Harbor', 'Kazandu Blademaster', 'Fact or Fiction', 'Talisman of Curiosity', 'Council''s Judgment', 'Flametongue Kavu', 'Bubbling Cauldron', 'Lightning Strike', 'Terramorphic Expanse', 'Marble Diamond', 'Martyr of Sands', 'Phyrexian Unlife', 'Silver-Fur Master', 'Ammit Eternal', 'Zephyr Singer', 'Liliana Vess', 'Sweltering Suns', 'Harmonize', 'Ranger of Eos', 'Scattered Groves', 'Sacred Peaks', 'Sculpted Perfection', 'Sandsteppe Citadel', 'Mina and Denn, Wildborn', 'Wrench Mind', 'Universal Automaton', 'Rites of Initiation', 'Fleecemane Lion', 'Demonic Dread', 'Circuit Mender', 'Llanowar Mentor', 'Spectral Shift', 'Evacuation', 'Benevolent Bodyguard', 'Murderous Cut', 'Dissipate', 'Chamber Sentry', 'Grand Arbiter Augustin IV', 'See Beyond', 'Draugr Necromancer', 'Elite Inquisitor', 'Knight of New Alara', 'Timeless Dragon', 'Heliod''s Intervention', 'Drossforge Bridge', 'Rise and Shine', 'Lay Down Arms', 'Unholy Heat', 'Folio of Fancies', 'Canopy Vista', 'Gruul Turf', 'Seedcradle Witch', 'Tezzeret, Artifice Master', 'Patchwork Automaton', 'Castigate', 'Genesis Ultimatum', 'Ancient Stirrings', 'Tezzeret the Schemer', 'Prohibit', 'Search for Tomorrow', 'Time of Need', 'Titania, Protector of Argoth', 'Platinum Angel', 'Timeless Witness', 'Barbed Sextant', 'Fight as One', 'Bontu''s Last Reckoning', 'Phantasmal Image', 'Darksteel Citadel', 'Reinforced Ronin', 'Auriok Sunchaser', 'Dead of Winter', 'Nissa, Steward of Elements', 'Jokulhaups', 'Barbarian Ring', 'Vault of the Archangel', 'Invasion of Amonkhet', 'Acidic Slime', 'Scour All Possibilities', 'Fireblade Charger', 'Knowledge Pool', 'Necrogen Spellbomb', 'Raze to the Ground', 'Ovika, Enigma Goliath', 'Deep Analysis', 'Nekrataal', 'Tangle', 'Dead // Gone', 'Snow-Covered Plains', 'Oracle of Mul Daya', 'Runed Halo', 'Rakdos Charm', 'Chandra, Fire Artisan', 'Stubborn Denial', 'Orzhov Basilica', 'Raven''s Crime', 'Temple of Deceit', 'Golgari Rot Farm', 'Springleaf Drum', 'Krosan Grip', 'Mind''s Desire', 'Malicious Malfunction', 'Oust', 'Abzan Charm', 'Makeshift Mannequin', 'Unctus, Grand Metatect', 'Voltage Surge', 'Yavimaya Coast', 'Yisan, the Wanderer Bard', 'Haunted Dead', 'Pull from Tomorrow', 'Rampant Growth', 'Rix Maadi Reveler', 'Giant Killer', 'Nature''s Lore', 'Sylvan Caryatid', 'Frost Titan', 'Isolated Chapel', 'Revitalize', 'Vampiric Rites', 'Llanowar Tribe', 'Sunblade Samurai', 'Tanglepool Bridge', 'Gateway Plaza', 'Nether Spirit', 'Quicken', 'Dark-Dweller Oracle', 'Network Disruptor', 'Drake Haven', 'Ulcerate', 'Thragtusk', 'Grolnok, the Omnivore', 'Ransack the Lab', 'Consul''s Lieutenant', 'Slagstorm', 'Vivid Marsh', 'Sunken Hollow', 'Koth, Fire of Resistance', 'Incinerate', 'Abundant Growth', 'Angel of Grace', 'Trace of Abundance', 'Rust Goliath', 'Haunted Mire', 'Temple of Mystery', 'Cloudshredder Sliver', 'Wayward Guide-Beast', 'Aetherspouts', 'Mirage Mirror', 'Sprite Dragon', 'Consult the Necrosages', 'Mishra''s Factory', 'Aetherblade Agent', 'Scrapwork Mutt', 'Colossal Skyturtle', 'Kitesail Freebooter', 'Stinkdrinker Bandit', 'Vampire Lacerator', 'Cabal Initiate', 'Howling Mine', 'High-Speed Hoverbike', 'Drown in Ichor', 'Steppe Lynx', 'Consuming Vapors', 'Firewild Borderpost', 'Vampire Hexmage', 'Riveteers Overlook', 'Silverbluff Bridge', 'Idyllic Beachfront', 'Simian Spirit Guide', 'Cut Down', 'Oona''s Prowler', 'Archon of Sun''s Grace', 'Ghost Quarter', 'Treasure Cruise', 'Kemba, Kha Enduring', 'Repeal', 'Boon-Bringer Valkyrie', 'Kitchen Finks', 'Disciple of Bolas', 'Kappa Tech-Wrecker', 'Mirran Crusader', 'Sylvan Advocate', 'Vraan, Executioner Thane', 'Mistblade Shinobi', 'Aether Spellbomb', 'Sin Prodder', 'Boomerang', 'Wrenn''s Resolve', 'Choked Estuary', 'Far // Away', 'Lantern-Lit Graveyard', 'Disenchant', 'Turnabout', 'Gideon Jura', 'Duplicant', 'Eternal Scourge', 'Disrupting Shoal', 'Commune with Nature', 'Green Sun''s Twilight', 'Soldier of the Pantheon', 'Grave Titan', 'Jungle Hollow', 'Doom Blade', 'Pharika''s Cure', 'Lavaclaw Reaches', 'Ponder', 'Mortuary Mire', 'Frostwalk Bastion', 'Wonder', 'Sunlit Marsh', 'Timely Reinforcements', 'Drowned Catacomb', 'Runeflare Trap', 'Restoration Angel', 'Cabal Therapist', 'Vessel of Nascency', 'Coiling Oracle', 'Ichorclaw Myr', 'Venerated Loxodon', 'Putrid Imp', 'Blightbelly Rat', 'Lochmere Serpent', 'Silent Gravestone', 'Akiri, Fearless Voyager', 'Lingering Souls', 'Nightscape Familiar', 'Talisman of Unity', 'Loxodon Smiter', 'Ral, Storm Conduit', 'Plated Geopede', 'Shivan Reef', 'Glimmerpost', 'Magister of Worth', 'Call of the Death-Dweller', 'Explore', 'Sudden Edict', 'Gutterbones', 'Thornwood Falls', 'Sorin, Vengeful Bloodlord', 'Brain Freeze', 'Elvish Mystic', 'Malakir Rebirth', 'Goldmeadow Harrier', 'Tangled Islet', 'Corrupted Crossroads', 'Bolas''s Citadel', 'Gnat Miser', 'Pyroclasm', 'Solemnity', 'Territorial Kavu', 'Zur''s Weirding', 'Frantic Inventory', 'Gavony Township', 'Sylvan Scrying', 'The Antiquities War', 'Viashino Pyromancer', 'Check for Traps', 'Prophetic Prism', 'Sol Talisman', 'Angel of Serenity', 'Executioner''s Capsule', 'Varolz, the Scar-Striped', 'Swiftfoot Boots', 'Laboratory Maniac', 'Figure of Destiny', 'Squadron Hawk', 'Vexing Shusher', 'Glint-Sleeve Siphoner', 'Nameless Inversion', 'Dovin''s Acuity', 'Meeting of Minds', 'Basilisk Collar', 'Epic Experiment', 'Cleansing Wildfire', 'Ayara, First of Locthwain', 'Dawn of Hope', 'Surrak, the Hunt Caller', 'Ashenmoor Liege', 'Raise the Alarm', 'Secluded Courtyard', 'Archaeomancer', 'Odds // Ends', 'The Scorpion God', 'Moon-Circuit Hacker', 'All That Glitters', 'Simian Sling', 'Opulent Palace', 'Condemn', 'Serra Ascendant', 'Tresserhorn Sinks', 'Drowned Rusalka', 'Mirror Entity', 'Rally the Ranks', 'Cataclysmic Gearhulk', 'Nezahal, Primal Tide', 'Vindicate', 'Corrupted Conviction', 'Herald of the Pantheon', 'Fyndhorn Elves', 'Dryad Militant', 'Divinity of Pride', 'Glamerdye', 'Geyadrone Dihada', 'Kaito, Dancing Shadow', 'Call to the Grave', 'Forbid', 'Bloodbraid Elf', 'Flooded Grove', 'Wanderwine Hub', 'Spatial Contortion', 'Goldmire Bridge', 'Thundermaw Hellkite', 'Skyclave Shade', 'Oracle of Tragedy', 'Battle of Wits', 'Elemental Masterpiece', 'Cathedral of War', 'Sulfur Falls', 'Empty the Warrens', 'Mesa Enchantress', 'Snow-Covered Mountain', 'Judge''s Familiar', 'Angel of Despair', 'Tilling Treefolk', 'Tyrant''s Choice', 'Riveteers Charm', 'Armored Scrapgorger', 'Elvish Rejuvenator', 'Lose Focus', 'Silumgar, the Drifting Death', 'Scrying Sheets', 'Saffi Eriksdotter', 'Putrefy', 'Endbringer', 'Syphon Life', 'White Sun''s Zenith', 'Ivy Lane Denizen', 'Jor Kadeen, First Goldwarden', 'Elderscale Wurm', 'Bubbling Muck', 'Lavinia of the Tenth', 'Discovery // Dispersal', 'Shriekmaw', 'Waking the Trolls', 'Angel of Condemnation', 'Ashnod, Flesh Mechanist', 'Invigorate', 'Fiery Temper', 'Terrarion', 'Jukai Naturalist', 'Venser, the Sojourner', 'Cabaretti Courtyard', 'Moderation', 'Carnophage', 'Mistcutter Hydra', 'Bring the Ending', 'Vivid Grove', 'Into the Story', 'Dregscape Zombie', 'Grand Architect', 'Glistener Elf', 'Grim Haruspex', 'Knight of the White Orchid', 'Hanweir Garrison', 'Obscura Charm', 'Recurring Nightmare', 'Buried Ruin', 'Chief of the Foundry', 'Engulf the Shore', 'Spectral Procession', 'Zombie Infestation', 'Feed the Swarm', 'Argentum Masticore', 'Predatory Sliver', 'Collected Conjuring', 'Kor Skyfisher', 'Xerex Strobe-Knight', 'Altered Ego', 'Volt Charge', 'Delay', 'Flame Rift', 'Tolarian Terror', 'Stone Rain', 'Slagwoods Bridge', 'Ruin Crab', 'Day of Judgment', 'Cryptic Caves', 'Think Twice', 'Arbor Elf', 'Prosperous Thief', 'Locket of Yesterdays', 'Shard Volley', 'Blanchwood Prowler', 'Grenzo, Dungeon Warden', 'Yavimaya Iconoclast', 'Brineborn Cutthroat', 'Phyrexian Censor', 'Brave the Elements', 'Dread Wanderer', 'Sigil of the Empty Throne', 'Protect the Negotiators', 'Kiora Bests the Sea God', 'Ebony Owl Netsuke', 'Crystal Grotto', 'Ossification', 'Bloodsoaked Champion', 'Fire Prophecy', 'Elspeth Conquers Death', 'Mouth of Ronom', 'Baneful Omen', 'Polukranos, World Eater', 'Pharika''s Libation', 'Shred Memory', 'Upheaval', 'Venser, Corpse Puppet', 'Resolute Reinforcements', 'Hard Evidence', 'Invasion of Ergamon', 'Sin Collector', 'Hall of Oracles'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Folio of Fancies', 'Nezahal, Primal Tide', 'Faerie Vandal', 'Curiosity', 'Dread Return', 'Rakdos Charm', 'Phyrexian Censor', 'Vault Skirge', 'Glint-Sleeve Siphoner', 'Swooping Lookout', 'Ajani, Mentor of Heroes', 'Evacuation', 'Vivid Crag', 'Tyrant''s Choice', 'Nature''s Lore', 'Mausoleum Secrets', 'Ancient Ziggurat', 'Eldrazi Skyspawner', 'Tidehollow Sculler', 'Reflector Mage', 'Vivid Grove', 'Helm of the Host', 'Sarkhan the Masterless', 'Summary Dismissal', 'Counterflux', 'Oblivion Ring', 'The Mending of Dominaria', 'Seal of Removal', 'Dimir Guildgate', 'Forgotten Cave', 'Fight as One', 'Raging Ravine', 'Dead Weight', 'Kozilek''s Predator', 'Deprive', 'Ovika, Enigma Goliath', 'Spectral Shift', 'Prosperous Thief', 'Esper Charm', 'Soltari Priest', 'Drown in Ichor', 'Grave Titan', 'Voyaging Satyr', 'Cabal Ritual', 'Squadron Hawk', 'Aetherblade Agent', 'Rally the Peasants', 'Cloudpost', 'Pyretic Ritual', 'Snow-Covered Plains', 'Nephalia Drownyard', 'Thaumatic Compass', 'Knowledge Pool', 'Gitaxian Probe', 'Arcbound Ravager', 'Wonder', 'Mistvault Bridge', 'Lightning Strike', 'Saffi Eriksdotter', 'Bloodbraid Elf', 'Winds of Abandon', 'Vampire Lacerator', 'Notorious Throng', 'Experimental Augury', 'Quiet Speculation', 'Seismic Assault', 'Goldmire Bridge', 'Crawling Chorus', 'Smallpox', 'Sunlit Marsh', 'Battle of Frost and Fire', 'Kogla, the Titan Ape', 'Bloodsoaked Champion', 'Blood on the Snow', 'Enchantress''s Presence', 'Dark Ritual', 'Mothdust Changeling', 'Annex Sentry', 'Sunpetal Grove', 'Invasion of Kaladesh', 'Oona''s Grace', 'Tilling Treefolk', 'Forging the Anchor', 'Oona, Queen of the Fae', 'Fetid Heath', 'Kessig Wolf Run', 'Harmonize', 'Circuit Mender', 'Bitter Reunion', 'Inevitable Betrayal', 'Genesis Wave', 'Icehide Golem', 'Demolition Field', 'Koth, Fire of Resistance', 'Blue Sun''s Zenith', 'Adanto Vanguard', 'Bloodchief''s Thirst', 'Putrid Imp', 'Galvanic Relay', 'Valiant Changeling', 'Toolcraft Exemplar', 'Izzet Guildgate', 'Viashino Pyromancer', 'Arcum''s Astrolabe', 'Runeflare Trap', 'Melira, Sylvok Outcast', 'Sins of the Past', 'Vampiric Rites', 'Witching Well', 'Gruul Spellbreaker', 'The Scorpion God', 'Kami of False Hope', 'Archangel Avacyn', 'Glistener Elf', 'Go for the Throat', 'Akiri, Fearless Voyager', 'Lagrella, the Magpie', 'Silverblade Paladin', 'Weapons Trainer', 'Gravelgill Duo', 'Sorin, Vengeful Bloodlord', 'Tocatli Honor Guard', 'Mikokoro, Center of the Sea', 'Haunted Mire', 'Akroan Crusader', 'Acquisitions Expert', 'Elixir of Immortality', 'Maze''s End', 'Knight of New Alara', 'Frost Titan', 'Jokulhaups', 'Celestial Colonnade', 'Karumonix, the Rat King', 'Dimir Aqueduct', 'Tectonic Edge', 'Price of Progress', 'Mind''s Desire', 'Greater Tanuki', 'Glimpse of Tomorrow', 'Kor Skyfisher', 'Valakut Exploration', 'Lurrus of the Dream-Den', 'Kalastria Healer', 'Vraska''s Contempt', 'Vapor Snag', 'Surge of Salvation', 'Jungle Shrine', 'Approach of the Second Sun', 'Myr Superion', 'Riveteers Charm', 'Brokers Hideout', 'Midnight Reaper', 'Frostwalk Bastion', 'Festering Newt', 'Grenzo, Dungeon Warden', 'Thrash // Threat', 'Kitesail Freebooter', 'Condemn', 'Marit Lage''s Slumber', 'Kiora, the Crashing Wave', 'Gruul Guildgate', 'Unbreakable Formation', 'Dakkon, Shadow Slayer', 'Herd Migration', 'Expedite', 'Territorial Kavu', 'Thopter Spy Network', 'Hinterland Harbor', 'Carven Caryatid', 'Blade Splicer', 'Sheltered Thicket', 'Talisman of Unity', 'Deep Forest Hermit', 'Disallow', 'Increasing Ambition', 'Ruin Crab', 'Gather the Townsfolk', 'Dimensional Infiltrator', 'Hanweir Garrison', 'Leonin Warleader', 'The Antiquities War', 'Skymarcher Aspirant', 'Azorius Guildgate', 'Battle of Wits', 'Sarkhan, the Dragonspeaker', 'Decree of Justice', 'Wildborn Preserver', 'Eerie Ultimatum', 'Llanowar Mentor', 'Haunted Dead', 'Shape Anew', 'Geomancer''s Gambit', 'Collected Conjuring', 'Vines of Vastwood', 'Restore Balance', 'Postmortem Lunge', 'Dreadhorde Butcher', 'Aetherling', 'Triumphant Adventurer', 'Rule of Law', 'Destroy Evil', 'Felidar Cub', 'Recurring Nightmare', 'Solitary Confinement', 'Tezzeret the Schemer', 'Fabricate', 'Mnemonic Sphere', 'Faeburrow Elder', 'Quicken', 'Terramorphic Expanse', 'Kemba, Kha Enduring', 'Spell Pierce', 'Slaughter Pact', 'Burning of Xinye', 'Stoke the Flames', 'Grave Scrabbler', 'Shimmerdrift Vale', 'Lay Down Arms', 'Mulldrifter', 'Hyena Umbra', 'Simic Guildgate', 'Kumano Faces Kakkazan', 'Curious Homunculus', 'Spectral Procession', 'Stone Rain', 'Runed Halo', 'Precursor Golem', 'Memory Lapse', 'Obscura Storefront', 'Raven''s Crime', 'Anoint with Affliction', 'Flaying Tendrils', 'Vryn Wingmare', 'Zur''s Weirding', 'Ayli, Eternal Pilgrim', 'Commune with the Gods', 'Gideon''s Intervention', 'Ranger of Eos', 'Tolarian Terror', 'Nameless Inversion', 'Weathered Wayfarer', 'Arcane Sanctum', 'Battlefield Forge', 'Cut Down', 'Dross Skullbomb', 'Fleecemane Lion', 'Presence of Gond', 'Botanical Plaza', 'Felidar Retreat', 'Fade from Memory', 'Gruul Turf', 'Kitchen Finks', 'Big Score', 'Shred Memory', 'Anguished Unmaking', 'Union of the Third Path', 'Utter End', 'Sandsteppe Citadel', 'Knight of the Reliquary', 'Thopter Mechanic', 'Tanglepool Bridge', 'Crux of Fate', 'Unsubstantiate', 'Rotting Rats', 'Third Path Iconoclast', 'Graven Cairns', 'Meeting of Minds', 'Hesitation', 'Divest', 'Anafenza, Kin-Tree Spirit', 'Diffusion Sliver', 'Terastodon', 'White Sun''s Zenith', 'Kazandu Blademaster', 'Sheoldred''s Edict', 'Vessel of Nascency', 'Loxodon Smiter', 'Slogurk, the Overslime', 'Herd Baloth', 'Lavinia of the Tenth', 'Moderation', 'Goblin Bombardment', 'Gallia of the Endless Dance', 'Farhaven Elf', 'Spikefield Hazard', 'Thornwood Falls', 'The Celestus', 'Might of Old Krosa', 'Change the Equation', 'Judge''s Familiar', 'Seal of Cleansing', 'Marwyn, the Nurturer', 'Racers'' Ring', 'Mistblade Shinobi', 'Sylvan Scrying', 'Victim of Night', 'Sylvan Caryatid', 'Elite Inquisitor', 'Needle Spires', 'Heap Doll', 'Ancient Stirrings', 'Raise the Alarm', 'Temple of Silence', 'Galerider Sliver', 'Avacyn''s Pilgrim', 'Faerie Miscreant', 'Distorted Curiosity', 'Fearless Fledgling', 'Choked Estuary', 'Touch the Spirit Realm', 'Seedcradle Witch', 'Makeshift Mannequin', 'Empyrial Plate', 'Pyroclasm', 'Fatestitcher', 'Disrupting Shoal', 'Mulch', 'Canopy Vista', 'Garruk Wildspeaker', 'Westvale Abbey', 'Kjeldoran Outpost', 'Concealing Curtains', 'Ral, Izzet Viceroy', 'Scab-Clan Berserker', 'Dissipate', 'Orcish Lumberjack', 'Phyrexian Revoker', 'Putrefy', 'Contaminated Aquifer', 'Throat Slitter', 'Think Twice', 'Temple of Mystery', 'Secluded Steppe', 'Snow-Covered Mountain', 'Mesmeric Fiend', 'Molten Tributary', 'Assault // Battery', 'Voldaren Pariah', 'Wasteland Strangler', 'Nine Lives', 'Gather the Pack', 'Wolfbriar Elemental', 'Thrill of Possibility', 'Goblin Dark-Dwellers', 'Shardless Agent', 'Kambal, Consul of Allocation', 'Resolute Reinforcements', 'Pyrite Spellbomb', 'Skyclave Shade', 'Ghostly Pilferer', 'Canyon Slough', 'Sea Gate Oracle', 'Rise // Fall', 'See Beyond', 'Thassa''s Intervention', 'Anafenza, the Foremost', 'Progenitor Exarch', 'Graaz, Unstoppable Juggernaut', 'Eidolon of Blossoms', 'Simian Sling', 'Bring the Ending', 'Fieldmist Borderpost', 'Emmara, Soul of the Accord', 'Varolz, the Scar-Striped', 'Hall of Oracles', 'Auriok Sunchaser', 'Rustvale Bridge', 'Primal Command', 'Dauntless Bodyguard', 'Temple of Malady', 'Ashenmoor Liege', 'Eternal Scourge', 'Fierce Empath', 'Demonic Dread', 'Grand Arbiter Augustin IV', 'Control Magic', 'Exhaustion', 'Secluded Courtyard', 'Pull from Tomorrow', 'Dokuchi Silencer', 'Commence the Endgame', 'Earthquake', 'Voidslime', 'Sylvan Library', 'Timely Reinforcements', 'Kunoros, Hound of Athreos', 'Bubbling Muck', 'Incinerate', 'Sculpted Perfection', 'Blazing Rootwalla', 'Dawn of Hope', 'Port Town', 'Cryptic Caves', 'Cabal Therapist', 'Forbidden Alchemy', 'Woe Strider', 'Vraan, Executioner Thane', 'Corrupted Conviction', 'Grand Architect', 'Sprite Dragon', 'Unmarked Grave', 'Defiant Strike', 'Psychic Possession', 'Moorland Haunt', 'Ardent Recruit', 'Timeless Witness', 'Sunstrike Legionnaire', 'Guile', 'Revitalize', 'Become Immense', 'Mishra''s Factory', 'Bone Shards', 'Golgari Guildgate', 'Supreme Will', 'Aegis of the Gods', 'Silver-Fur Master', 'Overgrowth', 'Agonizing Remorse', 'Kefnet the Mindful', 'Nekrataal', 'Quest for the Holy Relic', 'Siege Rhino', 'Vault of the Archangel', 'Empyrial Armor', 'Big Game Hunter', 'Evolving Wilds', 'Embodiment of Fury', 'Rune Snag', 'Kemba, Kha Regent', 'Anger of the Gods', 'Boon-Bringer Valkyrie', 'Idyllic Tutor', 'Glamerdye', 'Mortuary Mire', 'Steppe Lynx', 'Tresserhorn Sinks', 'Thragtusk', 'Woodfall Primus', 'Tempest Djinn', 'Night of Souls'' Betrayal', 'Deep Analysis', 'Yorion, Sky Nomad', 'Frost Marsh', 'Staff of Domination', 'Rust Goliath', 'Recruitment Officer', 'Drowned Rusalka', 'Mystic Monastery', 'Smoldering Marsh', 'Frontier Bivouac', 'Ensoul Artifact', 'Armored Scrapgorger', 'Whir of Invention', 'Wall of Omens', 'Orim''s Chant', 'Gideon Jura', 'Ulcerate', 'Fumigate', 'Scattered Groves', 'Sin Prodder', 'Rocco, Cabaretti Caterer', 'Grim Haruspex', 'Hope of Ghirapur', 'Check for Traps', 'Flame Rift', 'Invasion of Zendikar', 'Chaotic Transformation', 'Clifftop Retreat', 'Delay', 'Chandra, Fire Artisan', 'Ulamog''s Crusher', 'Blightbelly Rat', 'Wrenn''s Resolve', 'Myth Realized', 'Stasis Snare', 'Artistic Refusal', 'Oracle of Tragedy', 'Repeal', 'Genesis Hydra', 'Heliod''s Pilgrim', 'Doomskar', 'Bilious Skulldweller', 'Norn''s Inquisitor', 'Gift of Estates', 'Energy Refractor', 'Locket of Yesterdays', 'Search for Tomorrow', 'Declaration in Stone', 'Ground Seal', 'Careful Cultivation', 'Oust', 'Cauldron Familiar', 'Strike It Rich', 'Bogbrew Witch', 'Master of Death', 'Mindsplice Apparatus', 'Syphon Life', 'Laboratory Maniac', 'Brave the Elements', 'Ichorclaw Myr', 'Pharika''s Libation', 'Drossforge Bridge', 'Ally Encampment', 'Urban Evolution', 'Fyndhorn Elves', 'Dark Petition', 'Erebos''s Intervention', 'Destiny Spinner', 'Kor Firewalker', 'Giant Killer', 'Kiora Bests the Sea God', 'Invisible Stalker', 'Cathartic Reunion', 'Invasion of Ergamon', 'Benevolent Bodyguard', 'Corpse Cur', 'Self-Assembler', 'Green Sun''s Twilight', 'Malcator, Purity Overseer', 'Cliffside Lookout', 'Terminate', 'Sever the Bloodline', 'Etherium Sculptor', 'Jace, Architect of Thought', 'Executioner''s Capsule', 'Pillar of the Paruns', 'Cultivate', 'Haunted Fengraf', 'Thornglint Bridge', 'Stone Haven Outfitter', 'Fae of Wishes', 'Wanderwine Hub', 'Temple of Plenty', 'Wrench Mind', 'Murderous Cut', 'Argentum Armor', 'Second Sunrise', 'Kruphix''s Insight', 'Lotus Cobra', 'Knight of the White Orchid', 'Dregscape Zombie', 'Obliterate', 'Shimmer Dragon', 'Woodland Cemetery', 'Glorybringer', 'Gideon''s Lawkeeper', 'Vexing Shusher', 'Venser, Corpse Puppet', 'Yisan, the Wanderer Bard', 'Polukranos, World Eater', 'Glacial Fortress', 'Simian Spirit Guide', 'Soldier of the Pantheon', 'Isolated Chapel', 'Boomerang', 'Bogardan Hellkite', 'Lizard Blades', 'Cabaretti Courtyard', 'Angel of Condemnation', 'Dispatch', 'Search for Azcanta', 'Timeless Dragon', 'Pardic Miner', 'Lingering Souls', 'Invasion of Azgol', 'Mindslaver', 'Orzhov Basilica', 'Consuming Vapors', 'Drake Haven', 'Rally the Ranks', 'Into the Story', 'Cartel Aristocrat', 'Tendo Ice Bridge', 'Boros Guildgate', 'Dead // Gone', 'Slagstorm', 'Seal of Fire', 'Assemble the Legion', 'Peek', 'Fire Prophecy', 'Impulse', 'Invigorate', 'Razortide Bridge', 'Fiery Temper', 'Ethersworn Sphinx', 'Vadrik, Astral Archmage', 'Farseek', 'Castigate', 'Murmuring Bosk', 'Obscura Charm', 'Gift of Immortality', 'Universal Automaton', 'Voltage Surge', 'Chittering Rats', 'Rampant Growth', 'Sin Collector', 'Engulf the Shore', 'Leather Armor', 'Shard Volley', 'Wood Elves', 'Caldera Hellion', 'Boros Elite', 'Thraben Inspector', 'Mouth of Ronom', 'Shigeki, Jukai Visionary', 'True Believer', 'Howling Mine', 'Ossification', 'Nether Spirit', 'Bloodchief Ascension', 'Karn''s Bastion', 'Stir the Grave', 'Heliod''s Intervention', 'Ephara, God of the Polis', 'Open the Gates', 'Ertai''s Scorn', 'Pack Rat', 'Unlucky Witness', 'Verduran Enchantress', 'Devious Cover-Up', 'Ezuri, Renegade Leader', 'Gilt-Leaf Archdruid', 'Sacred Peaks', 'Vampire Hexmage', 'Birds of Paradise', 'Tangle', 'Solemn Simulacrum', 'Buried Ruin', 'Marble Diamond', 'Inscribed Tablet', 'Llanowar Tribe', 'Springleaf Drum', 'Of One Mind', 'Mastermind''s Acquisition', 'Sea-Dasher Octopus', 'Malakir Rebirth', 'Grove of the Guardian', 'Azorius Charm', 'Scour All Possibilities', 'Inscription of Ruin', 'Hornet Queen', 'Death Cloud', 'Predatory Sliver', 'Draugr Necromancer', 'Bump in the Night', 'Archaeomancer', 'Basking Rootwalla', 'Mistcutter Hydra', 'Shrapnel Blast', 'Angel of Despair', 'Coiling Oracle', 'Teneb, the Harvester', 'Ruric Thar, the Unbowed', 'Dryad Militant', 'Halimar Excavator', 'Tamiyo, Collector of Tales', 'Maelstrom Pulse', 'Llanowar Augur', 'Wild Cantor', 'Call of the Death-Dweller', 'Champion of Wits', 'Shizo, Death''s Storehouse', 'Stoic Rebuttal', 'Oracle of Mul Daya', 'Briarbridge Tracker', 'Colossal Skyturtle', 'Late to Dinner', 'Black Sun''s Zenith', 'The Underworld Cookbook', 'Vivid Marsh', 'Cathedral of War', 'Jwari Shapeshifter', 'Mazemind Tome', 'Nimbus Maze', 'Patchwork Automaton', 'Narcomoeba', 'Expedition Envoy', 'Izzet Boilerworks', 'Consult the Necrosages', 'Lantern-Lit Graveyard', 'Crawling Barrens', 'Teferi, Mage of Zhalfir', 'Hypnotic Specter', 'Acidic Slime', 'Seeker of the Way', 'Chandra, Pyromaster', 'Wizard''s Retort', 'Elvish Rejuvenator', 'Spell Burst', 'Riveteers Overlook', 'Phoenix Chick', 'Yahenni''s Expertise', 'Ambush Viper', 'Tocasia''s Dig Site', 'Gnawing Vermin', 'Stirring Wildwood', 'Titania, Protector of Argoth', 'Barbed Sextant', 'Discovery // Dispersal', 'Archpriest of Shadows', 'Experimental Synthesizer', 'Forbid', 'Eiganjo Castle', 'Divinity of Pride', 'Resurgent Belief', 'Monument to Perfection', 'Tribal Flames', 'Twinshot Sniper', 'Zuran Orb', 'Arch of Orazca', 'Faith''s Reward', 'Hostage Taker', 'Dreams of Steel and Oil', 'Dovin''s Acuity', 'Scrying Sheets', 'Combat Thresher', 'Wrath of God', 'Wooded Bastion', 'Blessed Alliance', 'Silumgar, the Drifting Death', 'Elvish Visionary', 'Augur of Bolas', 'Radiant Grove', 'Barbarian Ring', 'Argentum Masticore', 'Terminus', 'Arguel''s Blood Fast', 'Unholy Heat', 'Vigor', 'Sign in Blood', 'Rites of Initiation', 'Ghostfire Blade', 'Gavony Township', 'Sylvan Advocate', 'Gnat Miser', 'War Falcon', 'All That Glitters', 'Morsel Theft', 'Magister of Worth', 'Kaya, Ghost Assassin', 'Curse of Exhaustion', 'Ghost Quarter', 'King Darien XLVIII', 'Stinkdrinker Bandit', 'Satyr Hoplite', 'Archon of Sun''s Grace', 'Nevermore', 'The Seedcore', 'Spellweaver Helix', 'Tranquil Thicket', 'Graveborn Muse', 'Altered Ego', 'Groundswell', 'Rift Bolt', 'Kaito, Dancing Shadow', 'Yawgmoth''s Bargain', 'Stromkirk Noble', 'Lose Focus', 'Halo Forager', 'Firewild Borderpost', 'Temple of Abandon', 'Maestros Charm', 'Arbor Elf', 'Kitchen Imp', 'Summer Bloom', 'Precinct Captain', 'Bloodvial Purveyor', 'Geyadrone Dihada', 'Ashen Rider', 'Mirror Entity', 'Lost Legacy', 'Oona''s Prowler', 'Alms of the Vein', 'Bubbling Cauldron', 'Mystical Teachings', 'Trace of Abundance', 'Obstinate Baloth', 'Sinister Concoction', 'Remorseful Cleric', 'Ivy Lane Denizen', 'Possibility Storm', 'Din of the Fireherd', 'Fracturing Gust', 'Golgari Rot Farm', 'Jwari Disruption', 'Tezzeret''s Gambit', 'Hooting Mandrills', 'Frantic Inventory', 'Shriekmaw', 'Nimble Trapfinder', 'Pore Over the Pages', 'Temple of Deceit', 'Phyrexian Unlife', 'Caves of Koilos', 'Game Trail', 'Inkwell Leviathan', 'Commune with Nature', 'Epic Experiment', 'Rootbound Crag', 'Electrolyze', 'Ancestral Blade', 'Explore', 'Odds // Ends', 'Cabal Initiate', 'Unburial Rites', 'Demigod of Revenge', 'Orzhov Charm', 'Teshar, Ancestor''s Apostle', 'Krosan Grip', 'Dark-Dweller Oracle', 'Restoration Angel', 'Cleansing Wildfire', 'Blightning', 'Froghemoth', 'Cataclysmic Gearhulk', 'Leonin Lightscribe', 'Pillage', 'Into the Roil', 'Leonin Relic-Warder', 'Gleeful Demolition', 'Servo Exhibition', 'Worship', 'Ishkanah, Grafwidow', 'Basilisk Collar', 'Angel of Grace', 'Heartless Act', 'Far // Away', 'Skirk Prospector', 'Sphinx''s Herald', 'Invasion of Regatha', 'Yavimaya Iconoclast', 'Chain Lightning', 'Thawing Glaciers', 'Rites of Spring', 'Open the Armory', 'Lazotep Chancellor', 'Halana and Alena, Partners', 'Jungle Hollow', 'Dying to Serve', 'Sunblade Samurai', 'Endbringer', 'Tezzeret, Artifice Master', 'Dream Trawler', 'Ebony Owl Netsuke', 'Satyr Wayfinder', 'Consul''s Lieutenant', 'Volt Charge', 'Hour of Promise', 'Orzhov Guildgate', 'Elves of Deep Shadow', 'Cremate', 'Oath of Kaya', 'Archangel of Wrath', 'Commit // Memory', 'Baneful Omen', 'Demonic Bargain', 'Brave the Sands', 'Malicious Malfunction', 'Arlinn Kord', 'Platinum Angel', 'Pharika''s Cure', 'Pariah', 'Network Disruptor', 'Prophetic Prism', 'Ivory Tower', 'Silent Gravestone', 'Tendrils of Agony', 'Genesis Ultimatum', 'Spirited Companion', 'Arbalest Engineers', 'Stinkweed Imp', 'Barter in Blood', 'Blood Artist', 'Martyr of Sands', 'Reckless Rage', 'Mishra''s Research Desk', 'Tidespout Tyrant', 'Aether Spellbomb', 'Nomad Outpost', 'Chandra, Flamecaller', 'Rally the Ancestors', 'Darksteel Citadel', 'Sinew Sliver', 'Brineborn Cutthroat', 'Darksteel Colossus', 'Raze to the Ground', 'Merciless Eviction', 'Elas il-Kor, Sadistic Pilgrim', 'Rakdos Guildgate', 'Hideous End', 'Lead the Stampede', 'Dragonskull Summit', 'Vampire Neonate', 'Duress', 'Deafening Clarion', 'Brainstone', 'Zombie Infestation', 'Ramunap Excavator', 'Venerated Loxodon', 'Kabira Takedown', 'Mina and Denn, Wildborn', 'Lavaclaw Reaches', 'River of Tears', 'Steel Overseer', 'Corrupted Crossroads', 'Council''s Judgment', 'Smuggler''s Copter', 'Blight Mamba', 'Solemnity', 'Unctus, Grand Metatect', 'Joint Exploration', 'Reveillark', 'Hieroglyphic Illumination', 'Forked Bolt', 'Night Market Lookout', 'Silversmote Ghoul', 'Lodestone Golem', 'Kher Keep', 'Zephyr Singer', 'Devil''s Play', 'Sylvan Messenger', 'Leonin Arbiter', 'Obzedat, Ghost Council', 'Sculpting Steel', 'Godo, Bandit Warlord', 'Repudiate // Replicate', 'Time of Need', 'Shalai, Voice of Plenty', 'Doomed Traveler', 'Shambling Vent', 'Ajani, Adversary of Tyrants', 'Scrapheap Scrounger', 'Chief Engineer', 'Sterling Grove', 'Elderscale Wurm', 'Phantasmal Image', 'Veinfire Borderpost', 'Fangren Marauder', 'Throne of the God-Pharaoh', 'Fireblade Charger', 'Stubborn Denial', 'Ghostly Flicker', 'Falkenrath Pit Fighter', 'Hero''s Downfall', 'Blanchwood Prowler', 'Phalanx Leader', 'Snow-Covered Swamp', 'Nightscape Familiar', 'Gigadrowse', 'Cloudshredder Sliver', 'Hypergenesis', 'Disenchant', 'Flametongue Kavu', 'Master of Etherium', 'Soul Warden', 'Day of Judgment', 'Brain Freeze', 'Waking the Trolls', 'Gadrak, the Crown-Scourge', 'Rishkar, Peema Renegade', 'Frantic Search', 'Grafted Butcher', 'Duplicant', 'Exclude', 'Reinforced Ronin', 'Gloomshrieker', 'Ammit Eternal', 'Glimmerpost', 'Chamber Sentry', 'Jukai Naturalist', 'Dismal Backwater', 'Rain of Tears', 'Oni-Cult Anvil', 'Wandering Fumarole', 'Consume the Meek', 'Llanowar Elves', 'Seething Song', 'Ravenous Squirrel', 'Ayara, First of Locthwain', 'Madcap Experiment', 'Prohibit', 'Elspeth Conquers Death', 'Dread Wanderer', 'Geothermal Bog', 'Fevered Visions', 'Scarab Feast', 'Ancient Amphitheater', 'Ornithopter', 'Viscera Seer', 'Scrabbling Claws', 'Mesa Enchantress', 'Hissing Quagmire', 'Succumb to Temptation', 'Mindcrank', 'Languish', 'World Shaper', 'Boreal Shelf', 'Sire of Insanity', 'Circular Logic', 'Wilt', 'Frenetic Sliver', 'Sunken Hollow', 'Serra Ascendant', 'Whispersilk Cloak', 'Abyssal Persecutor', 'Changeling Outcast', 'Ethereal Armor', 'Silundi Vision', 'Sigil of the Empty Throne', 'Wayward Guide-Beast', 'Saproling Migration', 'Altar of the Brood', 'Vedalken Heretic', 'Angrath, the Flame-Chained', 'Melira, the Living Cure', 'Banishing Slash', 'General''s Enforcer', 'Bontu''s Last Reckoning', 'Swiftfoot Boots', 'Combat Research', 'Tooth and Nail', 'Apostle''s Blessing', 'Gaea''s Will', 'Xerex Strobe-Knight', 'Tribute to Horobi', 'Opulent Palace', 'Invoke Calamity', 'Ulvenwald Hydra', 'Izzet Charm', 'Otherworldly Journey', 'Duneblast', 'Floriferous Vinewall', 'Carnophage', 'Ignite Memories', 'Upheaval', 'Kami of the Crescent Moon', 'Rabbit Battery', 'Jace Beleren', 'Disciple of Bolas', 'Dusk // Dawn', 'Venser, the Sojourner', 'Crystal Grotto', 'Huatli, Radiant Champion', 'Sulfur Falls', 'Altar of the Goyf', 'Knight of Glory', 'Rakdos''s Return', 'Okina, Temple to the Grandfathers', 'Venser, Shaper Savant', 'Kappa Tech-Wrecker', 'Hard Evidence', 'Nimble Obstructionist', 'Porphyry Nodes', 'Silumgar''s Scorn', 'Burst Lightning', 'Bident of Thassa', 'Favored Hoplite', 'Return to the Ranks', 'Empty the Warrens', 'Pieces of the Puzzle', 'Mistvein Borderpost', 'Elvish Clancaller', 'Doom Blade', 'Stern Dismissal', 'Temple of Triumph', 'Mwonvuli Acid-Moss', 'Mirage Mirror', 'Elvish Archdruid', 'Rakdos Cackler', 'Nested Shambler', 'Squee, Goblin Nabob', 'Smother', 'Herald of the Pantheon', 'Lochmere Serpent', 'Stupor', 'Abzan Charm', 'Abundant Harvest', 'Detention Sphere', 'Ashnod, Flesh Mechanist', 'Settle the Wreckage', 'Diabolic Tutor', 'Scrapwork Mutt', 'Evangel of Synthesis', 'Gateway Plaza', 'Luminarch Ascension', 'Jor Kadeen, First Goldwarden', 'Nissa, Steward of Elements', 'Mana Leak', 'Yasharn, Implacable Earth', 'Vindicate', 'Psychatog', 'Selesnya Guildgate', 'Aetherspouts', 'Torens, Fist of the Angels', 'Figure of Destiny', 'Desperate Ritual', 'Drowner of Hope', 'Protect the Negotiators', 'Bituminous Blast', 'Delver of Secrets', 'Healer''s Hawk', 'Fertile Ground', 'Temple of Enlightenment', 'Sudden Edict', 'Fruit of Tizerus', 'General Ferrous Rokiric', 'Oath of Teferi', 'Drainpipe Vermin', 'Ghitu Lavarunner', 'Grand Abolisher', 'Tear Asunder', 'Graven Lore', 'Spatial Contortion', 'Drowned Catacomb', 'Reckoner''s Bargain', 'Out of Time', 'Thundermaw Hellkite', 'Nullpriest of Oblivion', 'Midnight Guard', 'Phyrexian Dreadnought', 'Surrak, the Hunt Caller', 'Rix Maadi Reveler', 'Hada Freeblade', 'Skyshroud Elf', 'Yavimaya Coast', 'High-Speed Hoverbike', 'Feed the Swarm', 'Dakmor Salvage', 'Idyllic Beachfront', 'Prologue to Phyresis', 'Marauding Blight-Priest', 'Tangled Islet', 'Scuttling Doom Engine', 'Abiding Grace', 'Flooded Grove', 'Dark Prophecy', 'Akoum Hellhound', 'Elemental Masterpiece', 'Forsake the Worldly', 'Sultai Charm', 'Ransack the Lab', 'Memoricide', 'Goldmeadow Harrier', 'Xenagos, the Reveler', 'Fallaji Archaeologist', 'Raffine''s Informant', 'Artisan of Kozilek', 'Invasion of New Capenna', 'Voidwing Hybrid', 'Murderous Redcap', 'Negate', 'Plated Geopede', 'Greater Gargadon', 'Slagwoods Bridge', 'Wildfield Borderpost', 'Dead of Winter', 'Dire-Strain Rampage', 'Reckless Charge', 'Bloodline Keeper', 'Sleight of Hand', 'Moon-Circuit Hacker', 'Nimble Larcenist', 'Sandwurm Convergence', 'Sphere of Safety', 'Fetid Pools', 'Eldrazi Displacer', 'Crack the Earth', 'Fiery Justice', 'Purify the Grave', 'Ral, Storm Conduit', 'Goblin Electromancer', 'Elvish Mystic', 'Nissa, Worldwaker', 'Angel of Serenity', 'Radha, Heart of Keld', 'Lightning Spear', 'Tymaret, Chosen from Death', 'Turnabout', 'Metalwork Colossus', 'Ponder', 'Talisman of Curiosity', 'Ogre Slumlord', 'Shivan Reef', 'Mistveil Plains', 'Priest of the Haunted Edge', 'Treasure Cruise', 'Sol Talisman', 'Call to the Grave', 'Tainted Indulgence', 'Invasion of Amonkhet', 'Abundant Growth', 'Silverbluff Bridge', 'Necrogen Spellbomb', 'Rise and Shine', 'Vraska''s Fall', 'Terrarion', 'Vampire Nighthawk', 'Grolnok, the Omnivore', 'Commune with Spirits', 'Tribute to Hunger', 'Dragon''s Hoard', 'Pain Seer', 'Tomebound Lich', 'Chief of the Foundry', 'Breya''s Apprentice', 'Gutterbones', 'Steel Leaf Champion', 'Honor of the Pure', 'Mirran Crusader', 'Bolas''s Citadel', 'Founding the Third Path', 'Nezumi Graverobber', 'Sigrid, God-Favored', 'Fact or Fiction', 'Misery Charm', 'Sweltering Suns', 'Gird for Battle', 'Liliana Vess', 'The Flame of Keld', 'Myr Battlesphere'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Rule of Law', 'Blazing Rootwalla', 'Master of Etherium', 'Summary Dismissal', 'Nezahal, Primal Tide', 'Tear Asunder', 'Magister of Worth', 'Oracle of Tragedy', 'Forbidden Alchemy', 'Squadron Hawk', 'Fieldmist Borderpost', 'Triumphant Adventurer', 'Sin Prodder', 'Rites of Initiation', 'Golgari Guildgate', 'Heartless Act', 'Raffine''s Informant', 'Herd Baloth', 'Ichorclaw Myr', 'Jokulhaups', 'Graven Cairns', 'Barbarian Ring', 'Razortide Bridge', 'Shigeki, Jukai Visionary', 'Myr Superion', 'Drown in Ichor', 'Discovery // Dispersal', 'Steppe Lynx', 'Turnabout', 'Dark Petition', 'Universal Automaton', 'Raise the Alarm', 'Angel of Grace', 'Putrefy', 'Bilious Skulldweller', 'Battle of Frost and Fire', 'Seal of Fire', 'Azorius Charm', 'World Shaper', 'Stir the Grave', 'Knight of the White Orchid', 'Call to the Grave', 'Vessel of Nascency', 'Brainstone', 'Gleeful Demolition', 'Yorion, Sky Nomad', 'Faeburrow Elder', 'Demonic Bargain', 'Avacyn''s Pilgrim', 'Commit // Memory', 'Jor Kadeen, First Goldwarden', 'Doomskar', 'Fiery Temper', 'Scab-Clan Berserker', 'Cryptic Caves', 'Ardent Recruit', 'Stone Rain', 'Gravelgill Duo', 'Reckless Charge', 'Glistener Elf', 'Voidslime', 'Norn''s Inquisitor', 'Woe Strider', 'Silumgar, the Drifting Death', 'Fleecemane Lion', 'Commune with Nature', 'Stromkirk Noble', 'Blight Mamba', 'Dimensional Infiltrator', 'Waking the Trolls', 'Flaying Tendrils', 'Gitaxian Probe', 'Wolfbriar Elemental', 'Dark Ritual', 'Tranquil Thicket', 'Invigorate', 'Raze to the Ground', 'Radha, Heart of Keld', 'Kor Firewalker', 'Pariah', 'Halo Forager', 'Goblin Bombardment', 'Disciple of Bolas', 'Annex Sentry', 'Thraben Inspector', 'Day of Judgment', 'Resolute Reinforcements', 'Silumgar''s Scorn', 'Eternal Scourge', 'Endbringer', 'Crux of Fate', 'Change the Equation', 'Death Cloud', 'Check for Traps', 'Crawling Chorus', 'Canopy Vista', 'Tidehollow Sculler', 'Mikokoro, Center of the Sea', 'Priest of the Haunted Edge', 'Bump in the Night', 'Rift Bolt', 'Elves of Deep Shadow', 'Murderous Cut', 'Embodiment of Fury', 'Demigod of Revenge', 'Vivid Crag', 'Ensoul Artifact', 'Froghemoth', 'Needle Spires', 'Dying to Serve', 'Crawling Barrens', 'Halana and Alena, Partners', 'Harmonize', 'Midnight Guard', 'Sunpetal Grove', 'Empty the Warrens', 'Third Path Iconoclast', 'Coiling Oracle', 'Postmortem Lunge', 'Fangren Marauder', 'Pull from Tomorrow', 'Stern Dismissal', 'Mana Leak', 'Voltage Surge', 'Thaumatic Compass', 'Bogardan Hellkite', 'Rally the Ancestors', 'The Antiquities War', 'River of Tears', 'Grove of the Guardian', 'Combat Thresher', 'Weapons Trainer', 'Temple of Abandon', 'Ramunap Excavator', 'Battlefield Forge', 'Carnophage', 'Oona''s Prowler', 'Rix Maadi Reveler', 'Quest for the Holy Relic', 'Impulse', 'Zur''s Weirding', 'Unsubstantiate', 'Founding the Third Path', 'Price of Progress', 'Rain of Tears', 'Duplicant', 'Torens, Fist of the Angels', 'Yisan, the Wanderer Bard', 'Open the Armory', 'Gnawing Vermin', 'Smallpox', 'Tectonic Edge', 'Spikefield Hazard', 'Metalwork Colossus', 'King Darien XLVIII', 'Dryad Militant', 'Scrying Sheets', 'Archangel Avacyn', 'Temple of Deceit', 'Union of the Third Path', 'Urban Evolution', 'Energy Refractor', 'Consul''s Lieutenant', 'Go for the Throat', 'Spectral Shift', 'Wandering Fumarole', 'Gideon''s Intervention', 'Saproling Migration', 'Phalanx Leader', 'Lingering Souls', 'Gruul Spellbreaker', 'Obscura Storefront', 'Dusk // Dawn', 'Spell Pierce', 'Possibility Storm', 'Tribal Flames', 'Remorseful Cleric', 'Thassa''s Intervention', 'Thragtusk', 'Scrapwork Mutt', 'Abzan Charm', 'Polukranos, World Eater', 'Mirran Crusader', 'Sulfur Falls', 'Kami of the Crescent Moon', 'Demonic Dread', 'Condemn', 'Grave Titan', 'Giant Killer', 'Gather the Pack', 'Tresserhorn Sinks', 'Alms of the Vein', 'Kiora, the Crashing Wave', 'Hall of Oracles', 'Yahenni''s Expertise', 'Idyllic Beachfront', 'Sunstrike Legionnaire', 'Valiant Changeling', 'Scour All Possibilities', 'Shambling Vent', 'Forgotten Cave', 'Cathedral of War', 'Otherworldly Journey', 'Argentum Masticore', 'Joint Exploration', 'Memory Lapse', 'Dreams of Steel and Oil', 'Gigadrowse', 'Marble Diamond', 'Izzet Charm', 'Invasion of Azgol', 'Tomebound Lich', 'Geomancer''s Gambit', 'Rakdos Charm', 'Odds // Ends', 'Mausoleum Secrets', 'Grave Scrabbler', 'Combat Research', 'Sacred Peaks', 'Stirring Wildwood', 'Vindicate', 'Knight of Glory', 'Cultivate', 'Kher Keep', 'Sarkhan the Masterless', 'Shimmer Dragon', 'Frost Marsh', 'Malicious Malfunction', 'Kazandu Blademaster', 'Kitesail Freebooter', 'Firewild Borderpost', 'Judge''s Familiar', 'Floriferous Vinewall', 'Herd Migration', 'Mwonvuli Acid-Moss', 'Patchwork Automaton', 'Vampire Hexmage', 'Gideon''s Lawkeeper', 'Fertile Ground', 'Ossification', 'Brain Freeze', 'Forked Bolt', 'Commence the Endgame', 'Snow-Covered Mountain', 'Helm of the Host', 'Titania, Protector of Argoth', 'Blood Artist', 'Chief Engineer', 'Destroy Evil', 'Abundant Harvest', 'Seeker of the Way', 'Divinity of Pride', 'Resurgent Belief', 'Galvanic Relay', 'Caldera Hellion', 'Oona, Queen of the Fae', 'Spatial Contortion', 'Vraska''s Contempt', 'Commune with Spirits', 'Languish', 'Krosan Grip', 'Dread Return', 'Leonin Relic-Warder', 'Runeflare Trap', 'Bloodbraid Elf', 'Loxodon Smiter', 'Prohibit', 'Cabal Initiate', 'Smother', 'Frostwalk Bastion', 'Late to Dinner', 'Fierce Empath', 'Nomad Outpost', 'Tolarian Terror', 'Orzhov Basilica', 'Raging Ravine', 'Ephara, God of the Polis', 'Recurring Nightmare', 'Corrupted Crossroads', 'Deprive', 'Yavimaya Iconoclast', 'Venser, the Sojourner', 'Talisman of Curiosity', 'Invasion of Regatha', 'Darksteel Colossus', 'Sigrid, God-Favored', 'Grim Haruspex', 'Time of Need', 'Kjeldoran Outpost', 'Witching Well', 'Tainted Indulgence', 'Forsake the Worldly', 'Tribute to Hunger', 'Stoke the Flames', 'Stinkdrinker Bandit', 'Search for Tomorrow', 'Staff of Domination', 'Fumigate', 'Experimental Augury', 'Arcum''s Astrolabe', 'Aegis of the Gods', 'Pain Seer', 'Boreal Shelf', 'Fallaji Archaeologist', 'Hissing Quagmire', 'Dimir Guildgate', 'Bloodsoaked Champion', 'Springleaf Drum', 'Bident of Thassa', 'Ral, Storm Conduit', 'Botanical Plaza', 'Temple of Triumph', 'Elderscale Wurm', 'Invasion of New Capenna', 'Mistvault Bridge', 'Precinct Captain', 'Dross Skullbomb', 'Tezzeret the Schemer', 'All That Glitters', 'Rune Snag', 'Ajani, Adversary of Tyrants', 'Dokuchi Silencer', 'Ethersworn Sphinx', 'Rakdos''s Return', 'Kappa Tech-Wrecker', 'Oni-Cult Anvil', 'Hada Freeblade', 'Secluded Steppe', 'Farhaven Elf', 'Dovin''s Acuity', 'Breya''s Apprentice', 'Ebony Owl Netsuke', 'Elvish Visionary', 'The Mending of Dominaria', 'Celestial Colonnade', 'Nullpriest of Oblivion', 'Collected Conjuring', 'Dissipate', 'Vraska, Relic Seeker', 'Favored Hoplite', 'Varolz, the Scar-Striped', 'Eldrazi Skyspawner', 'Surrak, the Hunt Caller', 'Gallia of the Endless Dance', 'Hero''s Downfall', 'Scattered Groves', 'Mishra''s Factory', 'Flame Rift', 'Sins of the Past', 'Yavimaya Coast', 'Tocasia''s Dig Site', 'Demolition Field', 'Nested Shambler', 'Malakir Rebirth', 'Zombie Infestation', 'Scuttling Doom Engine', 'Phyrexian Revoker', 'Tymaret, Chosen from Death', 'Into the Story', 'Dark Prophecy', 'Liliana Vess', 'Locket of Yesterdays', 'Contaminated Aquifer', 'Vraan, Executioner Thane', 'Disenchant', 'Bontu''s Last Reckoning', 'Wood Elves', 'Saffi Eriksdotter', 'Gateway Plaza', 'Ashnod, Flesh Mechanist', 'Surge of Salvation', 'Dregscape Zombie', 'Azorius Guildgate', 'Stasis Snare', 'Rabbit Battery', 'Plated Geopede', 'Myr Battlesphere', 'Auriok Sunchaser', 'Nimble Trapfinder', 'Barbed Sextant', 'Rotting Rats', 'Wild Cantor', 'Slagwoods Bridge', 'Terrarion', 'Sever the Bloodline', 'Dream Trawler', 'Figure of Destiny', 'Precursor Golem', 'Aetherling', 'Rise and Shine', 'Serrated Scorpion', 'Drake Haven', 'Rocco, Cabaretti Caterer', 'Fireblade Charger', 'Simian Spirit Guide', 'Vapor Snag', 'Slagstorm', 'Genesis Hydra', 'Jungle Hollow', 'Glimmerpost', 'Brineborn Cutthroat', 'Upheaval', 'Nether Spirit', 'Decree of Justice', 'Purify the Grave', 'Return to the Ranks', 'Elixir of Immortality', 'Black Sun''s Zenith', 'Vryn Wingmare', 'Lochmere Serpent', 'Anguished Unmaking', 'Night Market Lookout', 'Skymarcher Aspirant', 'Timeless Dragon', 'Ancestral Blade', 'Arbalest Engineers', 'Dimir Aqueduct', 'Aetherblade Agent', 'Altered Ego', 'Leonin Lightscribe', 'Rootbound Crag', 'Toolcraft Exemplar', 'Vines of Vastwood', 'Consume the Meek', 'Sylvan Caryatid', 'Sweltering Suns', 'Rakdos Guildgate', 'Sin Collector', 'Cloudpost', 'Nissa, Worldwaker', 'Swiftfoot Boots', 'Oust', 'Quicken', 'Fade from Memory', 'Cabaretti Courtyard', 'Sunblade Samurai', 'Jwari Shapeshifter', 'Boros Guildgate', 'Devil''s Play', 'Succumb to Temptation', 'Psychic Possession', 'Treasure Cruise', 'Gavony Township', 'Marwyn, the Nurturer', 'Myth Realized', 'Clifftop Retreat', 'Ransack the Lab', 'Dakkon, Shadow Slayer', 'Elvish Rejuvenator', 'The Flame of Keld', 'Corpse Cur', 'Mystical Teachings', 'Murmuring Bosk', 'Leonin Warleader', 'Gift of Immortality', 'Scrabbling Claws', 'Twinshot Sniper', 'Terramorphic Expanse', 'Solemnity', 'Soul Warden', 'Goblin Electromancer', 'Elemental Masterpiece', 'Fabricate', 'Seal of Cleansing', 'Venser, Corpse Puppet', 'Champion of Wits', 'Tooth and Nail', 'Tangle', 'Llanowar Tribe', 'Divest', 'Thornwood Falls', 'Haunted Fengraf', 'Shizo, Death''s Storehouse', 'Galerider Sliver', 'Erebos, Bleak-Hearted', 'Gaea''s Will', 'Ulamog''s Crusher', 'Arcane Sanctum', 'Circuit Mender', 'Whir of Invention', 'Bloodline Keeper', 'Altar of the Goyf', 'Chandra, Flamecaller', 'Dreadhorde Butcher', 'Malcator, Purity Overseer', 'Curiosity', 'Huatli, Radiant Champion', 'Unburial Rites', 'Adanto Vanguard', 'Restore Balance', 'Dread Wanderer', 'Fae of Wishes', 'Ally Encampment', 'Chamber Sentry', 'Crystal Grotto', 'Hard Evidence', 'Dismal Backwater', 'Drowner of Hope', 'Sterling Grove', 'Progenitor Exarch', 'Herald of the Pantheon', 'Slogurk, the Overslime', 'Vampire Lacerator', 'Marit Lage''s Slumber', 'Might of Old Krosa', 'Vexing Shusher', 'Seal of Removal', 'Forging the Anchor', 'Cliffside Lookout', 'Monument to Perfection', 'Rishkar, Peema Renegade', 'Din of the Fireherd', 'Diabolic Tutor', 'Genesis Ultimatum', 'Restoration Angel', 'Unholy Heat', 'Dauntless Bodyguard', 'Steel Leaf Champion', 'Murderous Redcap', 'Evacuation', 'Temple of Plenty', 'The Scorpion God', 'True Believer', 'Abiding Grace', 'Izzet Boilerworks', 'Duneblast', 'Hostage Taker', 'Kalastria Healer', 'Wrenn''s Resolve', 'Oblivion Ring', 'Xerex Strobe-Knight', 'Haunted Mire', 'Dragon''s Hoard', 'Stupor', 'Engulf the Shore', 'Declaration in Stone', 'Akroan Crusader', 'Felidar Retreat', 'Executioner''s Capsule', 'Terminate', 'Glacial Fortress', 'Genesis Wave', 'Become Immense', 'General''s Enforcer', 'Squee, Goblin Nabob', 'Knight of the Reliquary', 'Invasion of Kaladesh', 'Inevitable Betrayal', 'Snow-Covered Swamp', 'Tempest Djinn', 'Ghost Quarter', 'Hour of Promise', 'Kabira Takedown', 'Temple of Malady', 'Into the Roil', 'Mind''s Desire', 'Raven''s Crime', 'Touch the Spirit Realm', 'Karn''s Bastion', 'Kruphix''s Insight', 'Sandsteppe Citadel', 'Dead // Gone', 'Unctus, Grand Metatect', 'Moorland Haunt', 'Kaito, Dancing Shadow', 'Presence of Gond', 'Shard Volley', 'Nimble Obstructionist', 'Cabal Therapist', 'Sorin, Vengeful Bloodlord', 'Mystic Monastery', 'Pieces of the Puzzle', 'Territorial Kavu', 'Anafenza, Kin-Tree Spirit', 'Folio of Fancies', 'Rust Goliath', 'Whispersilk Cloak', 'Fire Prophecy', 'Shalai, Voice of Plenty', 'Invasion of Ergamon', 'Lavinia of the Tenth', 'Stone Haven Outfitter', 'Sheoldred''s Edict', 'Hyena Umbra', 'Timeless Witness', 'Vampire Nighthawk', 'Mulldrifter', 'Zephyr Singer', 'Cut Down', 'Molten Tributary', 'Evolving Wilds', 'Increasing Ambition', 'Ayli, Eternal Pilgrim', 'Ammit Eternal', 'Big Game Hunter', 'Festering Newt', 'Baneful Omen', 'Winds of Abandon', 'Silverbluff Bridge', 'Phantasmal Image', 'Deep Forest Hermit', 'Vivid Marsh', 'Godo, Bandit Warlord', 'Basking Rootwalla', 'Obzedat, Ghost Council', 'Lurrus of the Dream-Den', 'Melira, the Living Cure', 'Teferi, Mage of Zhalfir', 'Unbreakable Formation', 'Ivory Tower', 'Briarbridge Tracker', 'Solemn Simulacrum', 'Reinforced Ronin', 'Vault of the Archangel', 'Ulcerate', 'Unmarked Grave', 'Graaz, Unstoppable Juggernaut', 'Unlucky Witness', 'Sudden Edict', 'Exclude', 'Gnat Miser', 'Ancient Ziggurat', 'Memoricide', 'Spirited Companion', 'Carven Caryatid', 'Circular Logic', 'Glamerdye', 'Mina and Denn, Wildborn', 'Expedition Envoy', 'Simian Sling', 'Elite Inquisitor', 'Siege Rhino', 'Goldmire Bridge', 'Invasion of Amonkhet', 'Voidwing Hybrid', 'Chandra, Fire Artisan', 'Moderation', 'Throat Slitter', 'Repeal', 'Slaughter Pact', 'Ghostly Flicker', 'Tocatli Honor Guard', 'Ashen Rider', 'Careful Cultivation', 'Perilous Myr', 'Smoldering Marsh', 'Sea Gate Oracle', 'Lagrella, the Magpie', 'Fatestitcher', 'Hope of Ghirapur', 'Westvale Abbey', 'Chief of the Foundry', 'Cathartic Reunion', 'Dispatch', 'Hypergenesis', 'Eerie Ultimatum', 'Kitchen Finks', 'Evangel of Synthesis', 'Elvish Archdruid', 'Grand Abolisher', 'Lay Down Arms', 'Explore', 'Delver of Secrets', 'Gruul Guildgate', 'Sunlit Marsh', 'Ravenous Squirrel', 'Soldier of the Pantheon', 'Terminus', 'Frost Titan', 'Goblin Dark-Dwellers', 'Invisible Stalker', 'Oath of Kaya', 'Ghostly Pilferer', 'Desperate Ritual', 'Nature''s Lore', 'Gilt-Leaf Archdruid', 'Aetherspouts', 'Kami of False Hope', 'Scarab Feast', 'Tezzeret''s Gambit', 'Aether Spellbomb', 'Emmara, Soul of the Accord', 'Snow-Covered Plains', 'Kor Skyfisher', 'High-Speed Hoverbike', 'Mnemonic Sphere', 'Sarkhan, the Dragonspeaker', 'Phyrexian Censor', 'Graven Lore', 'Expedite', 'Deafening Clarion', 'Llanowar Augur', 'Orcish Lumberjack', 'Nezumi Graverobber', 'Blood on the Snow', 'Bituminous Blast', 'Mindcrank', 'Sleight of Hand', 'Mirage Mirror', 'Sire of Insanity', 'Maestros Charm', 'Control Magic', 'Bloodchief''s Thirst', 'Worship', 'Honor of the Pure', 'Bolas''s Citadel', 'Angel of Despair', 'Falkenrath Pit Fighter', 'Temple of Mystery', 'Chittering Rats', 'Skirk Prospector', 'Gideon Jura', 'Vampiric Rites', 'Ulvenwald Hydra', 'Repudiate // Replicate', 'Network Disruptor', 'General Ferrous Rokiric', 'Elvish Mystic', 'Pillar of the Paruns', 'Blue Sun''s Zenith', 'Graveborn Muse', 'Hypnotic Specter', 'Assault // Battery', 'Tidespout Tyrant', 'Ruin Crab', 'Reckless Rage', 'Halimar Excavator', 'Idyllic Tutor', 'Ral, Izzet Viceroy', 'Gadrak, the Crown-Scourge', 'Shimmerdrift Vale', 'Blessed Alliance', 'Syphon Life', 'Hideous End', 'Madcap Experiment', 'Call of the Death-Dweller', 'Oracle of Mul Daya', 'Nameless Inversion', 'Gloomshrieker', 'Opulent Palace', 'Invasion of Zendikar', 'Knowledge Pool', 'Protect the Negotiators', 'Green Sun''s Twilight', 'Frenetic Sliver', 'Greater Tanuki', 'Woodland Cemetery', 'Reckoner''s Bargain', 'Acquisitions Expert', 'Archangel of Wrath', 'Bone Shards', 'Fiery Justice', 'Arch of Orazca', 'Ertai''s Scorn', 'Eiganjo Castle', 'Shrapnel Blast', 'Glorybringer', 'Ishkanah, Grafwidow', 'Steel Overseer', 'Lead the Stampede', 'Talisman of Unity', 'Narcomoeba', 'Castigate', 'Mishra''s Research Desk', 'Groundswell', 'Inscription of Ruin', 'Tezzeret, Artifice Master', 'Kunoros, Hound of Athreos', 'Sol Talisman', 'Lotus Cobra', 'Forbid', 'Blade Splicer', 'Sinew Sliver', 'Woodfall Primus', 'Apostle''s Blessing', 'Feed the Swarm', 'Dead Weight', 'Valakut Exploration', 'Jace, Architect of Thought', 'Hooting Mandrills', 'Laboratory Maniac', 'Viashino Pyromancer', 'Revitalize', 'Supreme Will', 'Invoke Calamity', 'Kiora Bests the Sea God', 'Leather Armor', 'Psychatog', 'Weathered Wayfarer', 'Grenzo, Dungeon Warden', 'Kogla, the Titan Ape', 'Jukai Naturalist', 'Negate', 'Consult the Necrosages', 'Grafted Butcher', 'Port Town', 'Barter in Blood', 'Blightning', 'Sheltered Thicket', 'Far // Away', 'Cloudshredder Sliver', 'Ajani, Mentor of Heroes', 'Necrogen Spellbomb', 'Shape Anew', 'The Seedcore', 'Ashenmoor Liege', 'Tilling Treefolk', 'Brave the Elements', 'Wizard''s Retort', 'Misery Charm', 'Tendo Ice Bridge', 'Merciless Eviction', 'Cremate', 'Out of Time', 'Akiri, Fearless Voyager', 'Arcbound Ravager', 'Experimental Synthesizer', 'Mistcutter Hydra', 'Lightning Strike', 'Boros Elite', 'Viscera Seer', 'Basilisk Collar', 'Solitary Confinement', 'Venerated Loxodon', 'Llanowar Mentor', 'Hesitation', 'Fracturing Gust', 'Tanglepool Bridge', 'Jwari Disruption', 'Ignite Memories', 'Artisan of Kozilek', 'Nightscape Familiar', 'Kambal, Consul of Allocation', 'Search for Azcanta', 'Sunken Hollow', 'Erebos''s Intervention', 'Temple of Silence', 'Colossal Skyturtle', 'Voldaren Pariah', 'Quiet Speculation', 'Arguel''s Blood Fast', 'Stinkweed Imp', 'Yasharn, Implacable Earth', 'Kessig Wolf Run', 'Marauding Blight-Priest', 'Martyr of Sands', 'Silverblade Paladin', 'Timely Reinforcements', 'Defiant Strike', 'Think Twice', 'White Sun''s Zenith', 'Dire-Strain Rampage', 'Heap Doll', 'Deep Analysis', 'Frantic Search', 'Nevermore', 'Simic Guildgate', 'Burst Lightning', 'Felidar Cub', 'Wrench Mind', 'Ghitu Lavarunner', 'Obliterate', 'Kaya, Ghost Assassin', 'Kemba, Kha Enduring', 'Riveteers Charm', 'Diffusion Sliver', 'Frontier Bivouac', 'Sculpting Steel', 'Ground Seal', 'Nekrataal', 'Satyr Hoplite', 'Chaotic Transformation', 'Bogbrew Witch', 'Of One Mind', 'Rise // Fall', 'Flooded Grove', 'Pyrite Spellbomb', 'Earthquake', 'Council''s Judgment', 'Thawing Glaciers', 'Orzhov Guildgate', 'Birds of Paradise', 'Assemble the Legion', 'Fetid Pools', 'Dawn of Hope', 'Fyndhorn Elves', 'Knight of New Alara', 'Llanowar Elves', 'Mistblade Shinobi', 'Geothermal Bog', 'Prosperous Thief', 'Mesa Enchantress', 'Satyr Wayfinder', 'Elas il-Kor, Sadistic Pilgrim', 'Archpriest of Shadows', 'Dark-Dweller Oracle', 'Jungle Shrine', 'Gird for Battle', 'Electrolyze', 'Rampant Growth', 'Bubbling Muck', 'Burning of Xinye', 'Smuggler''s Copter', 'Thornglint Bridge', 'Lost Legacy', 'Cleansing Wildfire', 'Dakmor Salvage', 'Sculpted Perfection', 'Temple of Enlightenment', 'Commune with the Gods', 'Oona''s Grace', 'Disallow', 'Cartel Aristocrat', 'Thrill of Possibility', 'Mistvein Borderpost', 'Victim of Night', 'Abundant Growth', 'Porphyry Nodes', 'Soltari Priest', 'Mindslaver', 'Elvish Clancaller', 'Mesmeric Fiend', 'Silversmote Ghoul', 'Fight as One', 'Bastion of Remembrance', 'Banishing Slash', 'Rally the Peasants', 'Judith, the Scourge Diva', 'Primal Command', 'Midnight Reaper', 'Armored Scrapgorger', 'Drowned Catacomb', 'Battle of Wits', 'Wall of Omens', 'Augur of Bolas', 'Silent Gravestone', 'Gather the Townsfolk', 'Lose Focus', 'Skyclave Shade', 'Ancient Amphitheater', 'Sign in Blood', 'Okina, Temple to the Grandfathers', 'Wooded Bastion', 'Fact or Fiction', 'Volt Charge', 'Tribute to Horobi', 'Spell Burst', 'Inscribed Tablet', 'Strike It Rich', 'Xenagos, the Reveler', 'Pore Over the Pages', 'Ogre Slumlord', 'Sylvan Advocate', 'The Celestus', 'Ivy Lane Denizen', 'Buried Ruin', 'Nephalia Drownyard', 'Sigil of the Empty Throne', 'Archaeomancer', 'Darksteel Citadel', 'Lazotep Chancellor', 'Big Score', 'Sandwurm Convergence', 'Prologue to Phyresis', 'Tuktuk the Explorer', 'Brokers Hideout', 'Howling Mine', 'Enchantress''s Presence', 'Throne of the God-Pharaoh', 'Silundi Vision', 'Cataclysmic Gearhulk', 'Doom Blade', 'Concealing Curtains', 'Luminarch Ascension', 'Verduran Enchantress', 'Ayara, First of Locthwain', 'Grolnok, the Omnivore', 'Delay', 'Sphinx''s Herald', 'Dead of Winter', 'Pharika''s Libation', 'Wayward Guide-Beast', 'Angel of Serenity', 'Mastermind''s Acquisition', 'Kozilek''s Predator', 'Vivid Grove', 'Golgari Rot Farm', 'Spellweaver Helix', 'Approach of the Second Sun', 'Healer''s Hawk', 'Grand Architect', 'Ambush Viper', 'Hinterland Harbor', 'Faith''s Reward', 'Voyaging Satyr', 'Hieroglyphic Illumination', 'Selesnya Guildgate', 'Zuran Orb', 'Dragonskull Summit', 'Drainpipe Vermin', 'Canyon Slough', 'Meeting of Minds', 'Obscura Charm', 'Thundermaw Hellkite', 'Farseek', 'Cauldron Familiar', 'Anoint with Affliction', 'Bloodvial Purveyor', 'Incinerate', 'Wildborn Preserver', 'Trace of Abundance', 'Artistic Refusal', 'Yawgmoth''s Bargain', 'Frantic Inventory', 'Rally the Ranks', 'Oath of Teferi', 'Second Sunrise', 'Blightbelly Rat', 'Seething Song', 'See Beyond', 'Game Trail', 'Mazemind Tome', 'Wilt', 'Bloodchief Ascension', 'Settle the Wreckage', 'Koth, Fire of Resistance', 'Inkwell Leviathan', 'Lightning Spear', 'Open the Gates', 'Guile', 'Mindsplice Apparatus', 'Serra Ascendant', 'Pardic Miner', 'Mothdust Changeling', 'Seismic Assault', 'Sylvan Library', 'Thopter Mechanic', 'Shred Memory', 'Pack Rat', 'Chain Lightning', 'Caves of Koilos', 'The Underworld Cookbook', 'Wanderwine Hub', 'Phoenix Chick', 'Fevered Visions', 'Morsel Theft', 'Sinister Concoction', 'Ethereal Armor', 'Hanweir Garrison', 'Choked Estuary', 'Gift of Estates', 'Fetid Heath', 'Veinfire Borderpost', 'Lodestone Golem', 'Consuming Vapors', 'Acidic Slime', 'Epic Experiment', 'Predatory Sliver', 'Ovika, Enigma Goliath', 'Pyroclasm', 'Vadrik, Astral Archmage', 'Karumonix, the Rat King', 'Shardless Agent', 'Moon-Circuit Hacker', 'Pharika''s Cure', 'Sylvan Scrying', 'Bloodthrone Vampire', 'Stubborn Denial', 'Angrath, the Flame-Chained', 'Overgrowth', 'Counterflux', 'Lantern-Lit Graveyard', 'Duress', 'Gruul Turf', 'Mirror Entity', 'Putrid Imp', 'Heliod''s Intervention', 'Tamiyo, Collector of Tales', 'Bitter Reunion', 'Rakdos Cackler', 'Phyrexian Dreadnought', 'Makeshift Mannequin', 'Mistveil Plains', 'Boon-Bringer Valkyrie', 'Wasteland Strangler', 'Corrupted Conviction', 'Nissa, Steward of Elements', 'Shivan Reef', 'Riveteers Overlook', 'Self-Assembler', 'Sphere of Safety', 'Benevolent Bodyguard', 'Faerie Vandal', 'Shriekmaw', 'Altar of the Brood', 'Seedcradle Witch', 'Geyadrone Dihada', 'Brave the Sands', 'Pillage', 'Anger of the Gods', 'Elspeth Conquers Death', 'Mulch', 'Angel of Condemnation', 'Pyretic Ritual', 'Izzet Guildgate', 'Wrath of God', 'Servo Exhibition', 'Maelstrom Pulse', 'Cabal Ritual', 'Thopter Spy Network', 'Notorious Throng', 'Flametongue Kavu', 'Jace Beleren', 'Kefnet the Mindful', 'Reflector Mage', 'Kitchen Imp', 'Sprite Dragon', 'Bring the Ending', 'Boomerang', 'Skyshroud Elf', 'Vigor', 'Stoic Rebuttal', 'Summer Bloom', 'Maze''s End', 'Icehide Golem', 'Distorted Curiosity', 'Doomed Traveler', 'Glint-Sleeve Siphoner', 'Kumano Faces Kakkazan', 'Swooping Lookout', 'Ponder', 'Venser, Shaper Savant', 'Curse of Exhaustion', 'Mouth of Ronom', 'Utter End', 'Draugr Necromancer', 'Agonizing Remorse', 'Sylvan Messenger', 'Platinum Angel', 'Crack the Earth', 'Kemba, Kha Regent', 'Disrupting Shoal', 'Ranger of Eos', 'Silver-Fur Master', 'Vraska''s Fall', 'Chandra, Pyromaster', 'Secluded Courtyard', 'Haunted Dead', 'Heliod''s Pilgrim', 'Devious Cover-Up', 'War Falcon', 'Gutterbones', 'Spectral Procession', 'Wonder', 'Mortuary Mire', 'Empyrial Armor', 'Sultai Charm', 'Vedalken Heretic', 'Tangled Islet', 'Master of Death', 'Empyrial Plate', 'Bubbling Cauldron', 'Greater Gargadon', 'Arbor Elf', 'Nine Lives', 'Akoum Hellhound', 'Arlinn Kord', 'Ancient Stirrings', 'Archon of Sun''s Grace', 'Teshar, Ancestor''s Apostle', 'Changeling Outcast', 'Teneb, the Harvester', 'Recruitment Officer', 'Fruit of Tizerus', 'Exhaustion', 'Eldrazi Displacer', 'Esper Charm', 'Orzhov Charm', 'Ghostfire Blade', 'Rites of Spring', 'Reveillark', 'Sea-Dasher Octopus', 'Faerie Miscreant', 'Wildfield Borderpost', 'Eidolon of Blossoms', 'Ezuri, Renegade Leader', 'Nimbus Maze', 'Blanchwood Prowler', 'Grand Arbiter Augustin IV', 'Tendrils of Agony', 'Glimpse of Tomorrow', 'Thrash // Threat', 'Drossforge Bridge', 'Hornet Queen', 'Leonin Arbiter', 'Vault Skirge', 'Nimble Larcenist', 'Lizard Blades', 'Ruric Thar, the Unbowed', 'Curious Homunculus', 'Obstinate Baloth', 'Isolated Chapel', 'Scrapheap Scrounger', 'Garruk Wildspeaker', 'Peek', 'Vampire Neonate', 'Melira, Sylvok Outcast', 'Drowned Rusalka', 'Destiny Spinner', 'Abyssal Persecutor', 'Runed Halo', 'Terastodon', 'Phyrexian Unlife', 'Rustvale Bridge', 'Radiant Grove', 'Night of Souls'' Betrayal', 'Prophetic Prism', 'Detention Sphere', 'Etherium Sculptor', 'Ornithopter', 'Argentum Armor', 'Orim''s Chant', 'Racers'' Ring', 'Lavaclaw Reaches', 'Tyrant''s Choice', 'Anafenza, the Foremost', 'Fearless Fledgling', 'Goldmeadow Harrier'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Canopy Vista', 'Briarbridge Tracker', 'Venser, Shaper Savant', 'Rally the Ancestors', 'Lightning Spear', 'Voidslime', 'Nissa, Worldwaker', 'Timely Reinforcements', 'Opulent Palace', 'Approach of the Second Sun', 'Dragon''s Hoard', 'Tymaret, Chosen from Death', 'Disciple of Bolas', 'Jukai Naturalist', 'Orzhov Charm', 'Fire Prophecy', 'Judge''s Familiar', 'Fireblade Charger', 'Rule of Law', 'Executioner''s Capsule', 'Dread Return', 'Phoenix Chick', 'Search for Tomorrow', 'Vines of Vastwood', 'Tidehollow Sculler', 'Clifftop Retreat', 'Orzhov Guildgate', 'Altar of the Brood', 'Vivid Grove', 'Divest', 'Notorious Throng', 'Psychatog', 'Triumphant Adventurer', 'Sudden Edict', 'Gloomshrieker', 'Lizard Blades', 'Vault Skirge', 'Gideon''s Intervention', 'Quest for the Holy Relic', 'Bump in the Night', 'Chief of the Foundry', 'Smoldering Marsh', 'Graveborn Muse', 'Faeburrow Elder', 'Dark Petition', 'Nether Spirit', 'Marble Diamond', 'Dimensional Infiltrator', 'Wizard''s Retort', 'Ulamog''s Crusher', 'Rampant Growth', 'Talisman of Unity', 'Expedition Envoy', 'Lose Focus', 'Demigod of Revenge', 'Kiora, the Crashing Wave', 'Angel of Grace', 'Ebony Owl Netsuke', 'Tangle', 'Bloodline Keeper', 'Boomerang', 'Midnight Reaper', 'Crack the Earth', 'Timeless Dragon', 'Barbed Sextant', 'Tranquil Thicket', 'Silver-Fur Master', 'Lavinia of the Tenth', 'Altered Ego', 'Frostwalk Bastion', 'Tribute to Horobi', 'Grenzo, Dungeon Warden', 'The Mending of Dominaria', 'Vampire Nighthawk', 'Choked Estuary', 'Spikefield Hazard', 'Kalastria Healer', 'Witching Well', 'Resolute Reinforcements', 'Squadron Hawk', 'Silverbluff Bridge', 'Dovin''s Acuity', 'Upheaval', 'Fiery Temper', 'Carven Caryatid', 'Devious Cover-Up', 'Temple of Deceit', 'Temple of Triumph', 'Vraan, Executioner Thane', 'Thassa''s Intervention', 'Anafenza, Kin-Tree Spirit', 'Concealing Curtains', 'Drossforge Bridge', 'Malcator, Purity Overseer', 'Rakdos Cackler', 'Mindsplice Apparatus', 'Greater Tanuki', 'Fatestitcher', 'Elvish Mystic', 'Mazemind Tome', 'Artistic Refusal', 'Presence of Gond', 'Izzet Charm', 'Martyr of Sands', 'Castigate', 'Ephara, God of the Polis', 'Brokers Hideout', 'Glint-Sleeve Siphoner', 'Control Magic', 'Gideon Jura', 'Reflector Mage', 'Torens, Fist of the Angels', 'Simian Spirit Guide', 'Memory Lapse', 'Sign in Blood', 'Madcap Experiment', 'Dimir Guildgate', 'Fallaji Archaeologist', 'The Scorpion God', 'Ravenous Squirrel', 'Auriok Sunchaser', 'Black Sun''s Zenith', 'Seedcradle Witch', 'Waking the Trolls', 'Cauldron Familiar', 'Obscura Storefront', 'Coiling Oracle', 'Drowned Rusalka', 'Tangled Islet', 'Skyshroud Elf', 'Disrupting Shoal', 'Ornithopter', 'Invasion of Zendikar', 'Ral, Izzet Viceroy', 'Out of Time', 'Sorin, Vengeful Bloodlord', 'Universal Automaton', 'Sin Collector', 'Abzan Charm', 'Shred Memory', 'Elite Inquisitor', 'Voidwing Hybrid', 'Ossification', 'Kazandu Blademaster', 'Enchantress''s Presence', 'Halo Forager', 'Ghostly Pilferer', 'Forked Bolt', 'Founding the Third Path', 'Frenetic Sliver', 'Voltage Surge', 'Incinerate', 'Nimble Obstructionist', 'Embodiment of Fury', 'Ghostfire Blade', 'Rishkar, Peema Renegade', 'Valakut Exploration', 'Dire-Strain Rampage', 'Siege Rhino', 'Silverblade Paladin', 'Abyssal Persecutor', 'Falkenrath Pit Fighter', 'Annex Sentry', 'Bloodchief Ascension', 'Voyaging Satyr', 'Soltari Priest', 'Shimmer Dragon', 'Slogurk, the Overslime', 'Gateway Plaza', 'Commit // Memory', 'Energy Refractor', 'Elvish Archdruid', 'Nezahal, Primal Tide', 'Ethereal Armor', 'Hideous End', 'Curiosity', 'Tocatli Honor Guard', 'Figure of Destiny', 'Loxodon Smiter', 'Faerie Miscreant', 'Lurrus of the Dream-Den', 'Ashnod, Flesh Mechanist', 'Weathered Wayfarer', 'Secluded Courtyard', 'Tezzeret the Schemer', 'Divinity of Pride', 'Colossal Skyturtle', 'Dead // Gone', 'Mastermind''s Acquisition', 'Pyrite Spellbomb', 'Frost Titan', 'Myth Realized', 'Genesis Ultimatum', 'Anguished Unmaking', 'Malakir Rebirth', 'The Seedcore', 'Bloodsoaked Champion', 'Tooth and Nail', 'Zur''s Weirding', 'Gigadrowse', 'Leonin Warleader', 'Dissipate', 'Bring the Ending', 'Herd Baloth', 'Izzet Boilerworks', 'Unctus, Grand Metatect', 'Rune Snag', 'Dream Trawler', 'Geothermal Bog', 'Spellweaver Helix', 'Oni-Cult Anvil', 'Collected Conjuring', 'Toolcraft Exemplar', 'Port Town', 'Chief Engineer', 'Akoum Hellhound', 'Soul Warden', 'Graven Cairns', 'Tolarian Terror', 'Battle of Frost and Fire', 'Dark-Dweller Oracle', 'Winds of Abandon', 'Experimental Synthesizer', 'Gravelgill Duo', 'Jwari Disruption', 'Darksteel Colossus', 'Whispersilk Cloak', 'Adanto Vanguard', 'Anoint with Affliction', 'Elemental Masterpiece', 'Ruric Thar, the Unbowed', 'Shambling Vent', 'Oracle of Tragedy', 'Serra Ascendant', 'Fracturing Gust', 'Orzhov Basilica', 'Mausoleum Secrets', 'King Darien XLVIII', 'Strike It Rich', 'Vindicate', 'Rain of Tears', 'Teshar, Ancestor''s Apostle', 'Kogla, the Titan Ape', 'Sylvan Library', 'Vedalken Heretic', 'Aetherling', 'Vraska''s Fall', 'Emmara, Soul of the Accord', 'Ensoul Artifact', 'Cathedral of War', 'Glacial Fortress', 'Icehide Golem', 'Nissa, Steward of Elements', 'Rust Goliath', 'Smallpox', 'Surrak, the Hunt Caller', 'Ancient Stirrings', 'Thopter Mechanic', 'Faerie Vandal', 'Swiftfoot Boots', 'Dread Wanderer', 'Ignite Memories', 'Necrogen Spellbomb', 'Polukranos, World Eater', 'Laboratory Maniac', 'Snow-Covered Mountain', 'Rise // Fall', 'Territorial Kavu', 'World Shaper', 'Firewild Borderpost', 'Precursor Golem', 'Assault // Battery', 'Lochmere Serpent', 'Baneful Omen', 'Pieces of the Puzzle', 'Aetherspouts', 'Quiet Speculation', 'Vraska, Relic Seeker', 'Overgrowth', 'Mind''s Desire', 'Rakdos Charm', 'Kumano Faces Kakkazan', 'Saproling Migration', 'Ajani, Mentor of Heroes', 'Into the Story', 'Simian Sling', 'Skirk Prospector', 'Mikokoro, Center of the Sea', 'Murmuring Bosk', 'Raven''s Crime', 'Staff of Domination', 'Mesmeric Fiend', 'Stoic Rebuttal', 'Demonic Dread', 'Phalanx Leader', 'Corpse Cur', 'Night of Souls'' Betrayal', 'Razortide Bridge', 'Commence the Endgame', 'Battle of Wits', 'Forging the Anchor', 'Fight as One', 'Wanderwine Hub', 'Oona''s Prowler', 'Jwari Shapeshifter', 'Armored Scrapgorger', 'Norn''s Inquisitor', 'Abiding Grace', 'Azorius Guildgate', 'Phyrexian Revoker', 'Spell Burst', 'Contaminated Aquifer', 'Kitchen Finks', 'Gnawing Vermin', 'Silundi Vision', 'Fieldmist Borderpost', 'Prosperous Thief', 'Lavaclaw Reaches', 'Negate', 'Patchwork Automaton', 'Hope of Ghirapur', 'Sphere of Safety', 'Jace, Architect of Thought', 'Folio of Fancies', 'River of Tears', 'Heartless Act', 'Tribute to Hunger', 'Phyrexian Censor', 'Elderscale Wurm', 'Angel of Serenity', 'Wooded Bastion', 'Grand Architect', 'Felidar Retreat', 'Fae of Wishes', 'Sylvan Scrying', 'Leather Armor', 'Vessel of Nascency', 'Wild Cantor', 'Saffi Eriksdotter', 'Golgari Guildgate', 'Drowned Catacomb', 'Yasharn, Implacable Earth', 'Invasion of Regatha', 'Hada Freeblade', 'Sinister Concoction', 'Hard Evidence', 'Lead the Stampede', 'Cloudpost', 'Fetid Pools', 'Wall of Omens', 'Sarkhan the Masterless', 'Sigrid, God-Favored', 'Sylvan Advocate', 'Lantern-Lit Graveyard', 'Mistblade Shinobi', 'Pack Rat', 'Temple of Plenty', 'Mina and Denn, Wildborn', 'Tezzeret, Artifice Master', 'Moderation', 'Sol Talisman', 'Into the Roil', 'Wrath of God', 'Rites of Initiation', 'Myr Battlesphere', 'Restoration Angel', 'Golgari Rot Farm', 'Remorseful Cleric', 'Kefnet the Mindful', 'Thawing Glaciers', 'Tresserhorn Sinks', 'Maelstrom Pulse', 'Varolz, the Scar-Striped', 'Stern Dismissal', 'Servo Exhibition', 'Heliod''s Pilgrim', 'White Sun''s Zenith', 'Venser, Corpse Puppet', 'Chittering Rats', 'Wildborn Preserver', 'Blightning', 'Pariah', 'Goblin Electromancer', 'Sterling Grove', 'Gideon''s Lawkeeper', 'Circuit Mender', 'Obliterate', 'Rites of Spring', 'Dakmor Salvage', 'Brainstone', 'Elvish Visionary', 'Sunblade Samurai', 'Distorted Curiosity', 'Okina, Temple to the Grandfathers', 'Empyrial Armor', 'Caves of Koilos', 'Deprive', 'Brineborn Cutthroat', 'Whir of Invention', 'Sea Gate Oracle', 'Jace Beleren', 'Tomebound Lich', 'Kiora Bests the Sea God', 'Vexing Shusher', 'War Falcon', 'Volt Charge', 'Become Immense', 'Nine Lives', 'Kruphix''s Insight', 'Nimble Larcenist', 'Venser, the Sojourner', 'Ethersworn Sphinx', 'Kitesail Freebooter', 'Oona''s Grace', 'Nezumi Graverobber', 'Nightscape Familiar', 'Kor Firewalker', 'Unsubstantiate', 'Stromkirk Noble', 'Yawgmoth''s Bargain', 'Reveillark', 'Commune with Spirits', 'Felidar Cub', 'Tamiyo, Collector of Tales', 'Union of the Third Path', 'Vivid Marsh', 'Terastodon', 'Valiant Changeling', 'Thrash // Threat', 'Temple of Abandon', 'Haunted Mire', 'Fact or Fiction', 'Sire of Insanity', 'Nested Shambler', 'Farseek', 'Stasis Snare', 'Death Cloud', 'Engulf the Shore', 'Ivy Lane Denizen', 'Hissing Quagmire', 'Vampire Lacerator', 'Raging Ravine', 'Gather the Townsfolk', 'Pull from Tomorrow', 'Kaito, Dancing Shadow', 'Moon-Circuit Hacker', 'Nullpriest of Oblivion', 'Commune with the Gods', 'Terrarion', 'Aetherblade Agent', 'Big Game Hunter', 'Crawling Barrens', 'Fertile Ground', 'Knowledge Pool', 'Ammit Eternal', 'Gitaxian Probe', 'Ancient Amphitheater', 'Lightning Strike', 'Thornwood Falls', 'Wayward Guide-Beast', 'Simic Guildgate', 'Temple of Malady', 'Gruul Turf', 'Sweltering Suns', 'Soldier of the Pantheon', 'Open the Armory', 'Skymarcher Aspirant', 'Phantasmal Image', 'Sunken Hollow', 'Teferi, Mage of Zhalfir', 'Sylvan Caryatid', 'Changeling Outcast', 'Galerider Sliver', 'Blood on the Snow', 'See Beyond', 'Fevered Visions', 'Glistener Elf', 'Mortuary Mire', 'Summary Dismissal', 'Barter in Blood', 'Nekrataal', 'Cabaretti Courtyard', 'Knight of Glory', 'Gavony Township', 'Viashino Pyromancer', 'Vadrik, Astral Archmage', 'Canyon Slough', 'Viscera Seer', 'Banishing Slash', 'Night Market Lookout', 'Disenchant', 'Invisible Stalker', 'Radha, Heart of Keld', 'Sunstrike Legionnaire', 'Karn''s Bastion', 'Delay', 'Brain Freeze', 'Stupor', 'Llanowar Tribe', 'Nephalia Drownyard', 'Urban Evolution', 'Farhaven Elf', 'Basking Rootwalla', 'Odds // Ends', 'Leonin Lightscribe', 'Feed the Swarm', 'Oblivion Ring', 'Judith, the Scourge Diva', 'Hostage Taker', 'Talisman of Curiosity', 'Eternal Scourge', 'Big Score', 'Kunoros, Hound of Athreos', 'Kor Skyfisher', 'Consume the Meek', 'Invasion of Amonkhet', 'Slagstorm', 'Abundant Harvest', 'Erebos''s Intervention', 'Bontu''s Last Reckoning', 'Sheltered Thicket', 'Flaying Tendrils', 'Predatory Sliver', 'Gruul Spellbreaker', 'Solitary Confinement', 'Repudiate // Replicate', 'Prohibit', 'Perilous Myr', 'Shalai, Voice of Plenty', 'Tempest Djinn', 'Geomancer''s Gambit', 'Seething Song', 'Solemn Simulacrum', 'Bubbling Cauldron', 'Vault of the Archangel', 'Sultai Charm', 'Stubborn Denial', 'Voldaren Pariah', 'Sulfur Falls', 'Eldrazi Displacer', 'Thraben Inspector', 'Blightbelly Rat', 'Mishra''s Research Desk', 'Bone Shards', 'Ishkanah, Grafwidow', 'Genesis Hydra', 'Titania, Protector of Argoth', 'Moorland Haunt', 'Porphyry Nodes', 'Bilious Skulldweller', 'Izzet Guildgate', 'All That Glitters', 'Argentum Masticore', 'Tribal Flames', 'Kami of False Hope', 'Ayli, Eternal Pilgrim', 'Metalwork Colossus', 'Dying to Serve', 'Grand Arbiter Augustin IV', 'Discovery // Dispersal', 'Mystic Monastery', 'Summer Bloom', 'Aether Spellbomb', 'Midnight Guard', 'Cremate', 'Arlinn Kord', 'Etherium Sculptor', 'Knight of the White Orchid', 'Malicious Malfunction', 'Halana and Alena, Partners', 'Lost Legacy', 'Ramunap Excavator', 'Stone Haven Outfitter', 'Time of Need', 'Shard Volley', 'Agonizing Remorse', 'Spatial Contortion', 'Kjeldoran Outpost', 'Ruin Crab', 'Tainted Indulgence', 'Rustvale Bridge', 'Goldmeadow Harrier', 'Knight of the Reliquary', 'Mnemonic Sphere', 'Lotus Cobra', 'Sever the Bloodline', 'Aegis of the Gods', 'Boros Guildgate', 'Serrated Scorpion', 'Mistvault Bridge', 'Shardless Agent', 'Crux of Fate', 'Guile', 'Smother', 'Riveteers Charm', 'Nimbus Maze', 'Honor of the Pure', 'Hanweir Garrison', 'Frontier Bivouac', 'Rakdos''s Return', 'Empty the Warrens', 'Festering Newt', 'Rift Bolt', 'Wrenn''s Resolve', 'Bituminous Blast', 'Mindcrank', 'Drake Haven', 'Archangel Avacyn', 'Angrath, the Flame-Chained', 'Demonic Bargain', 'Bloodchief''s Thirst', 'Repeal', 'Hypergenesis', 'Luminarch Ascension', 'Joint Exploration', 'Gallia of the Endless Dance', 'Languish', 'Glimpse of Tomorrow', 'Orim''s Chant', 'Sheoldred''s Edict', 'Protect the Negotiators', 'Assemble the Legion', 'Runeflare Trap', 'Duplicant', 'Oona, Queen of the Fae', 'Cathartic Reunion', 'Fumigate', 'Phyrexian Dreadnought', 'Defiant Strike', 'Settle the Wreckage', 'Pyroclasm', 'Stone Rain', 'Goblin Bombardment', 'Groundswell', 'Wonder', 'Sin Prodder', 'Cryptic Caves', 'Dispatch', 'Mindslaver', 'Woe Strider', 'Forbid', 'Crystal Grotto', 'Duress', 'Leonin Arbiter', 'Blessed Alliance', 'Sandwurm Convergence', 'Gaea''s Will', 'Koth, Fire of Resistance', 'Search for Azcanta', 'Bloodvial Purveyor', 'Ghitu Lavarunner', 'Kambal, Consul of Allocation', 'Possibility Storm', 'Zephyr Singer', 'Sins of the Past', 'Open the Gates', 'Scarab Feast', 'Unbreakable Formation', 'Herd Migration', 'Glamerdye', 'Prophetic Prism', 'Curious Homunculus', 'Eldrazi Skyspawner', 'Satyr Hoplite', 'Nature''s Lore', 'Snow-Covered Swamp', 'Fearless Fledgling', 'Oracle of Mul Daya', 'The Antiquities War', 'Mistcutter Hydra', 'Vampiric Rites', 'Altar of the Goyf', 'Elvish Clancaller', 'Forsake the Worldly', 'Myr Superion', 'Sea-Dasher Octopus', 'Increasing Ambition', 'Raze to the Ground', 'Glimmerpost', 'Arcum''s Astrolabe', 'Raise the Alarm', 'Obstinate Baloth', 'Delver of Secrets', 'Graven Lore', 'Caldera Hellion', 'Terminate', 'Ponder', 'Bubbling Muck', 'Third Path Iconoclast', 'Ambush Viper', 'Grove of the Guardian', 'Tezzeret''s Gambit', 'Gleeful Demolition', 'Blood Artist', 'Dreams of Steel and Oil', 'Circular Logic', 'Treasure Cruise', 'Hyena Umbra', 'Carnophage', 'Chain Lightning', 'Bloodbraid Elf', 'Mirror Entity', 'Fruit of Tizerus', 'Eiganjo Castle', 'Barbarian Ring', 'Seal of Removal', 'Dross Skullbomb', 'Dead of Winter', 'Shizo, Death''s Storehouse', 'Merciless Eviction', 'Goldmire Bridge', 'Vampire Neonate', 'Mouth of Ronom', 'Melira, Sylvok Outcast', 'Burst Lightning', 'Boros Elite', 'Blight Mamba', 'Racers'' Ring', 'Primal Command', 'Nameless Inversion', 'Check for Traps', 'Woodland Cemetery', 'Spell Pierce', 'Disallow', 'Hypnotic Specter', 'Angel of Condemnation', 'Gadrak, the Crown-Scourge', 'Deafening Clarion', 'Alms of the Vein', 'Restore Balance', 'Psychic Possession', 'Ajani, Adversary of Tyrants', 'Recurring Nightmare', 'Boreal Shelf', 'Thrill of Possibility', 'Blue Sun''s Zenith', 'Krosan Grip', 'Raffine''s Informant', 'Dark Prophecy', 'Archangel of Wrath', 'Vryn Wingmare', 'Archaeomancer', 'Fiery Justice', 'Verduran Enchantress', 'Plated Geopede', 'Bolas''s Citadel', 'Ghostly Flicker', 'The Underworld Cookbook', 'Gilt-Leaf Archdruid', 'Scuttling Doom Engine', 'Eidolon of Blossoms', 'Inscribed Tablet', 'Throat Slitter', 'Ground Seal', 'Drowner of Hope', 'Mulldrifter', 'Sinew Sliver', 'Idyllic Tutor', 'Knight of New Alara', 'Frantic Inventory', 'Arch of Orazca', 'Dreadhorde Butcher', 'Thaumatic Compass', 'Froghemoth', 'Champion of Wits', 'Vraska''s Contempt', 'Blazing Rootwalla', 'Marauding Blight-Priest', 'Blanchwood Prowler', 'Kappa Tech-Wrecker', 'Shrapnel Blast', 'Dusk // Dawn', 'Oath of Teferi', 'Sleight of Hand', 'Stinkdrinker Bandit', 'Explore', 'Sarkhan, the Dragonspeaker', 'Cloudshredder Sliver', 'Buried Ruin', 'Sphinx''s Herald', 'Slagwoods Bridge', 'Wood Elves', 'Diffusion Sliver', 'Garruk Wildspeaker', 'Godo, Bandit Warlord', 'Seal of Cleansing', 'Exclude', 'Molten Tributary', 'Monument to Perfection', 'Angel of Despair', 'Master of Etherium', 'Chamber Sentry', 'Huatli, Radiant Champion', 'Artisan of Kozilek', 'Fangren Marauder', 'Boon-Bringer Valkyrie', 'Wasteland Strangler', 'Locket of Yesterdays', 'Memoricide', 'Gutterbones', 'Wilt', 'Elvish Rejuvenator', 'Self-Assembler', 'Din of the Fireherd', 'Jor Kadeen, First Goldwarden', 'Grave Scrabbler', 'Dark Ritual', 'Glorybringer', 'Hinterland Harbor', 'Precinct Captain', 'Thornglint Bridge', 'Rise and Shine', 'Shriekmaw', 'Healer''s Hawk', 'Twinshot Sniper', 'Battlefield Forge', 'Ivory Tower', 'Seeker of the Way', 'Magister of Worth', 'Sunlit Marsh', 'Of One Mind', 'Weapons Trainer', 'Orcish Lumberjack', 'Liliana Vess', 'Dismal Backwater', 'Ulvenwald Hydra', 'Maestros Charm', 'Thopter Spy Network', 'Second Sunrise', 'Kher Keep', 'Fyndhorn Elves', 'Grave Titan', 'Wandering Fumarole', 'Exhaustion', 'Narcomoeba', 'Dawn of Hope', 'Maze''s End', 'Thundermaw Hellkite', 'Steppe Lynx', 'Far // Away', 'Chaotic Transformation', 'Runed Halo', 'Birds of Paradise', 'Cabal Initiate', 'Ghost Quarter', 'Shivan Reef', 'Mirran Crusader', 'Pillar of the Paruns', 'Experimental Augury', 'Dauntless Bodyguard', 'Mistveil Plains', 'Inevitable Betrayal', 'Seal of Fire', 'Mesa Enchantress', 'Graaz, Unstoppable Juggernaut', 'Slaughter Pact', 'Supreme Will', 'Shape Anew', 'Hooting Mandrills', 'Tectonic Edge', 'Grolnok, the Omnivore', 'Fierce Empath', 'Dregscape Zombie', 'Bident of Thassa', 'Pillage', 'Rabbit Battery', 'Xerex Strobe-Knight', 'Prologue to Phyresis', 'Desperate Ritual', 'Kessig Wolf Run', 'Sandsteppe Citadel', 'Ashenmoor Liege', 'Ranger of Eos', 'Isolated Chapel', 'Consult the Necrosages', 'Late to Dinner', 'Hornet Queen', 'Ancestral Blade', 'Bogardan Hellkite', 'Sunpetal Grove', 'Quicken', 'Swooping Lookout', 'Gather the Pack', 'Council''s Judgment', 'Silumgar, the Drifting Death', 'Rootbound Crag', 'Shimmerdrift Vale', 'Celestial Colonnade', 'Putrid Imp', 'Avacyn''s Pilgrim', 'Unmarked Grave', 'Skyclave Shade', 'The Flame of Keld', 'Acquisitions Expert', 'Heliod''s Intervention', 'Stoke the Flames', 'Radiant Grove', 'Mwonvuli Acid-Moss', 'Grafted Butcher', 'Nimble Trapfinder', 'Vivid Crag', 'Elves of Deep Shadow', 'Cliffside Lookout', 'Rally the Peasants', 'Invasion of Kaladesh', 'Cultivate', 'Helm of the Host', 'Kozilek''s Predator', 'Declaration in Stone', 'Yorion, Sky Nomad', 'Flame Rift', 'Meeting of Minds', 'Jungle Hollow', 'Thragtusk', 'Drainpipe Vermin', 'Rocco, Cabaretti Caterer', 'Arbor Elf', 'Earthquake', 'Basilisk Collar', 'Zuran Orb', 'Ally Encampment', 'Decree of Justice', 'Mana Leak', 'Pharika''s Cure', 'Doomed Traveler', 'Temple of Mystery', 'Destiny Spinner', 'General Ferrous Rokiric', 'Scrying Sheets', 'Unholy Heat', 'Benevolent Bodyguard', 'Touch the Spirit Realm', 'Duneblast', 'Dragonskull Summit', 'Inkwell Leviathan', 'Invoke Calamity', 'Cabal Ritual', 'Melira, the Living Cure', 'Westvale Abbey', 'Frost Marsh', 'Reinforced Ronin', 'Gift of Immortality', 'Fetid Heath', 'Game Trail', 'Obscura Charm', 'Pore Over the Pages', 'Marwyn, the Nurturer', 'Anafenza, the Foremost', 'Surge of Salvation', 'Tanglepool Bridge', 'Venerated Loxodon', 'Kitchen Imp', 'Cartel Aristocrat', 'Flametongue Kavu', 'Ancient Ziggurat', 'Ulcerate', 'Brave the Sands', 'Terramorphic Expanse', 'Might of Old Krosa', 'Cabal Therapist', 'Bitter Reunion', 'Acidic Slime', 'Veinfire Borderpost', 'Herald of the Pantheon', 'Consuming Vapors', 'Deep Analysis', 'Forgotten Cave', 'Scrapheap Scrounger', 'Throne of the God-Pharaoh', 'Rotting Rats', 'Reckoner''s Bargain', 'Ransack the Lab', 'Revitalize', 'Haunted Dead', 'Mistvein Borderpost', 'Demolition Field', 'Chandra, Flamecaller', 'Tyrant''s Choice', 'Gift of Estates', 'Hall of Oracles', 'Argentum Armor', 'Lay Down Arms', 'Impulse', 'Network Disruptor', 'Dryad Militant', 'Yisan, the Wanderer Bard', 'Detention Sphere', 'Reckless Rage', 'Greater Gargadon', 'Kaya, Ghost Assassin', 'Careful Cultivation', 'Condemn', 'Otherworldly Journey', 'Terminus', 'Tidespout Tyrant', 'Lazotep Chancellor', 'Nevermore', 'Spectral Procession', 'Timeless Witness', 'Solemnity', 'Grim Haruspex', 'Yavimaya Iconoclast', 'Hero''s Downfall', 'Oath of Kaya', 'Haunted Fengraf', 'Stinkweed Imp', 'Elas il-Kor, Sadistic Pilgrim', 'Murderous Cut', 'Ayara, First of Locthwain', 'Doomskar', 'The Celestus', 'Azorius Charm', 'Riveteers Overlook', 'Seismic Assault', 'Stirring Wildwood', 'Tendrils of Agony', 'Scrapwork Mutt', 'Springleaf Drum', 'Postmortem Lunge', 'Rix Maadi Reveler', 'Yavimaya Coast', 'Elspeth Conquers Death', 'Empyrial Plate', 'Heap Doll', 'Gird for Battle', 'Sylvan Messenger', 'Selesnya Guildgate', 'Genesis Wave', 'Grand Abolisher', 'Draugr Necromancer', 'True Believer', 'Ashen Rider', 'Yahenni''s Expertise', 'Chandra, Fire Artisan', 'Platinum Angel', 'Dokuchi Silencer', 'Ovika, Enigma Goliath', 'Fade from Memory', 'Tocasia''s Dig Site', 'Harmonize', 'Vigor', 'Botanical Plaza', 'Putrefy', 'Cleansing Wildfire', 'Archon of Sun''s Grace', 'Satyr Wayfinder', 'Scour All Possibilities', 'Geyadrone Dihada', 'Victim of Night', 'Jungle Shrine', 'Erebos, Bleak-Hearted', 'Akiri, Fearless Voyager', 'Augur of Bolas', 'Oust', 'Mirage Mirror', 'Unburial Rites', 'Mothdust Changeling', 'Commune with Nature', 'Green Sun''s Twilight', 'Elixir of Immortality', 'Change the Equation', 'Doom Blade', 'Akroan Crusader', 'Karumonix, the Rat King', 'Leonin Relic-Warder', 'Crawling Chorus', 'Tilling Treefolk', 'Lodestone Golem', 'Cataclysmic Gearhulk', 'Inscription of Ruin', 'Invigorate', 'Eerie Ultimatum', 'Frantic Search', 'Giant Killer', 'Flooded Grove', 'Burning of Xinye', 'Cut Down', 'Destroy Evil', 'Evacuation', 'Electrolyze', 'Silversmote Ghoul', 'Tendo Ice Bridge', 'Corrupted Conviction', 'Epic Experiment', 'Expedite', 'Stir the Grave', 'Arcbound Ravager', 'Arbalest Engineers', 'Pharika''s Libation', 'Morsel Theft', 'Dimir Aqueduct', 'Pyretic Ritual', 'Apostle''s Blessing', 'Idyllic Beachfront', 'Misery Charm', 'Resurgent Belief', 'Goblin Dark-Dwellers', 'Trace of Abundance', 'Reckless Charge', 'Invasion of New Capenna', 'Lingering Souls', 'Fleecemane Lion', 'Spectral Shift', 'Syphon Life', 'Peek', 'Favored Hoplite', 'Scattered Groves', 'Invasion of Ergamon', 'Phyrexian Unlife', 'Ichorclaw Myr', 'Recruitment Officer', 'Teneb, the Harvester', 'Consul''s Lieutenant', 'Gnat Miser', 'Sacred Peaks', 'Combat Research', 'Squee, Goblin Nabob', 'Wolfbriar Elemental', 'Floriferous Vinewall', 'Scrabbling Claws', 'Chandra, Pyromaster', 'Call of the Death-Dweller', 'Temple of Enlightenment', 'Brave the Elements', 'Sculpted Perfection', 'Ral, Storm Conduit', 'High-Speed Hoverbike', 'Silumgar''s Scorn', 'Vapor Snag', 'Bloodthrone Vampire', 'Ezuri, Renegade Leader', 'Smuggler''s Copter', 'Darksteel Citadel', 'Arcane Sanctum', 'Xenagos, the Reveler', 'Makeshift Mannequin', 'Blade Splicer', 'Combat Thresher', 'Steel Leaf Champion', 'Ogre Slumlord', 'Devil''s Play', 'Howling Mine', 'Endbringer', 'Sigil of the Empty Throne', 'Lagrella, the Magpie', 'Halimar Excavator', 'Dead Weight', 'Archpriest of Shadows', 'Temple of Silence', 'Call to the Grave', 'Invasion of Azgol', 'Pardic Miner', 'Tear Asunder', 'Purify the Grave', 'Scab-Clan Berserker', 'Esper Charm', 'Go for the Throat', 'Day of Judgment', 'Llanowar Augur', 'Steel Overseer', 'Obzedat, Ghost Council', 'Master of Death', 'Deep Forest Hermit', 'Snow-Covered Plains', 'Hieroglyphic Illumination', 'Anger of the Gods', 'Marit Lage''s Slumber', 'Unlucky Witness', 'Rally the Ranks', 'Kemba, Kha Regent', 'Hesitation', 'Shigeki, Jukai Visionary', 'Galvanic Relay', 'Vampire Hexmage', 'Mulch', 'Arguel''s Blood Fast', 'Counterflux', 'Silent Gravestone', 'Llanowar Elves', 'Evangel of Synthesis', 'Nomad Outpost', 'Hour of Promise', 'Forbidden Alchemy', 'Kami of the Crescent Moon', 'Kemba, Kha Enduring', 'Ertai''s Scorn', 'Rakdos Guildgate', 'Drown in Ichor', 'Return to the Ranks', 'Succumb to Temptation', 'Llanowar Mentor', 'Sprite Dragon', 'Corrupted Crossroads', 'Price of Progress', 'Tuktuk the Explorer', 'Faith''s Reward', 'Sculpting Steel', 'Progenitor Exarch', 'Ardent Recruit', 'Diabolic Tutor', 'Priest of the Haunted Edge', 'Bastion of Remembrance', 'Think Twice', 'Spirited Companion', 'Gruul Guildgate', 'Zombie Infestation', 'Woodfall Primus', 'Kabira Takedown', 'Wildfield Borderpost', 'Jokulhaups', 'Murderous Redcap', 'Wrench Mind', 'Turnabout', 'Needle Spires', 'Secluded Steppe', 'Breya''s Apprentice', 'Evolving Wilds', 'Pain Seer', 'Mystical Teachings', 'Curse of Exhaustion', 'General''s Enforcer', 'Utter End', 'Abundant Growth', 'Dakkon, Shadow Slayer', 'Worship', 'Fabricate', 'Bogbrew Witch', 'Mishra''s Factory'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.8 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Madcap Experiment', 'Gideon''s Intervention', 'Bubbling Cauldron', 'Mirage Mirror', 'Wooded Bastion', 'Circular Logic', 'Skirk Prospector', 'Forbidden Alchemy', 'Sunblade Samurai', 'Corpse Cur', 'Open the Gates', 'Gadrak, the Crown-Scourge', 'Wall of Omens', 'Stoic Rebuttal', 'Bident of Thassa', 'Malcator, Purity Overseer', 'Giant Killer', 'Epic Experiment', 'Kami of the Crescent Moon', 'Mistvault Bridge', 'Mystical Teachings', 'Slagstorm', 'Into the Roil', 'Dakmor Salvage', 'Nephalia Drownyard', 'Sultai Charm', 'Consume the Meek', 'Silumgar''s Scorn', 'Dread Return', 'Oona''s Prowler', 'Concealing Curtains', 'Ichorclaw Myr', 'Guile', 'Defiant Strike', 'Dark Prophecy', 'Search for Azcanta', 'Oath of Teferi', 'Baneful Omen', 'Narcomoeba', 'Thraben Inspector', 'Mulldrifter', 'Sever the Bloodline', 'Grand Architect', 'Altar of the Brood', 'Evangel of Synthesis', 'Terminus', 'Ravenous Squirrel', 'Dregscape Zombie', 'The Underworld Cookbook', 'Tooth and Nail', 'Vapor Snag', 'Vigor', 'Approach of the Second Sun', 'Hope of Ghirapur', 'Inevitable Betrayal', 'Faith''s Reward', 'Graven Lore', 'Chandra, Fire Artisan', 'Chandra, Pyromaster', 'Rune Snag', 'Tribute to Hunger', 'Isolated Chapel', 'Vampire Nighthawk', 'Knowledge Pool', 'Midnight Reaper', 'Whispersilk Cloak', 'Wild Cantor', 'Vivid Grove', 'Anoint with Affliction', 'Gather the Pack', 'Hornet Queen', 'Ardent Recruit', 'Invasion of Azgol', 'Witching Well', 'Mesmeric Fiend', 'Endbringer', 'Mind''s Desire', 'Hero''s Downfall', 'Nimble Larcenist', 'Putrefy', 'Siege Rhino', 'King Darien XLVIII', 'Acquisitions Expert', 'Fabricate', 'Utter End', 'Scrabbling Claws', 'Hour of Promise', 'Mindslaver', 'Doomed Traveler', 'Lead the Stampede', 'Opulent Palace', 'Kitchen Finks', 'Staff of Domination', 'Monument to Perfection', 'Seal of Fire', 'Check for Traps', 'Gideon Jura', 'World Shaper', 'Fire Prophecy', 'Orim''s Chant', 'Eiganjo Castle', 'Vivid Marsh', 'Cut Down', 'Wood Elves', 'Settle the Wreckage', 'Graveborn Muse', 'Fevered Visions', 'Akiri, Fearless Voyager', 'Ranger of Eos', 'Tidespout Tyrant', 'Resurgent Belief', 'Elemental Masterpiece', 'Satyr Wayfinder', 'Genesis Wave', 'Darksteel Citadel', 'Gaea''s Will', 'Ral, Izzet Viceroy', 'Rakdos Guildgate', 'Delay', 'Genesis Ultimatum', 'Rampant Growth', 'Racers'' Ring', 'Ishkanah, Grafwidow', 'Heliod''s Pilgrim', 'Nullpriest of Oblivion', 'Ammit Eternal', 'Ornithopter', 'Gateway Plaza', 'Thawing Glaciers', 'Cabal Ritual', 'Morsel Theft', 'Archangel Avacyn', 'Benevolent Bodyguard', 'Viscera Seer', 'Armored Scrapgorger', 'Squadron Hawk', 'Ensoul Artifact', 'Ashen Rider', 'Grave Scrabbler', 'Kessig Wolf Run', 'Ovika, Enigma Goliath', 'Judge''s Familiar', 'Wizard''s Retort', 'Shivan Reef', 'Grand Arbiter Augustin IV', 'Black Sun''s Zenith', 'Helm of the Host', 'Kitesail Freebooter', 'Abiding Grace', 'Aetherblade Agent', 'Cremate', 'Folio of Fancies', 'Rust Goliath', 'Rotting Rats', 'Thragtusk', 'Might of Old Krosa', 'Mindcrank', 'Vedalken Heretic', 'Spikefield Hazard', 'Prohibit', 'Anafenza, Kin-Tree Spirit', 'Izzet Charm', 'Ashnod, Flesh Mechanist', 'Scour All Possibilities', 'Sins of the Past', 'Llanowar Mentor', 'Tocatli Honor Guard', 'Argentum Armor', 'Increasing Ambition', 'Forked Bolt', 'Gutterbones', 'Pieces of the Puzzle', 'Orzhov Charm', 'Price of Progress', 'Inscription of Ruin', 'Basking Rootwalla', 'Evacuation', 'Precursor Golem', 'Unmarked Grave', 'Game Trail', 'Karn''s Bastion', 'Platinum Angel', 'Yawgmoth''s Bargain', 'Blanchwood Prowler', 'Golgari Rot Farm', 'Elvish Archdruid', 'Ebony Owl Netsuke', 'Burst Lightning', 'Self-Assembler', 'Raise the Alarm', 'Okina, Temple to the Grandfathers', 'Moderation', 'Odds // Ends', 'Kruphix''s Insight', 'Kemba, Kha Regent', 'Shambling Vent', 'Sylvan Scrying', 'Vraska, Relic Seeker', 'Dead of Winter', 'Rise // Fall', 'Nomad Outpost', 'Arcbound Ravager', 'Crawling Chorus', 'Sunstrike Legionnaire', 'See Beyond', 'Timely Reinforcements', 'Ancient Ziggurat', 'Archaeomancer', 'Woodland Cemetery', 'Stern Dismissal', 'Molten Tributary', 'Wolfbriar Elemental', 'Ruin Crab', 'Forbid', 'Seal of Removal', 'Jokulhaups', 'Invigorate', 'Varolz, the Scar-Striped', 'Tresserhorn Sinks', 'Sweltering Suns', 'Frontier Bivouac', 'Silverblade Paladin', 'Pillage', 'Skyclave Shade', 'Deep Analysis', 'Elite Inquisitor', 'Xenagos, the Reveler', 'Hyena Umbra', 'Sea-Dasher Octopus', 'Experimental Synthesizer', 'Alms of the Vein', 'Stone Haven Outfitter', 'Frost Marsh', 'Strike It Rich', 'Goblin Dark-Dwellers', 'Geomancer''s Gambit', 'Frenetic Sliver', 'Ignite Memories', 'Commit // Memory', 'Devil''s Play', 'Silver-Fur Master', 'Zuran Orb', 'Meeting of Minds', 'Founding the Third Path', 'Sleight of Hand', 'Devious Cover-Up', 'Commune with Nature', 'Festering Newt', 'Cabal Therapist', 'Tomebound Lich', 'Din of the Fireherd', 'Voyaging Satyr', 'Heap Doll', 'Demigod of Revenge', 'Grenzo, Dungeon Warden', 'Kami of False Hope', 'Chamber Sentry', 'Bituminous Blast', 'Steel Overseer', 'Breya''s Apprentice', 'Tanglepool Bridge', 'Commence the Endgame', 'Incinerate', 'Bone Shards', 'Summer Bloom', 'Glimpse of Tomorrow', 'Surge of Salvation', 'Kaya, Ghost Assassin', 'Worship', 'Scrapwork Mutt', 'Lazotep Chancellor', 'Perilous Myr', 'Wayward Guide-Beast', 'Kor Skyfisher', 'Spellweaver Helix', 'Sphere of Safety', 'Heartless Act', 'Deprive', 'All That Glitters', 'Ivy Lane Denizen', 'Colossal Skyturtle', 'Karumonix, the Rat King', 'Disciple of Bolas', 'Invasion of New Capenna', 'Mazemind Tome', 'Pyretic Ritual', 'Brave the Elements', 'Negate', 'Lavinia of the Tenth', 'Gruul Guildgate', 'Psychatog', 'Port Town', 'Blood Artist', 'Kalastria Healer', 'Venser, Corpse Puppet', 'Ossification', 'Unlucky Witness', 'Primal Command', 'Shardless Agent', 'The Flame of Keld', 'Battle of Frost and Fire', 'Arcane Sanctum', 'Glorybringer', 'Verduran Enchantress', 'Izzet Guildgate', 'Angel of Serenity', 'Secluded Steppe', 'Barbarian Ring', 'Snow-Covered Mountain', 'Knight of Glory', 'Expedite', 'Champion of Wits', 'Makeshift Mannequin', 'Return to the Ranks', 'Kher Keep', 'Frostwalk Bastion', 'Moorland Haunt', 'Crystal Grotto', 'Elderscale Wurm', 'Merciless Eviction', 'Gruul Turf', 'Mwonvuli Acid-Moss', 'Runed Halo', 'Felidar Cub', 'Restoration Angel', 'Tuktuk the Explorer', 'True Believer', 'Izzet Boilerworks', 'Archpriest of Shadows', 'Grolnok, the Omnivore', 'Sylvan Messenger', 'Terramorphic Expanse', 'Bloodline Keeper', 'Prophetic Prism', 'Frost Titan', 'Smallpox', 'Shred Memory', 'Sin Prodder', 'Silundi Vision', 'Plated Geopede', 'Rift Bolt', 'Jace Beleren', 'Quest for the Holy Relic', 'Throat Slitter', 'Vadrik, Astral Archmage', 'Oracle of Mul Daya', 'Viashino Pyromancer', 'Nimble Obstructionist', 'Sinew Sliver', 'Acidic Slime', 'Dauntless Bodyguard', 'Riveteers Charm', 'Of One Mind', 'Gloomshrieker', 'Territorial Kavu', 'Vampiric Rites', 'Birds of Paradise', 'Mastermind''s Acquisition', 'Marble Diamond', 'Goldmeadow Harrier', 'Lodestone Golem', 'Hesitation', 'Priest of the Haunted Edge', 'Ivory Tower', 'Tezzeret''s Gambit', 'Into the Story', 'Glacial Fortress', 'Mishra''s Factory', 'Dimensional Infiltrator', 'Leonin Relic-Warder', 'Corrupted Conviction', 'Assemble the Legion', 'Herd Migration', 'Phalanx Leader', 'Dawn of Hope', 'Choked Estuary', 'Counterflux', 'Thaumatic Compass', 'Phantasmal Image', 'Myr Battlesphere', 'Fetid Pools', 'Vault of the Archangel', 'Cartel Aristocrat', 'Frantic Inventory', 'Woe Strider', 'Swooping Lookout', 'Groundswell', 'Purify the Grave', 'Quiet Speculation', 'Bilious Skulldweller', 'Tangled Islet', 'Quicken', 'Arcum''s Astrolabe', 'Spatial Contortion', 'The Mending of Dominaria', 'Surrak, the Hunt Caller', 'Tezzeret the Schemer', 'Eerie Ultimatum', 'Combat Thresher', 'White Sun''s Zenith', 'Tainted Indulgence', 'Brineborn Cutthroat', 'Shimmerdrift Vale', 'Mouth of Ronom', 'Dragon''s Hoard', 'Carven Caryatid', 'Greater Gargadon', 'Mistvein Borderpost', 'Boomerang', 'Hieroglyphic Illumination', 'Commune with the Gods', 'Temple of Mystery', 'Flametongue Kavu', 'Dragonskull Summit', 'Nezumi Graverobber', 'Sculpted Perfection', 'Cathartic Reunion', 'Silent Gravestone', 'Gilt-Leaf Archdruid', 'Nightscape Familiar', 'Timeless Witness', 'Demonic Dread', 'Dross Skullbomb', 'Luminarch Ascension', 'Kazandu Blademaster', 'Fatestitcher', 'Glint-Sleeve Siphoner', 'Tymaret, Chosen from Death', 'Apostle''s Blessing', 'Teneb, the Harvester', 'Phoenix Chick', 'Out of Time', 'Stir the Grave', 'Battlefield Forge', 'Demolition Field', 'Temple of Silence', 'Shape Anew', 'Arch of Orazca', 'Cleansing Wildfire', 'Ground Seal', 'Supreme Will', 'Sign in Blood', 'Empyrial Plate', 'Slogurk, the Overslime', 'Hissing Quagmire', 'Tendo Ice Bridge', 'Mulch', 'Marit Lage''s Slumber', 'Nimbus Maze', 'Nether Spirit', 'Sulfur Falls', 'Stinkweed Imp', 'Phyrexian Censor', 'Destiny Spinner', 'Gleeful Demolition', 'Elas il-Kor, Sadistic Pilgrim', 'Aether Spellbomb', 'Wildborn Preserver', 'Duress', 'Veinfire Borderpost', 'Ransack the Lab', 'Dispatch', 'Zephyr Singer', 'Sunlit Marsh', 'Aegis of the Gods', 'Smother', 'Arbor Elf', 'Turnabout', 'Avacyn''s Pilgrim', 'Banishing Slash', 'Gigadrowse', 'Chief of the Foundry', 'Sinister Concoction', 'Shimmer Dragon', 'Zur''s Weirding', 'Pyrite Spellbomb', 'Etherium Sculptor', 'Stromkirk Noble', 'Reckless Charge', 'Prosperous Thief', 'Rally the Ranks', 'Faerie Vandal', 'Nekrataal', 'Boros Elite', 'Radha, Heart of Keld', 'Fiery Justice', 'Stubborn Denial', 'Boon-Bringer Valkyrie', 'Terminate', 'Rally the Peasants', 'Lotus Cobra', 'Yasharn, Implacable Earth', 'Harmonize', 'Corrupted Crossroads', 'Oni-Cult Anvil', 'Thopter Mechanic', 'The Scorpion God', 'Obscura Charm', 'Stone Rain', 'Valiant Changeling', 'Recruitment Officer', 'Elvish Visionary', 'Marwyn, the Nurturer', 'Myth Realized', 'Jwari Disruption', 'Myr Superion', 'Oona''s Grace', 'Experimental Augury', 'Unbreakable Formation', 'Melira, the Living Cure', 'Embodiment of Fury', 'Barbed Sextant', 'Leonin Warleader', 'Halimar Excavator', 'Briarbridge Tracker', 'Drainpipe Vermin', 'Servo Exhibition', 'Thrash // Threat', 'Westvale Abbey', 'Razortide Bridge', 'Ethereal Armor', 'Lantern-Lit Graveyard', 'Agonizing Remorse', 'Ogre Slumlord', 'Seeker of the Way', 'Bloodvial Purveyor', 'Mystic Monastery', 'Archangel of Wrath', 'Teshar, Ancestor''s Apostle', 'Kjeldoran Outpost', 'Yavimaya Coast', 'Simian Spirit Guide', 'Nezahal, Primal Tide', 'Weapons Trainer', 'Unholy Heat', 'Empyrial Armor', 'Silversmote Ghoul', 'Canopy Vista', 'Thornwood Falls', 'Ghitu Lavarunner', 'Marauding Blight-Priest', 'Seedcradle Witch', 'Wilt', 'Bloodsoaked Champion', 'Summary Dismissal', 'Abundant Harvest', 'Lochmere Serpent', 'Vessel of Nascency', 'Slaughter Pact', 'Farseek', 'Big Game Hunter', 'Jace, Architect of Thought', 'Woodfall Primus', 'Valakut Exploration', 'Blessed Alliance', 'Fireblade Charger', 'Krosan Grip', 'Fyndhorn Elves', 'Impulse', 'Arguel''s Blood Fast', 'Icehide Golem', 'Crux of Fate', 'Kozilek''s Predator', 'Duneblast', 'Bring the Ending', 'Norn''s Inquisitor', 'Soltari Priest', 'Dead Weight', 'Blue Sun''s Zenith', 'Fangren Marauder', 'Buried Ruin', 'Syphon Life', 'Canyon Slough', 'Solitary Confinement', 'Temple of Deceit', 'Thrill of Possibility', 'Nevermore', 'Fae of Wishes', 'Cauldron Familiar', 'Talisman of Unity', 'Bump in the Night', 'Big Score', 'Maelstrom Pulse', 'Kemba, Kha Enduring', 'Putrid Imp', 'Spectral Procession', 'Scrapheap Scrounger', 'Council''s Judgment', 'Joint Exploration', 'Temple of Plenty', 'Faerie Miscreant', 'Ezuri, Renegade Leader', 'Golgari Guildgate', 'Garruk Wildspeaker', 'Ghostfire Blade', 'Invisible Stalker', 'Altered Ego', 'Tribute to Horobi', 'Lavaclaw Reaches', 'Elspeth Conquers Death', 'Mortuary Mire', 'Pariah', 'Knight of New Alara', 'Electrolyze', 'Grand Abolisher', 'Lagrella, the Magpie', 'Sarkhan the Masterless', 'Ulamog''s Crusher', 'Dark Petition', 'Radiant Grove', 'Blight Mamba', 'Postmortem Lunge', 'Go for the Throat', 'Call to the Grave', 'Spectral Shift', 'Feed the Swarm', 'Drowned Rusalka', 'Tyrant''s Choice', 'Pillar of the Paruns', 'Vexing Shusher', 'Farhaven Elf', 'Angel of Condemnation', 'Expedition Envoy', 'Howling Mine', 'Soldier of the Pantheon', 'Falkenrath Pit Fighter', 'Restore Balance', 'Abundant Growth', 'Bastion of Remembrance', 'Rustvale Bridge', 'Presence of Gond', 'Serra Ascendant', 'Raze to the Ground', 'Hall of Oracles', 'Disallow', 'Gnawing Vermin', 'Second Sunrise', 'Herald of the Pantheon', 'Precinct Captain', 'Mesa Enchantress', 'Death Cloud', 'Oath of Kaya', 'Smoldering Marsh', 'Blazing Rootwalla', 'Rain of Tears', 'Dimir Guildgate', 'Floriferous Vinewall', 'Talisman of Curiosity', 'Lizard Blades', 'Tangle', 'Commune with Spirits', 'Caves of Koilos', 'Boreal Shelf', 'Curse of Exhaustion', 'Nimble Trapfinder', 'Gather the Townsfolk', 'Brain Freeze', 'Froghemoth', 'Curious Homunculus', 'Goldmire Bridge', 'Divinity of Pride', 'Honor of the Pure', 'Ajani, Adversary of Tyrants', 'Magister of Worth', 'Fruit of Tizerus', 'Sunken Hollow', 'Tribal Flames', 'The Antiquities War', 'Ghostly Pilferer', 'Kogla, the Titan Ape', 'Saffi Eriksdotter', 'Fleecemane Lion', 'Vraska''s Contempt', 'Trace of Abundance', 'Jungle Shrine', 'Mishra''s Research Desk', 'Resolute Reinforcements', 'Grave Titan', 'Sea Gate Oracle', 'Glamerdye', 'Sheoldred''s Edict', 'Murmuring Bosk', 'Botanical Plaza', 'Tilling Treefolk', 'Raffine''s Informant', 'General''s Enforcer', 'Figure of Destiny', 'Think Twice', 'Thundermaw Hellkite', 'Terastodon', 'Distorted Curiosity', 'Angel of Grace', 'Tranquil Thicket', 'Dreams of Steel and Oil', 'Pore Over the Pages', 'Overgrowth', 'Yorion, Sky Nomad', 'Aetherling', 'Porphyry Nodes', 'Enchantress''s Presence', 'Battle of Wits', 'Annex Sentry', 'Gavony Township', 'Rakdos Charm', 'Jungle Hollow', 'Yisan, the Wanderer Bard', 'Gitaxian Probe', 'Xerex Strobe-Knight', 'Llanowar Augur', 'Chandra, Flamecaller', 'Executioner''s Capsule', 'Liliana Vess', 'Thornglint Bridge', 'Graaz, Unstoppable Juggernaut', 'Explore', 'Dark Ritual', 'Simian Sling', 'Mnemonic Sphere', 'Sarkhan, the Dragonspeaker', 'Hanweir Garrison', 'Otherworldly Journey', 'Ephara, God of the Polis', 'Peek', 'Divest', 'Obstinate Baloth', 'Pull from Tomorrow', 'Mistblade Shinobi', 'Celestial Colonnade', 'Sin Collector', 'Venerated Loxodon', 'Hypergenesis', 'Drowned Catacomb', 'Pack Rat', 'Master of Etherium', 'Invasion of Amonkhet', 'Deep Forest Hermit', 'Blade Splicer', 'Wrath of God', 'Disrupting Shoal', 'Caldera Hellion', 'Seething Song', 'Zombie Infestation', 'Slagwoods Bridge', 'Galvanic Relay', 'Combat Research', 'Voltage Surge', 'Timeless Dragon', 'Rites of Spring', 'Call of the Death-Dweller', 'Godo, Bandit Warlord', 'Misery Charm', 'Memoricide', 'Cataclysmic Gearhulk', 'Bloodchief''s Thirst', 'Snow-Covered Swamp', 'Change the Equation', 'Drake Haven', 'Fade from Memory', 'Day of Judgment', 'Hinterland Harbor', 'Mausoleum Secrets', 'Sacred Peaks', 'Obliterate', 'Energy Refractor', 'Tidehollow Sculler', 'Gruul Spellbreaker', 'Search for Tomorrow', 'Elvish Mystic', 'Eternal Scourge', 'Unsubstantiate', 'Jukai Naturalist', 'Urban Evolution', 'Huatli, Radiant Champion', 'Time of Need', 'Fertile Ground', 'Burning of Xinye', 'Network Disruptor', 'Boros Guildgate', 'Angel of Despair', 'Nature''s Lore', 'Frantic Search', 'Castigate', 'Halo Forager', 'Blood on the Snow', 'Bloodthrone Vampire', 'Augur of Bolas', 'Twinshot Sniper', 'Drown in Ichor', 'Skyshroud Elf', 'Elvish Rejuvenator', 'Riveteers Overlook', 'Ayara, First of Locthwain', 'Dream Trawler', 'Jwari Shapeshifter', 'Grove of the Guardian', 'Shigeki, Jukai Visionary', 'Disenchant', 'Bogardan Hellkite', 'Pardic Miner', 'Tendrils of Agony', 'Earthquake', 'Polukranos, World Eater', 'Geyadrone Dihada', 'Venser, Shaper Savant', 'Martyr of Sands', 'Darksteel Colossus', 'Dead // Gone', 'Erebos''s Intervention', 'Grim Haruspex', 'Heliod''s Intervention', 'Drossforge Bridge', 'Condemn', 'Sculpting Steel', 'Solemnity', 'Mirror Entity', 'Leonin Arbiter', 'Arbalest Engineers', 'Voidwing Hybrid', 'Ruric Thar, the Unbowed', 'Mina and Denn, Wildborn', 'Unburial Rites', 'Phyrexian Dreadnought', 'Dreadhorde Butcher', 'Inscribed Tablet', 'Melira, Sylvok Outcast', 'Sheltered Thicket', 'Skymarcher Aspirant', 'Voidslime', 'Rootbound Crag', 'Abyssal Persecutor', 'Memory Lapse', 'Fierce Empath', 'Curiosity', 'Anguished Unmaking', 'Decree of Justice', 'Leonin Lightscribe', 'Toolcraft Exemplar', 'Shrapnel Blast', 'Whir of Invention', 'Mistcutter Hydra', 'Rakdos Cackler', 'Fumigate', 'Dire-Strain Rampage', 'Leather Armor', 'Vampire Lacerator', 'Felidar Retreat', 'Simic Guildgate', 'Sigil of the Empty Throne', 'Secluded Courtyard', 'Dryad Militant', 'Lost Legacy', 'Repeal', 'Azorius Guildgate', 'Gift of Immortality', 'Swiftfoot Boots', 'Reflector Mage', 'Predatory Sliver', 'Kaito, Dancing Shadow', 'Lightning Strike', 'Serrated Scorpion', 'Soul Warden', 'Graven Cairns', 'Recurring Nightmare', 'Archon of Sun''s Grace', 'Doom Blade', 'Bloodchief Ascension', 'Sylvan Advocate', 'Upheaval', 'Remorseful Cleric', 'Murderous Redcap', 'Cloudshredder Sliver', 'Yavimaya Iconoclast', 'Wonder', 'Contaminated Aquifer', 'Ayli, Eternal Pilgrim', 'Ramunap Excavator', 'Obscura Storefront', 'Bloodbraid Elf', 'Haunted Dead', 'Sylvan Caryatid', 'Firewild Borderpost', 'Locket of Yesterdays', 'Doomskar', 'Sunpetal Grove', 'Faeburrow Elder', 'Seal of Cleansing', 'Desperate Ritual', 'Vampire Neonate', 'Touch the Spirit Realm', 'Carnophage', 'Universal Automaton', 'Open the Armory', 'Invasion of Zendikar', 'Protect the Negotiators', 'Malicious Malfunction', 'Saproling Migration', 'Crawling Barrens', 'Nameless Inversion', 'Patchwork Automaton', 'Ancient Stirrings', 'Invoke Calamity', 'Sorin, Vengeful Bloodlord', 'Notorious Throng', 'Kappa Tech-Wrecker', 'Kitchen Imp', 'Raven''s Crime', 'Languish', 'Llanowar Tribe', 'Brave the Sands', 'Yahenni''s Expertise', 'Genesis Hydra', 'Vault Skirge', 'Collected Conjuring', 'Deafening Clarion', 'Greater Tanuki', 'Thopter Spy Network', 'Snow-Covered Plains', 'Emmara, Soul of the Accord', 'Kumano Faces Kakkazan', 'Knight of the White Orchid', 'Rocco, Cabaretti Caterer', 'Reckless Rage', 'Erebos, Bleak-Hearted', 'Eidolon of Blossoms', 'Dimir Aqueduct', 'Runeflare Trap', 'Ertai''s Scorn', 'Crack the Earth', 'Lingering Souls', 'Kiora Bests the Sea God', 'Tear Asunder', 'Rishkar, Peema Renegade', 'Elves of Deep Shadow', 'Oblivion Ring', 'Knight of the Reliquary', 'Orcish Lumberjack', 'Adanto Vanguard', 'Squee, Goblin Nabob', 'Idyllic Beachfront', 'Eldrazi Skyspawner', 'Orzhov Basilica', 'Thassa''s Intervention', 'Nissa, Steward of Elements', 'Dovin''s Acuity', 'Unctus, Grand Metatect', 'Satyr Hoplite', 'Chain Lightning', 'Psychic Possession', 'Gnat Miser', 'Cultivate', 'Haunted Fengraf', 'Reveillark', 'War Falcon', 'Vines of Vastwood', 'Draugr Necromancer', 'Chief Engineer', 'Pyroclasm', 'Bubbling Muck', 'Coiling Oracle', 'Silverbluff Bridge', 'Blightbelly Rat', 'Dusk // Dawn', 'Fearless Fledgling', 'Glistener Elf', 'Steppe Lynx', 'Wrenn''s Resolve', 'Argentum Masticore', 'Jor Kadeen, First Goldwarden', 'Progenitor Exarch', 'Hooting Mandrills', 'Scab-Clan Berserker', 'Tocasia''s Dig Site', 'Laboratory Maniac', 'General Ferrous Rokiric', 'Hada Freeblade', 'Terrarion', 'Maze''s End', 'Altar of the Goyf', 'Gallia of the Endless Dance', 'Llanowar Elves', 'Succumb to Temptation', 'Fight as One', 'Seismic Assault', 'Kefnet the Mindful', 'Wildfield Borderpost', 'Scarab Feast', 'Triumphant Adventurer', 'Invasion of Regatha', 'Wandering Fumarole', 'Mikokoro, Center of the Sea', 'Cathedral of War', 'Vivid Crag', 'Ally Encampment', 'Pharika''s Cure', 'Forgotten Cave', 'Rise and Shine', 'Kabira Takedown', 'Rix Maadi Reveler', 'Sandwurm Convergence', 'Halana and Alena, Partners', 'Smuggler''s Copter', 'Treasure Cruise', 'Favored Hoplite', 'Titania, Protector of Argoth', 'Flame Rift', 'Night Market Lookout', 'Goblin Electromancer', 'Winds of Abandon', 'Grafted Butcher', 'Needle Spires', 'Ral, Storm Conduit', 'Lurrus of the Dream-Den', 'Wrench Mind', 'Sigrid, God-Favored', 'Exclude', 'Cliffside Lookout', 'Scuttling Doom Engine', 'Prologue to Phyresis', 'Herd Baloth', 'Volt Charge', 'Kor Firewalker', 'Careful Cultivation', 'Anafenza, the Foremost', 'Duplicant', 'Rakdos''s Return', 'Consult the Necrosages', 'Rule of Law', 'Tolarian Terror', 'Dokuchi Silencer', 'Hypnotic Specter', 'Shalai, Voice of Plenty', 'Consuming Vapors', 'Scattered Groves', 'Night of Souls'' Betrayal', 'Vraan, Executioner Thane', 'Fracturing Gust', 'Selesnya Guildgate', 'Ambush Viper', 'Ethersworn Sphinx', 'Vryn Wingmare', 'Lose Focus', 'Brokers Hideout', 'Reinforced Ronin', 'Esper Charm', 'Gird for Battle', 'Bogbrew Witch', 'Solemn Simulacrum', 'Ghost Quarter', 'Mana Leak', 'High-Speed Hoverbike', 'Pain Seer', 'Elixir of Immortality', 'Dakkon, Shadow Slayer', 'Rally the Ancestors', 'Vindicate', 'Third Path Iconoclast', 'Shizo, Death''s Storehouse', 'Mistveil Plains', 'Raging Ravine', 'Nested Shambler', 'Malakir Rebirth', 'Temple of Enlightenment', 'Delver of Secrets', 'Vraska''s Fall', 'Circuit Mender', 'Repudiate // Replicate', 'Hideous End', 'Tamiyo, Collector of Tales', 'Azorius Charm', 'Mothdust Changeling', 'Silumgar, the Drifting Death', 'Invasion of Kaladesh', 'Evolving Wilds', 'Mirran Crusader', 'Assault // Battery', 'Sterling Grove', 'Far // Away', 'Revitalize', 'Torens, Fist of the Angels', 'Spell Pierce', 'Bolas''s Citadel', 'Diabolic Tutor', 'Destroy Evil', 'Cabaretti Courtyard', 'Basilisk Collar', 'Dread Wanderer', 'Inkwell Leviathan', 'Bontu''s Last Reckoning', 'Reckoner''s Bargain', 'Barter in Blood', 'The Seedcore', 'Flaying Tendrils', 'Steel Leaf Champion', 'Ghostly Flicker', 'Changeling Outcast', 'Discovery // Dispersal', 'Scrying Sheets', 'Fact or Fiction', 'Forging the Anchor', 'Ponder', 'Sandsteppe Citadel', 'Shard Volley', 'Wanderwine Hub', 'Moon-Circuit Hacker', 'Kambal, Consul of Allocation', 'Master of Death', 'Dying to Serve', 'Flooded Grove', 'Phyrexian Revoker', 'Dismal Backwater', 'Mindsplice Apparatus', 'Rabbit Battery', 'Stasis Snare', 'Ashenmoor Liege', 'Angrath, the Flame-Chained', 'Waking the Trolls', 'Throne of the God-Pharaoh', 'Metalwork Colossus', 'Murderous Cut', 'Tezzeret, Artifice Master', 'Gravelgill Duo', 'Spirited Companion', 'Galerider Sliver', 'Dissipate', 'Diffusion Sliver', 'Ulvenwald Hydra', 'Sphinx''s Herald', 'Kiora, the Crashing Wave', 'Wasteland Strangler', 'Sudden Edict', 'Late to Dinner', 'Loxodon Smiter', 'Koth, Fire of Resistance', 'Auriok Sunchaser', 'Control Magic', 'Ancestral Blade', 'Obzedat, Ghost Council', 'Stinkdrinker Bandit', 'Forsake the Worldly', 'Aetherspouts', 'Oracle of Tragedy', 'Akoum Hellhound', 'Sol Talisman', 'Stoke the Flames', 'Goblin Bombardment', 'The Celestus', 'Cabal Initiate', 'Cloudpost', 'Sire of Insanity', 'Glimmerpost', 'Spell Burst', 'Idyllic Tutor', 'Kunoros, Hound of Athreos', 'Haunted Mire', 'Pharika''s Libation', 'Exhaustion', 'Abzan Charm', 'Fiery Temper', 'Midnight Guard', 'Become Immense', 'Healer''s Hawk', 'Demonic Bargain', 'Gift of Estates', 'Ajani, Mentor of Heroes', 'Elvish Clancaller', 'Stupor', 'Declaration in Stone', 'Ulcerate', 'Springleaf Drum', 'Brainstone', 'Blightning', 'Ancient Amphitheater', 'Drowner of Hope', 'Voldaren Pariah', 'Judith, the Scourge Diva', 'Geothermal Bog', 'Gideon''s Lawkeeper', 'Temple of Abandon', 'Union of the Third Path', 'Lay Down Arms', 'Temple of Malady', 'Fieldmist Borderpost', 'Venser, the Sojourner', 'Akroan Crusader', 'Hostage Taker', 'Eldrazi Displacer', 'Phyrexian Unlife', 'Shriekmaw', 'Victim of Night', 'Cryptic Caves', 'Anger of the Gods', 'Nine Lives', 'Oona, Queen of the Fae', 'Green Sun''s Twilight', 'Temple of Triumph', 'Teferi, Mage of Zhalfir', 'Artisan of Kozilek', 'Arlinn Kord', 'Nissa, Worldwaker', 'Maestros Charm', 'Clifftop Retreat', 'Fetid Heath', 'Dark-Dweller Oracle', 'Detention Sphere', 'Empty the Warrens', 'Vampire Hexmage', 'River of Tears', 'Sprite Dragon', 'Rites of Initiation', 'Hard Evidence', 'Possibility Storm', 'Artistic Refusal', 'Necrogen Spellbomb', 'Weathered Wayfarer', 'Lightning Spear', 'Fallaji Archaeologist', 'Engulf the Shore', 'Tectonic Edge', 'Chittering Rats', 'Bitter Reunion', 'Consul''s Lieutenant', 'Sylvan Library', 'Tempest Djinn', 'Chaotic Transformation', 'Oust', 'Orzhov Guildgate', 'Stirring Wildwood', 'Invasion of Ergamon'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.8, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Glimmerpost', 'Elite Inquisitor', 'Think Twice', 'Zur''s Weirding', 'Llanowar Augur', 'Obscura Charm', 'Empty the Warrens', 'Fiery Temper', 'Magister Sphinx', 'Gavony Township', 'Golgari Rot Farm', 'Invigorate', 'Dregscape Zombie', 'Simian Spirit Guide', 'Blood Artist', 'Ethereal Armor', 'Ogre Slumlord', 'Kiora Bests the Sea God', 'Game Trail', 'Curious Homunculus', 'Night of Souls'' Betrayal', 'Wilt', 'Venser, the Sojourner', 'Ishkanah, Grafwidow', 'Gravelgill Duo', 'Exclude', 'Wasteland Strangler', 'Caldera Hellion', 'Restore Balance', 'Leather Armor', 'Feed the Swarm', 'Ajani, Mentor of Heroes', 'Jace Beleren', 'Grafted Butcher', 'Rootbound Crag', 'Geyadrone Dihada', 'Gift of Immortality', 'Unlucky Witness', 'Arcane Sanctum', 'Green Sun''s Twilight', 'Fallaji Archaeologist', 'Seedcradle Witch', 'Eldrazi Skyspawner', 'Maze''s End', 'Founding the Third Path', 'Hope of Ghirapur', 'Delver of Secrets', 'Knight of Glory', 'Barbarian Ring', 'Stubborn Denial', 'Leonin Relic-Warder', 'Prophetic Prism', 'Mikokoro, Center of the Sea', 'Vedalken Heretic', 'Presence of Gond', 'Big Game Hunter', 'Black Sun''s Zenith', 'Azorius Guildgate', 'Brain Freeze', 'Invasion of New Capenna', 'Viashino Pyromancer', 'Kessig Wolf Run', 'Deprive', 'Stinkweed Imp', 'Temple of Triumph', 'Pharika''s Libation', 'Vadrik, Astral Archmage', 'Tilling Treefolk', 'Riveteers Charm', 'Ruric Thar, the Unbowed', 'Argentum Masticore', 'Enchantress''s Presence', 'Plated Geopede', 'Murmuring Bosk', 'Thundermaw Hellkite', 'Call to the Grave', 'Hero''s Downfall', 'Wildfield Borderpost', 'Brineborn Cutthroat', 'Battle of Wits', 'Decree of Justice', 'Unctus, Grand Metatect', 'Boon-Bringer Valkyrie', 'Thaumatic Compass', 'Kemba, Kha Regent', 'Karumonix, the Rat King', 'Bubbling Muck', 'Myth Realized', 'Succumb to Temptation', 'Council''s Judgment', 'Nullpriest of Oblivion', 'Folio of Fancies', 'Spell Burst', 'Nezumi Graverobber', 'Blood on the Snow', 'Pyrite Spellbomb', 'Flooded Grove', 'Ambush Viper', 'Condemn', 'Westvale Abbey', 'Putrid Imp', 'Rule of Law', 'Vindicate', 'Vampire Neonate', 'The Mending of Dominaria', 'Reckless Rage', 'Farhaven Elf', 'Jwari Shapeshifter', 'Ghost Quarter', 'Ammit Eternal', 'Sculpting Steel', 'Fieldmist Borderpost', 'Gnawing Vermin', 'Exhaustion', 'Opulent Palace', 'Unmarked Grave', 'Honor of the Pure', 'Laboratory Maniac', 'Shivan Reef', 'Prologue to Phyresis', 'Postmortem Lunge', 'Seeker of the Way', 'Reveillark', 'All That Glitters', 'Spectral Shift', 'Gallia of the Endless Dance', 'Skyclave Shade', 'Dread Return', 'Quiet Speculation', 'Solemnity', 'Time of Need', 'Wolfbriar Elemental', 'Cloudshredder Sliver', 'Flametongue Kavu', 'Bloodline Keeper', 'Nested Shambler', 'Angel of Condemnation', 'Winds of Abandon', 'Tectonic Edge', 'Satyr Hoplite', 'Dead // Gone', 'Shred Memory', 'Elixir of Immortality', 'Tribute to Hunger', 'Bogbrew Witch', 'Sandsteppe Citadel', 'Rootwater Depths', 'Surge of Salvation', 'Yawgmoth''s Bargain', 'Servo Exhibition', 'Territorial Kavu', 'Demonic Dread', 'Tolarian Terror', 'Armored Scrapgorger', 'Madcap Experiment', 'Azorius Charm', 'Nameless Inversion', 'Mistblade Shinobi', 'Apostle''s Blessing', 'Bitter Ordeal', 'Big Score', 'Hanweir Garrison', 'Cathedral of War', 'Tuktuk the Explorer', 'Primal Command', 'Arch of Orazca', 'Expedition Envoy', 'Ghostly Flicker', 'Crawling Chorus', 'Orcish Lumberjack', 'Bring the Ending', 'Woe Strider', 'Galvanic Relay', 'Nevermore', 'Shimmer Dragon', 'Chandra, Flamecaller', 'Dusk // Dawn', 'Rakdos''s Return', 'Abiding Grace', 'Soldier of the Pantheon', 'Faeburrow Elder', 'Elspeth Conquers Death', 'Kazandu Blademaster', 'Viscera Seer', 'Approach of the Second Sun', 'Augur of Bolas', 'Gilt-Leaf Archdruid', 'Kogla, the Titan Ape', 'Rise // Fall', 'Grand Abolisher', 'Argentum Armor', 'Mistvault Bridge', 'Nekrataal', 'Dragon''s Hoard', 'Bloodchief Ascension', 'Commence the Endgame', 'High-Speed Hoverbike', 'Fevered Visions', 'Eidolon of Blossoms', 'Crumbling Vestige', 'Repudiate // Replicate', 'Summary Dismissal', 'Pyroclasm', 'Greater Tanuki', 'Psychic Possession', 'Into the Roil', 'Ulamog''s Crusher', 'Sigil of the Empty Throne', 'Kefnet the Mindful', 'Celestial Colonnade', 'Obliterate', 'Marauding Blight-Priest', 'Zephyr Singer', 'Kambal, Consul of Allocation', 'Gird for Battle', 'Soul Warden', 'Altered Ego', 'Bloodvial Purveyor', 'Sphere of Safety', 'Etherium Sculptor', 'Bogardan Hellkite', 'Tezzeret''s Gambit', 'Dakkon, Shadow Slayer', 'Geothermal Bog', 'Tangle', 'Lingering Souls', 'Fade from Memory', 'Darksteel Colossus', 'Cabal Initiate', 'Glacial Fortress', 'Battlefield Forge', 'Empyrial Armor', 'Cartel Aristocrat', 'Phyrexian Revoker', 'Akroan Crusader', 'Fatestitcher', 'Cabaretti Courtyard', 'Maelstrom Pulse', 'Terminate', 'Seal of Fire', 'Genesis Hydra', 'Collected Conjuring', 'Evacuation', 'Ossification', 'Howling Mine', 'Snow-Covered Plains', 'Cultivate', 'Reckoner''s Bargain', 'Lathliss, Dragon Queen', 'Colossal Skyturtle', 'Aegis of the Gods', 'Thrill of Possibility', 'Glamerdye', 'Raze to the Ground', 'Izzet Charm', 'Sleight of Hand', 'Saproling Migration', 'Anoint with Affliction', 'Invasion of Ergamon', 'Battle of Frost and Fire', 'Deafening Clarion', 'Akoum Hellhound', 'Reinforced Ronin', 'King Darien XLVIII', 'Trace of Abundance', 'Forging the Anchor', 'Circuit Mender', 'Sudden Edict', 'Mindcrank', 'Assemble the Legion', 'Radiant Grove', 'Vampiric Rites', 'Kozilek''s Predator', 'Boreal Shelf', 'Tidespout Tyrant', 'Elves of Deep Shadow', 'Graveborn Muse', 'Raffine''s Informant', 'Eiganjo Castle', 'Rally the Peasants', 'Stern Dismissal', 'Sol Talisman', 'Combat Thresher', 'Radha, Heart of Keld', 'Lavinia of the Tenth', 'Aetherling', 'Shigeki, Jukai Visionary', 'Lavaclaw Reaches', 'Wildborn Preserver', 'Kumano Faces Kakkazan', 'Sinew Sliver', 'Pharika''s Cure', 'Epic Experiment', 'River of Tears', 'Night Market Lookout', 'Oath of Kaya', 'Worship', 'Cryptic Caves', 'Nomad Outpost', 'Thornglint Bridge', 'Mothdust Changeling', 'Bitter Reunion', 'Malakir Rebirth', 'Acidic Slime', 'Mystical Teachings', 'Dark Petition', 'Silumgar, the Drifting Death', 'Throat Slitter', 'Auriok Sunchaser', 'Ajani, Adversary of Tyrants', 'Recurring Nightmare', 'Network Disruptor', 'Silverbluff Bridge', 'Quicksilver Gargantuan', 'Darksteel Citadel', 'Benevolent Bodyguard', 'Brainstone', 'Rally the Ranks', 'Silverblade Paladin', 'Kitesail Freebooter', 'Inevitable Betrayal', 'Shape Anew', 'Geomancer''s Gambit', 'Stir the Grave', 'Temple of Plenty', 'Disenchant', 'Groundswell', 'Vapor Snag', 'Frantic Inventory', 'Graven Lore', 'Silundi Vision', 'Earthquake', 'Frost Titan', 'Reflector Mage', 'Canyon Slough', 'Obstinate Baloth', 'Stirring Wildwood', 'Blue Sun''s Zenith', 'Inscribed Tablet', 'Of One Mind', 'Kher Keep', 'Archangel of Wrath', 'Sign in Blood', 'Gruul Turf', 'Carnophage', 'Vines of Vastwood', 'Fireblade Charger', 'Wanderwine Hub', 'Dead of Winter', 'Garruk Wildspeaker', 'Venerated Loxodon', 'Stinkdrinker Bandit', 'Ghostfire Blade', 'Falkenrath Pit Fighter', 'Venser, Corpse Puppet', 'Forbidden Alchemy', 'Eldrazi Displacer', 'Akiri, Fearless Voyager', 'Liliana Vess', 'Norn''s Inquisitor', 'Squee, Goblin Nabob', 'Kunoros, Hound of Athreos', 'Porphyry Nodes', 'Smallpox', 'Silumgar''s Scorn', 'Festering Newt', 'Monument to Perfection', 'Arbalest Engineers', 'Gitaxian Probe', 'Talisman of Curiosity', 'Purify the Grave', 'Idyllic Tutor', 'The Celestus', 'Cataclysmic Gearhulk', 'Oni-Cult Anvil', 'Lazotep Chancellor', 'Jokulhaups', 'Midnight Guard', 'Tear Asunder', 'Eerie Ultimatum', 'Disallow', 'Tezzeret the Schemer', 'Mouth of Ronom', 'Rise and Shine', 'Glimpse of Tomorrow', 'Kor Skyfisher', 'True Believer', 'Timeless Dragon', 'Open the Gates', 'Seismic Assault', 'Mwonvuli Acid-Moss', 'Giant Killer', 'Elemental Masterpiece', 'Valiant Changeling', 'Llanowar Mentor', 'Vraan, Executioner Thane', 'Drowned Catacomb', 'The Scorpion God', 'Self-Assembler', 'Verduran Enchantress', 'Frantic Search', 'Ulvenwald Hydra', 'Scab-Clan Berserker', 'Demonic Bargain', 'Tyrant''s Choice', 'Ertai''s Scorn', 'Zuran Orb', 'Cloudpost', 'Prosperous Thief', 'Rampant Growth', 'Forgotten Cave', 'Vivid Marsh', 'Ashenmoor Liege', 'Sever the Bloodline', 'Makeshift Mannequin', 'Into the Story', 'Kjeldoran Outpost', 'Fiery Justice', 'Careful Cultivation', 'Mortuary Mire', 'Mulch', 'Jungle Hollow', 'Oracle of Mul Daya', 'The Antiquities War', 'Temple of Mystery', 'Master of Etherium', 'Wayward Guide-Beast', 'Mirage Mirror', 'Frostwalk Bastion', 'Abundant Harvest', 'Vraska''s Contempt', 'Martyr of Sands', 'Sweltering Suns', 'Knight of the White Orchid', 'Annex Sentry', 'Arguel''s Blood Fast', 'Ephara, God of the Polis', 'Evolving Wilds', 'Toolcraft Exemplar', 'Nimbus Maze', 'Nimble Trapfinder', 'Ruin Crab', 'Gideon''s Intervention', 'Sea-Dasher Octopus', 'Spikefield Hazard', 'Knowledge Pool', 'Metalwork Colossus', 'Arcum''s Astrolabe', 'Divest', 'Wrath of God', 'Isolated Chapel', 'Rain of Tears', 'Expedite', 'Hard Evidence', 'Drowner of Hope', 'Dreadhorde Butcher', 'Resolute Reinforcements', 'Wall of Omens', 'Dryad Militant', 'Boros Guildgate', 'Dark Prophecy', 'Chief Engineer', 'Magister of Worth', 'Tendo Ice Bridge', 'Vigor', 'Waking the Trolls', 'Chief of the Foundry', 'Karn''s Bastion', 'Snow-Covered Swamp', 'Far // Away', 'Chandra, Fire Artisan', 'Ghostly Pilferer', 'Rakdos Guildgate', 'Sylvan Library', 'Vivid Grove', 'Arbor Elf', 'Disrupting Shoal', 'Elvish Archdruid', 'Deep Analysis', 'Gruul Spellbreaker', 'Detention Sphere', 'World Shaper', 'Dokuchi Silencer', 'Angrath, the Flame-Chained', 'Choked Estuary', 'Okina, Temple to the Grandfathers', 'Frenetic Sliver', 'Voidslime', 'Mulldrifter', 'Pain Seer', 'Ancient Stirrings', 'Satyr Wayfinder', 'Bloodthrone Vampire', 'Ethersworn Sphinx', 'Nature''s Lore', 'Myr Battlesphere', 'Oath of Teferi', 'Curse of Exhaustion', 'Dark Ritual', 'Ponder', 'Stone Rain', 'Lochmere Serpent', 'Barbed Sextant', 'Tamiyo, Collector of Tales', 'Heap Doll', 'Scour All Possibilities', 'Alms of the Vein', 'Goldmire Bridge', 'Rix Maadi Reveler', 'Experimental Augury', 'Mirran Crusader', 'Fabricate', 'Sigrid, God-Favored', 'Consuming Vapors', 'Faerie Vandal', 'Lodestone Golem', 'Artisan of Kozilek', 'Solitary Confinement', 'Nephalia Drownyard', 'Gnat Miser', 'Silversmote Ghoul', 'Urban Evolution', 'Lightning Spear', 'Yosei, the Morning Star', 'Sunstrike Legionnaire', 'Yavimaya Coast', 'Devious Cover-Up', 'Curiosity', 'Pack Rat', 'Platinum Angel', 'Elvish Clancaller', 'Halana and Alena, Partners', 'Angel of Despair', 'Arcbound Ravager', 'Heliod''s Pilgrim', 'Graaz, Unstoppable Juggernaut', 'Herd Migration', 'Goblin Bombardment', 'Ayara, First of Locthwain', 'Goblin Electromancer', 'Stoic Rebuttal', 'Vault Skirge', 'Wild Cantor', 'Pore Over the Pages', 'Jwari Disruption', 'Fertile Ground', 'Languish', 'Hostage Taker', 'Haunted Fengraf', 'Mystic Monastery', 'Cut Down', 'Kaito, Dancing Shadow', 'Sylvan Caryatid', 'Rune Snag', 'Terminus', 'Misery Charm', 'Runeflare Trap', 'Inscription of Ruin', 'Tribal Flames', 'Invisible Stalker', 'Obscura Storefront', 'Vampire Nighthawk', 'Thawing Glaciers', 'Runed Halo', 'Otherworldly Journey', 'Impulse', 'Drowned Rusalka', 'Goblin Dark-Dwellers', 'Brave the Elements', 'Graven Cairns', 'Pyretic Ritual', 'Ransack the Lab', 'Birds of Paradise', 'Wrenn''s Resolve', 'Whir of Invention', 'Yorion, Sky Nomad', 'Drossforge Bridge', 'Sheltered Thicket', 'Control Magic', 'Gather the Pack', 'Ezuri, Renegade Leader', 'Flaying Tendrils', 'Volt Charge', 'Fight as One', 'Nissa, Steward of Elements', 'Canopy Vista', 'Racers'' Ring', 'Death Cloud', 'Simic Guildgate', 'Seething Song', 'Dire-Strain Rampage', 'Fleecemane Lion', 'Marit Lage''s Slumber', 'Delay', 'Godo, Bandit Warlord', 'Izzet Guildgate', 'Seal of Removal', 'The Underworld Cookbook', 'Briarbridge Tracker', 'Late to Dinner', 'Utter End', 'Sunblade Samurai', 'Notorious Throng', 'Teneb, the Harvester', 'Ivory Tower', 'Wrench Mind', 'Judith, the Scourge Diva', 'Supreme Will', 'Hour of Promise', 'Orzhov Basilica', 'Dying to Serve', 'Serrated Scorpion', 'Temple of Silence', 'Oracle of Tragedy', 'Consul''s Lieutenant', 'Temple of Enlightenment', 'Spatial Contortion', 'Oona''s Prowler', 'Altar of the Goyf', 'Bone Shards', 'Haunted Dead', 'Become Immense', 'Vessel of Nascency', 'Bloodchief''s Thirst', 'Miasmic Mummy', 'Yavimaya Iconoclast', 'Squadron Hawk', 'Ignite Memories', 'Rakdos Cackler', 'Wood Elves', 'Leonin Lightscribe', 'Boros Elite', 'Changeling Outcast', 'Anguished Unmaking', 'Dragonskull Summit', 'Engulf the Shore', 'Siege Rhino', 'Out of Time', 'Helm of the Host', 'Caves of Koilos', 'Vault of the Archangel', 'Ral, Storm Conduit', 'Bituminous Blast', 'Angel of Grace', 'Unbreakable Formation', 'Slagwoods Bridge', 'Raven''s Crime', 'Restoration Angel', 'Ghitu Lavarunner', 'Cauldron Familiar', 'Scrying Sheets', 'Corrupted Crossroads', 'Resurgent Belief', 'Patchwork Automaton', 'Pariah', 'Xerex Strobe-Knight', 'Serra Ascendant', 'Voldaren Pariah', 'Defiant Strike', 'Thornwood Falls', 'Scrabbling Claws', 'Sylvan Scrying', 'Union of the Third Path', 'Day of Judgment', 'Might of Old Krosa', 'Recruitment Officer', 'General''s Enforcer', 'Phyrexian Dreadnought', 'Burst Lightning', 'Crux of Fate', 'Guile', 'Price of Progress', 'Adanto Vanguard', 'Mausoleum Secrets', 'Needle Spires', 'Raise the Alarm', 'Syphon Life', 'Abyssal Persecutor', 'Grove of the Guardian', 'Tribute to Horobi', 'Rabbit Battery', 'Circular Logic', 'Mnemonic Sphere', 'Woodfall Primus', 'Dimir Aqueduct', 'Demolition Field', 'Unholy Heat', 'Anafenza, the Foremost', 'Protect the Negotiators', 'Yasharn, Implacable Earth', 'Memoricide', 'Change the Equation', 'Commune with Spirits', 'Skymarcher Aspirant', 'Voltage Surge', 'Bump in the Night', 'Polukranos, World Eater', 'Nightscape Familiar', 'Tomebound Lich', 'Woodland Cemetery', 'Fierce Empath', 'Greater Gargadon', 'Murderous Cut', 'Midnight Reaper', 'Peek', 'Slogurk, the Overslime', 'Empyrial Plate', 'Go for the Throat', 'Obzedat, Ghost Council', 'Nimble Obstructionist', 'Oblivion Ring', 'Leonin Arbiter', 'Devil''s Play', 'Basilisk Collar', 'Voidwing Hybrid', 'Aether Spellbomb', 'Kruphix''s Insight', 'Revitalize', 'Angel of Serenity', 'Teshar, Ancestor''s Apostle', 'Call of the Death-Dweller', 'Ashen Rider', 'Razortide Bridge', 'Grolnok, the Omnivore', 'Herd Baloth', 'Temple of Malady', 'Tangled Islet', 'Avacyn''s Pilgrim', 'Vivid Crag', 'Rotting Rats', 'Phyrexian Censor', 'Corpse Cur', 'Dread Wanderer', 'Corrupted Conviction', 'Skyshroud Elf', 'Temple of Abandon', 'Llanowar Elves', 'Varolz, the Scar-Striped', 'Ulcerate', 'Swiftfoot Boots', 'Destroy Evil', 'Lagrella, the Magpie', 'Diabolic Tutor', 'Ramunap Excavator', 'Sorin, Vengeful Bloodlord', 'Emmara, Soul of the Accord', 'Quest for the Holy Relic', 'Heartless Act', 'Swooping Lookout', 'Dakmor Salvage', 'Sultai Charm', 'Rocco, Cabaretti Caterer', 'Kitchen Finks', 'Slaughter Pact', 'Pull from Tomorrow', 'Altar of the Brood', 'Memory Lapse', 'Froghemoth', 'Lantern-Lit Graveyard', 'Lead the Stampede', 'Merciless Eviction', 'Jungle Shrine', 'Ashnod, Flesh Mechanist', 'Phoenix Chick', 'Genesis Ultimatum', 'Cleansing Wildfire', 'Explore', 'Incinerate', 'Kemba, Kha Enduring', 'Sins of the Past', 'Rust Goliath', 'Open the Armory', 'Predatory Sliver', 'Return to the Ranks', 'Kabira Takedown', 'Luminarch Ascension', 'Mind''s Desire', 'Ground Seal', 'Moderation', 'Psychatog', 'Fetid Pools', 'Forsake the Worldly', 'Ancestral Blade', 'Halimar Excavator', 'Joint Exploration', 'Torens, Fist of the Angels', 'Overgrowth', 'Fearless Fledgling', 'Steppe Lynx', 'Progenitor Exarch', 'Felidar Cub', 'Triumphant Adventurer', 'Springleaf Drum', 'Chandra, Pyromaster', 'Artistic Refusal', 'Stupor', 'Blade Splicer', 'Gadrak, the Crown-Scourge', 'Yahenni''s Expertise', 'Botanical Plaza', 'Tezzeret, Artifice Master', 'Fangren Marauder', 'Crawling Barrens', 'Farseek', 'Ensoul Artifact', 'Steel Overseer', 'Eternal Scourge', 'Dark-Dweller Oracle', 'Kalastria Healer', 'Vryn Wingmare', 'Disciple of Bolas', 'Gideon Jura', 'Gruul Guildgate', 'Sculpted Perfection', 'Ebony Owl Netsuke', 'Maestros Charm', 'Ally Encampment', 'Shardless Agent', 'Thopter Mechanic', 'Sea Gate Oracle', 'Lay Down Arms', 'Scattered Groves', 'Bloodsoaked Champion', 'Sterling Grove', 'Sprite Dragon', 'Knight of New Alara', 'Rally the Ancestors', 'Tempest Djinn', 'Destiny Spinner', 'Search for Tomorrow', 'Bilious Skulldweller', 'Concealing Curtains', 'Port Town', 'Vexing Shusher', 'Blessed Alliance', 'Staff of Domination', 'Murderous Redcap', 'Commune with the Gods', 'Oona, Queen of the Fae', 'Din of the Fireherd', 'Hesitation', 'Izzet Boilerworks', 'Counterflux', 'Xenagos, the Reveler', 'Selesnya Guildgate', 'Dawn of Hope', 'Cabal Ritual', 'Sacred Peaks', 'Reckless Charge', 'Hypnotic Specter', 'Duneblast', 'Combat Research', 'Timeless Witness', 'Executioner''s Capsule', 'Ovika, Enigma Goliath', 'Gift of Estates', 'Shimmerdrift Vale', 'Molten Tributary', 'Kaya, Ghost Assassin', 'Grave Titan', 'Consult the Necrosages', 'Shalai, Voice of Plenty', 'Experimental Synthesizer', 'Ancient Amphitheater', 'Spellweaver Helix', 'Fyndhorn Elves', 'Rites of Initiation', 'Cabal Therapist', 'Tooth and Nail', 'Marwyn, the Nurturer', 'Nine Lives', 'Cliffside Lookout', 'Locket of Yesterdays', 'Discovery // Dispersal', 'Kitchen Imp', 'Narcomoeba', 'Precinct Captain', 'Gateway Plaza', 'Sunlit Marsh', 'Erebos, Bleak-Hearted', 'Blightbelly Rat', 'Rustvale Bridge', 'Rishkar, Peema Renegade', 'Unsubstantiate', 'Shizo, Death''s Storehouse', 'Fumigate', 'Shrapnel Blast', 'Orzhov Charm', 'Lost Legacy', 'Melira, Sylvok Outcast', 'Spectral Procession', 'Stoke the Flames', 'Chittering Rats', 'Healer''s Hawk', 'Vampire Lacerator', 'Strike It Rich', 'Unburial Rites', 'Precursor Golem', 'Esper Charm', 'Judge''s Familiar', 'Repeal', 'Summer Bloom', 'Invasion of Kaladesh', 'Savage Lands', 'Felidar Retreat', 'Negate', 'Elderscale Wurm', 'Thraben Inspector', 'Electrolyze', 'Raging Ravine', 'Elvish Mystic', 'Mirror Entity', 'Breya''s Apprentice', 'Hyena Umbra', 'Cathartic Reunion', 'Boomerang', 'Tidehollow Sculler', 'Spell Pierce', 'Universal Automaton', 'Abzan Charm', 'Temple of Deceit', 'Endbringer', 'Carven Caryatid', 'Snow-Covered Mountain', 'Scrapheap Scrounger', 'Talisman of Unity', 'Dismal Backwater', 'Faith''s Reward', 'Elas il-Kor, Sadistic Pilgrim', 'Blazing Rootwalla', 'Orim''s Chant', 'Mishra''s Research Desk', 'Lose Focus', 'Voyaging Satyr', 'Tendrils of Agony', 'Mindsplice Apparatus', 'Hornet Queen', 'Grim Haruspex', 'Mastermind''s Acquisition', 'Fact or Fiction', 'Necrogen Spellbomb', 'Jace, Architect of Thought', 'Sin Collector', 'Stone Haven Outfitter', 'Golgari Guildgate', 'Fetid Heath', 'Perilous Myr', 'Anafenza, Kin-Tree Spirit', 'White Sun''s Zenith', 'Genesis Wave', 'Figure of Destiny', 'Archangel Avacyn', 'Dross Skullbomb', 'Dream Trawler', 'Blanchwood Prowler', 'Shard Volley', 'Tymaret, Chosen from Death', 'Pillar of the Paruns', 'Tocasia''s Dig Site', 'Leonin Warleader', 'Myr Superion', 'Phantasmal Image', 'Dimir Guildgate', 'Glint-Sleeve Siphoner', 'Erebos''s Intervention', 'Veinfire Borderpost', 'Nimble Larcenist', 'Turnabout', 'Sin Prodder', 'Cremate', 'Sarkhan, the Dragonspeaker', 'Abundant Growth', 'Thassa''s Intervention', 'Kor Firewalker', 'Ichorclaw Myr', 'Terastodon', 'Shambling Vent', 'Gideon''s Lawkeeper', 'Galerider Sliver', 'Invasion of Regatha', 'Scarab Feast', 'Fire Prophecy', 'Elvish Rejuvenator', 'Smother', 'Coiling Oracle', 'Whispersilk Cloak', 'Master of Death', 'Deep Forest Hermit', 'Lurrus of the Dream-Den', 'Ivy Lane Denizen', 'Orzhov Guildgate', 'Hypergenesis', 'Archon of Sun''s Grace', 'Riveteers Overlook', 'Valakut Exploration', 'Bubbling Cauldron', 'General Ferrous Rokiric', 'War Falcon', 'Clifftop Retreat', 'Inkwell Leviathan', 'Duress', 'Third Path Iconoclast', 'Mistvein Borderpost', 'Energy Refractor', 'Invasion of Zendikar', 'Divinity of Pride', 'Grave Scrabbler', 'Rakdos Charm', 'Surrak, the Hunt Caller', 'Frost Marsh', 'Banishing Slash', 'Demigod of Revenge', 'Chaotic Transformation', 'Tocatli Honor Guard', 'Fracturing Gust', 'Warstorm Surge', 'Terramorphic Expanse', 'Archpriest of Shadows', 'Kami of the Crescent Moon', 'Gloomshrieker', 'Secluded Steppe', 'Gather the Townsfolk', 'Ral, Izzet Viceroy', 'Bident of Thassa', 'Brave the Sands', 'Titania, Protector of Argoth', 'Oona''s Grace', 'Desperate Ritual', 'Elvish Visionary', 'Acquisitions Expert', 'Putrefy', 'Chain Lightning', 'Favored Hoplite', 'Hada Freeblade', 'Hall of Oracles', 'Victim of Night', 'Flame Rift', 'Secluded Courtyard', 'Hissing Quagmire', 'Invoke Calamity', 'Gaea''s Will', 'Krosan Grip', 'Champion of Wits', 'Mistcutter Hydra', 'Tainted Indulgence', 'Buried Ruin', 'Gutterbones', 'Vraska''s Fall', 'Ayli, Eternal Pilgrim', 'Spirited Companion', 'Thrash // Threat', 'Drown in Ichor', 'Priest of the Haunted Edge', 'Wandering Fumarole', 'Mishra''s Factory', 'Crystal Grotto', 'Dovin''s Acuity', 'Grapple with the Past', 'Dauntless Bodyguard', 'Doomskar', 'Sunpetal Grove', 'Harmonize', 'Morsel Theft', 'Ancient Ziggurat', 'Idyllic Beachfront', 'Marble Diamond', 'Archaeomancer', 'Simian Sling', 'Ranger of Eos', 'Dimensional Infiltrator', 'Sulfur Falls', 'Commit // Memory', 'Lizard Blades', 'Ardent Recruit', 'See Beyond', 'Sylvan Advocate', 'Twinshot Sniper', 'Baneful Omen', 'Shriekmaw', 'Wizard''s Retort', 'Treasure Cruise', 'Smoldering Marsh', 'Timely Reinforcements', 'Terrarion', 'Knight of the Reliquary', 'Thragtusk', 'Glistener Elf', 'Stromkirk Noble', 'Jor Kadeen, First Goldwarden', 'Search for Azcanta', 'Icehide Golem', 'Koth, Fire of Resistance', 'Weathered Wayfarer', 'Arlinn Kord', 'Haunted Mire', 'Scrapwork Mutt', 'Doom Blade', 'Throne of the God-Pharaoh', 'Faerie Miscreant', 'Remorseful Cleric', 'Phyrexian Unlife', 'Anger of the Gods', 'Dissipate', 'Meeting of Minds', 'Ornithopter', 'Huatli, Radiant Champion', 'Odds // Ends', 'Melira, the Living Cure', 'Solemn Simulacrum', 'Increasing Ambition', 'Invasion of Azgol', 'Dreams of Steel and Oil', 'Draugr Necromancer', 'Prohibit', 'Soltari Priest', 'Grenzo, Dungeon Warden', 'Stasis Snare', 'Sandwurm Convergence', 'Lotus Cobra', 'Consume the Meek', 'Mesa Enchantress', 'Sire of Insanity', 'Loxodon Smiter', 'Castigate', 'Drake Haven', 'Hideous End', 'Tresserhorn Sinks', 'Halo Forager', 'Brokers Hideout', 'Basking Rootwalla', 'Slagstorm', 'Steel Leaf Champion', 'Firewild Borderpost', 'Putrid Goblin', 'Zombie Infestation', 'Evangel of Synthesis', 'Malcator, Purity Overseer', 'Mazemind Tome', 'Tanglepool Bridge', 'Saffi Eriksdotter', 'Assault // Battery', 'Blight Mamba', 'Vampire Hexmage', 'Pillage', 'Fae of Wishes', 'Seal of Cleansing', 'Aetherspouts', 'Touch the Spirit Realm', 'The Flame of Keld', 'Bastion of Remembrance', 'Sheoldred''s Edict', 'Skirk Prospector', 'Mina and Denn, Wildborn', 'Witching Well', 'The Seedcore', 'Nezahal, Primal Tide', 'Agonizing Remorse', 'Grand Arbiter Augustin IV', 'Lightning Strike', 'Silent Gravestone', 'Llanowar Tribe', 'Malicious Malfunction', 'Forked Bolt', 'Hieroglyphic Illumination', 'Settle the Wreckage', 'Hinterland Harbor', 'Moorland Haunt', 'Weapons Trainer', 'Bloodbraid Elf', 'Blightning', 'Quicken', 'Glorybringer', 'Herald of the Pantheon', 'Fruit of Tizerus', 'Second Sunrise', 'Teferi, Mage of Zhalfir', 'Sphinx''s Herald', 'Dead Weight', 'Moon-Circuit Hacker', 'Doomed Traveler', 'Gigadrowse', 'Nether Spirit', 'Pieces of the Puzzle', 'Grand Architect', 'Diffusion Sliver', 'Hooting Mandrills', 'Burning of Xinye', 'Kiora, the Crashing Wave', 'Jukai Naturalist', 'Venser, Shaper Savant', 'Embodiment of Fury', 'Barter in Blood', 'Mana Leak', 'Distorted Curiosity', 'Dispatch', 'Thopter Spy Network', 'Check for Traps', 'Declaration in Stone', 'Scuttling Doom Engine', 'Goldmeadow Harrier', 'Phalanx Leader', 'Commune with Nature', 'Nissa, Worldwaker', 'Floriferous Vinewall', 'Bolas''s Citadel', 'Smuggler''s Copter', 'Oust', 'Sunken Hollow', 'Wonder', 'Sarkhan the Masterless', 'Contaminated Aquifer', 'Drainpipe Vermin', 'Rift Bolt', 'Invasion of Amonkhet', 'Upheaval', 'Mesmeric Fiend', 'Kappa Tech-Wrecker', 'Forbid', 'Frontier Bivouac', 'Mountain Valley', 'Chamber Sentry', 'Kami of False Hope', 'Sinister Concoction', 'Sylvan Messenger', 'Duplicant', 'Mindslaver', 'Crack the Earth', 'Tranquil Thicket', 'Yisan, the Wanderer Bard', 'Aetherblade Agent', 'Heliod''s Intervention', 'Gleeful Demolition', 'Vraska, Relic Seeker', 'Possibility Storm', 'Bontu''s Last Reckoning', 'Rites of Spring', 'Wooded Bastion', 'Silver-Fur Master', 'Pardic Miner', 'Ravenous Squirrel', 'Mistveil Plains'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Avacyn''s Pilgrim', 'Barter in Blood', 'Wilt', 'Stubborn Denial', 'Sprite Dragon', 'Yorion, Sky Nomad', 'Genesis Hydra', 'Obscura Charm', 'Sorin, Vengeful Bloodlord', 'Ulamog''s Crusher', 'Dread Return', 'Desperate Ritual', 'Tresserhorn Sinks', 'Silverblade Paladin', 'Satyr Hoplite', 'Nameless Inversion', 'Graven Lore', 'Shardless Agent', 'Lavaclaw Reaches', 'Bontu''s Last Reckoning', 'Radha, Heart of Keld', 'Jwari Shapeshifter', 'Brineborn Cutthroat', 'Bident of Thassa', 'Eldrazi Skyspawner', 'Unburial Rites', 'Acidic Slime', 'Halo Forager', 'Pardic Miner', 'Nissa, Worldwaker', 'Phyrexian Unlife', 'Temple of Mystery', 'Assault // Battery', 'Runed Halo', 'Riveteers Overlook', 'Drowner of Hope', 'Akroan Crusader', 'Smuggler''s Copter', 'Raffine''s Informant', 'Cauldron Familiar', 'Forbidden Alchemy', 'Makeshift Mannequin', 'Empty the Warrens', 'Merciless Eviction', 'Xerex Strobe-Knight', 'Dragonskull Summit', 'Crawling Barrens', 'Grand Architect', 'Mothdust Changeling', 'Frenetic Sliver', 'Master of Death', 'Open the Armory', 'Herd Migration', 'Emmara, Soul of the Accord', 'Change the Equation', 'Second Sunrise', 'Strike It Rich', 'Ghost Quarter', 'Chief of the Foundry', 'Vivid Grove', 'Breya''s Apprentice', 'Case the Joint', 'Midnight Reaper', 'Rustvale Bridge', 'Repudiate // Replicate', 'Teshar, Ancestor''s Apostle', 'Angel of Serenity', 'Obliterate', 'Dregscape Zombie', 'Anticipate', 'Skyclave Shade', 'Icehide Golem', 'Wasteland Strangler', 'Touch the Spirit Realm', 'Grim Haruspex', 'Oni-Cult Anvil', 'Vessel of Nascency', 'Obscura Storefront', 'Thragtusk', 'Shalai, Voice of Plenty', 'Sol Talisman', 'Shape Anew', 'Disenchant', 'Phantasmal Image', 'Elderscale Wurm', 'Night of Souls'' Betrayal', 'Nissa, Steward of Elements', 'Surge of Salvation', 'Cabal Therapist', 'Garruk Wildspeaker', 'Become Immense', 'Waking the Trolls', 'Servo Exhibition', 'Resurgent Belief', 'Sandsteppe Citadel', 'Worship', 'Argentum Armor', 'Wooded Bastion', 'Boros Guildgate', 'Snow-Covered Swamp', 'Condemn', 'Aether Spellbomb', 'Victim of Night', 'Stormrider Spirit', 'Hinterland Harbor', 'Akiri, Fearless Voyager', 'Utter End', 'Terastodon', 'Prophetic Prism', 'Brave the Elements', 'Canyon Slough', 'Putrid Goblin', 'Llanowar Mentor', 'Gnawing Vermin', 'Seal of Cleansing', 'Ethersworn Sphinx', 'Terminate', 'Kessig Wolf Run', 'Bone Shards', 'Sheoldred''s Edict', 'Bituminous Blast', 'Ossification', 'Serrated Scorpion', 'Thawing Glaciers', 'Morsel Theft', 'Thornglint Bridge', 'Inkwell Leviathan', 'Gaea''s Will', 'Maze''s End', 'Reinforced Ronin', 'Archaeomancer', 'Fireblade Charger', 'Kjeldoran Outpost', 'Unctus, Grand Metatect', 'Yavimaya Iconoclast', 'Gigadrowse', 'Ground Seal', 'Murmuring Bosk', 'Kitchen Imp', 'Temple of Enlightenment', 'Increasing Ambition', 'Negate', 'Marauding Blight-Priest', 'Vraska''s Contempt', 'Metalwork Colossus', 'Veinfire Borderpost', 'Fracturing Gust', 'Sultai Charm', 'Malcator, Purity Overseer', 'Greater Gargadon', 'Rule of Law', 'Rites of Spring', 'Mindcrank', 'Azorius Guildgate', 'Herd Baloth', 'Knight of the Reliquary', 'Zombie Infestation', 'Ancestral Blade', 'Rabbit Battery', 'Mastermind''s Acquisition', 'Melira, the Living Cure', 'Vryn Wingmare', 'Collected Conjuring', 'Ishkanah, Grafwidow', 'Archpriest of Shadows', 'Go for the Throat', 'Lantern-Lit Graveyard', 'Rise // Fall', 'Sire of Insanity', 'Kiora, the Crashing Wave', 'Ephara, God of the Polis', 'Throne of the God-Pharaoh', 'Mulch', 'Gateway Plaza', 'Skymarcher Aspirant', 'Spikefield Hazard', 'Xenagos, the Reveler', 'Hornet Queen', 'Wild Cantor', 'Mirage Mirror', 'Rain of Tears', 'Racers'' Ring', 'Elvish Visionary', 'Adanto Vanguard', 'King Darien XLVIII', 'Gruul Spellbreaker', 'Peek', 'Cataclysmic Gearhulk', 'Voidslime', 'Woodland Cemetery', 'Solitary Confinement', 'Saffi Eriksdotter', 'Otherworldly Journey', 'Farhaven Elf', 'Demigod of Revenge', 'Price of Progress', 'The Mending of Dominaria', 'Fruit of Tizerus', 'Murderous Redcap', 'Torens, Fist of the Angels', 'Ghostly Pilferer', 'Obzedat, Ghost Council', 'Elvish Mystic', 'Bastion of Remembrance', 'Blightbelly Rat', 'Hypergenesis', 'Marwyn, the Nurturer', 'Apostle''s Blessing', 'Dimir Guildgate', 'Groundswell', 'Elemental Masterpiece', 'Decree of Justice', 'Westvale Abbey', 'Scattered Groves', 'Might of Old Krosa', 'Monument to Perfection', 'Union of the Third Path', 'Sculpted Perfection', 'Fiery Justice', 'Goldmire Bridge', 'Return to the Ranks', 'Pore Over the Pages', 'Drowned Rusalka', 'Executioner''s Capsule', 'Leonin Lightscribe', 'Ashnod, Flesh Mechanist', 'Invasion of Zendikar', 'Idyllic Beachfront', 'Tendrils of Agony', 'Devious Cover-Up', 'Shigeki, Jukai Visionary', 'Mausoleum Secrets', 'Staff of Domination', 'Engulf the Shore', 'Champion of Wits', 'Crystal Grotto', 'Inevitable Betrayal', 'Ignite Memories', 'Delay', 'Wolfbriar Elemental', 'Geothermal Bog', 'Burst Lightning', 'Hada Freeblade', 'Crumbling Vestige', 'Time of Need', 'Snow-Covered Plains', 'Mindsplice Apparatus', 'Vadrik, Astral Archmage', 'Alms of the Vein', 'Hanweir Garrison', 'Convolute', 'Pyrite Spellbomb', 'Gift of Immortality', 'Slagstorm', 'Moon-Circuit Hacker', 'Ravenous Squirrel', 'Jokulhaups', 'Summer Bloom', 'Lavinia of the Tenth', 'Cultivate', 'Elves of Deep Shadow', 'Destroy Evil', 'Reckless Charge', 'Eerie Ultimatum', 'Drake Haven', 'Gideon Jura', 'Remorseful Cleric', 'Ancient Stirrings', 'Kambal, Consul of Allocation', 'Hissing Quagmire', 'Doom Blade', 'Silversmote Ghoul', 'Mnemonic Sphere', 'Ally Encampment', 'Inscribed Tablet', 'Hostage Taker', 'Secluded Courtyard', 'Battle of Frost and Fire', 'Elvish Clancaller', 'Surrak, the Hunt Caller', 'Solemn Simulacrum', 'Eldrazi Displacer', 'Search for Tomorrow', 'Orzhov Charm', 'Combat Research', 'Invoke Calamity', 'Miasmic Mummy', 'Phalanx Leader', 'Aetherling', 'Gruul Guildgate', 'Sever the Bloodline', 'Fiery Temper', 'Nephalia Drownyard', 'Stoke the Flames', 'Consul''s Lieutenant', 'Kiora Bests the Sea God', 'Arguel''s Blood Fast', 'Sulfur Falls', 'Memoricide', 'Raging Ravine', 'Knight of New Alara', 'Castigate', 'Verduran Enchantress', 'Chandra, Pyromaster', 'Halimar Excavator', 'Sunlit Marsh', 'Tendo Ice Bridge', 'Rishkar, Peema Renegade', 'Gleeful Demolition', 'Talisman of Unity', 'Haunted Fengraf', 'Clifftop Retreat', 'Darksteel Citadel', 'Jungle Shrine', 'Pieces of the Puzzle', 'Mistvein Borderpost', 'Evolving Wilds', 'Feed the Swarm', 'Prosperous Thief', 'Voyaging Satyr', 'Tangled Islet', 'Sylvan Advocate', 'Ashenmoor Liege', 'Howling Mine', 'Reflector Mage', 'Mouth of Ronom', 'Fatestitcher', 'Ethereal Armor', 'Banishing Slash', 'Colossal Skyturtle', 'Favored Hoplite', 'Cryptic Caves', 'Kaito, Dancing Shadow', 'Angel of Despair', 'Nomad Outpost', 'Izzet Boilerworks', 'Invisible Stalker', 'Mystical Teachings', 'True Believer', 'Divinity of Pride', 'Nekrataal', 'Dawn of Hope', 'Mina and Denn, Wildborn', 'Isolated Chapel', 'Wood Elves', 'Energy Refractor', 'Heliod''s Intervention', 'Possibility Storm', 'Vault of the Archangel', 'Mesa Enchantress', 'Forked Bolt', 'Soldier of the Pantheon', 'Call of the Death-Dweller', 'Whispersilk Cloak', 'Ardent Recruit', 'Doomskar', 'Narcomoeba', 'Disallow', 'Explore', 'Valakut Exploration', 'Grapple with the Past', 'Oblivion Ring', 'Rift Bolt', 'Quicken', 'Pillar of the Paruns', 'Huatli, Radiant Champion', 'Moderation', 'Epic Experiment', 'Temple of Malady', 'Oracle of Tragedy', 'Sigil of the Empty Throne', 'Dovin''s Acuity', 'Lotus Cobra', 'Floriferous Vinewall', 'Putrid Imp', 'Draugr Necromancer', 'Venser, Shaper Savant', 'Coiling Oracle', 'Vampire Neonate', 'Dreams of Steel and Oil', 'Faith''s Reward', 'Savage Lands', 'Dispatch', 'Azorius Charm', 'Rootwater Depths', 'Consult the Necrosages', 'Titania, Protector of Argoth', 'Elixir of Immortality', 'Mistvault Bridge', 'Orzhov Basilica', 'Graaz, Unstoppable Juggernaut', 'Mishra''s Research Desk', 'Ayli, Eternal Pilgrim', 'Tolarian Terror', 'Fabricate', 'Fleecemane Lion', 'Gilt-Leaf Archdruid', 'Brokers Hideout', 'Kumano Faces Kakkazan', 'Brain Freeze', 'Flametongue Kavu', 'Bolas''s Citadel', 'Search for Azcanta', 'Council''s Judgment', 'Stone Rain', 'Fumigate', 'Bloodvial Purveyor', 'Thundermaw Hellkite', 'Yavimaya Coast', 'Dread Wanderer', 'Krosan Grip', 'Endbringer', 'Agonizing Remorse', 'Fetid Heath', 'Ertai''s Scorn', 'Experimental Synthesizer', 'Restoration Angel', 'Vampire Nighthawk', 'Toolcraft Exemplar', 'Harmonize', 'Dreadhorde Butcher', 'Syphon Life', 'Bump in the Night', 'Cathedral of War', 'Tangle', 'Rakdos Charm', 'Aetherblade Agent', 'Consume the Meek', 'Drown in Ichor', 'Smother', 'Silumgar''s Scorn', 'Sylvan Caryatid', 'Fire Prophecy', 'Eiganjo Castle', 'Unmarked Grave', 'Galerider Sliver', 'Wall of Omens', 'Aetherspouts', 'Upheaval', 'Yahenni''s Expertise', 'Molten Tributary', 'Timeless Dragon', 'Folio of Fancies', 'Cloudshredder Sliver', 'Gloomshrieker', 'Izzet Charm', 'Crack the Earth', 'Myr Superion', 'Bubbling Cauldron', 'Tectonic Edge', 'World Shaper', 'Sinister Concoction', 'Temple of Plenty', 'Guile', 'Porphyry Nodes', 'Zhalfirin Shapecraft', 'Duress', 'Ransack the Lab', 'Esper Charm', 'Oracle of Mul Daya', 'Bitter Ordeal', 'Chittering Rats', 'Blood Artist', 'Ezuri, Renegade Leader', 'Incinerate', 'Cabal Initiate', 'Phyrexian Censor', 'Firewild Borderpost', 'Heliod''s Pilgrim', 'Gather the Townsfolk', 'Expedite', 'Brave the Sands', 'Rust Goliath', 'Fevered Visions', 'Squadron Hawk', 'Falkenrath Pit Fighter', 'Dimir Aqueduct', 'Psychic Possession', 'Fyndhorn Elves', 'Blazing Rootwalla', 'Kabira Takedown', 'Invigorate', 'Sunpetal Grove', 'Nightscape Familiar', 'Rotting Rats', 'Stir the Grave', 'Chain Lightning', 'Yisan, the Wanderer Bard', 'Fade from Memory', 'Tomebound Lich', 'Shrapnel Blast', 'Duplicant', 'Summary Dismissal', 'Declaration in Stone', 'Precursor Golem', 'Glamerdye', 'Fertile Ground', 'Arch of Orazca', 'Oust', 'Rakdos''s Return', 'Silent Gravestone', 'Shimmerdrift Vale', 'Memory Lapse', 'Kogla, the Titan Ape', 'Sigrid, God-Favored', 'Blanchwood Prowler', 'Rampant Growth', 'Hieroglyphic Illumination', 'Cathartic Reunion', 'Pack Rat', 'Elvish Rejuvenator', 'Warstorm Surge', 'Djinn of the Fountain', 'Wrath of God', 'Mindslaver', 'Grolnok, the Omnivore', 'Sunblade Samurai', 'Tanglepool Bridge', 'Invasion of Kaladesh', 'Festering Newt', 'Yawgmoth''s Bargain', 'Lead the Stampede', 'Ornithopter', 'Varolz, the Scar-Striped', 'Altered Ego', 'Myr Battlesphere', 'Kaya, Ghost Assassin', 'Honor of the Pure', 'Demonic Dread', 'Simian Spirit Guide', 'Sarkhan, the Dragonspeaker', 'Grave Titan', 'Big Game Hunter', 'Misery Charm', 'Oona, Queen of the Fae', 'Dragon''s Hoard', 'Hyena Umbra', 'Curiosity', 'Ral, Storm Conduit', 'Kor Skyfisher', 'Drowned Catacomb', 'Sacred Peaks', 'Sea Gate Oracle', 'Gnat Miser', 'Cut Down', 'Thopter Spy Network', 'Destiny Spinner', 'Death Cloud', 'Orzhov Guildgate', 'Vedalken Heretic', 'Deep Analysis', 'Kunoros, Hound of Athreos', 'Cabal Ritual', 'Glistener Elf', 'Tainted Indulgence', 'Viscera Seer', 'Kitesail Freebooter', 'Commune with Spirits', 'Moment of Truth', 'Angrath, the Flame-Chained', 'Big Score', 'Stone Haven Outfitter', 'Check for Traps', 'Sea-Dasher Octopus', 'Steel Leaf Champion', 'Purify the Grave', 'Ammit Eternal', 'Frost Marsh', 'Karumonix, the Rat King', 'Chandra, Fire Artisan', 'Sandwurm Convergence', 'Sudden Edict', 'Into the Roil', 'Spellweaver Helix', 'Unbreakable Formation', 'Port Town', 'Spectral Shift', 'Restore Balance', 'Heartless Act', 'Vapor Snag', 'Dead // Gone', 'Hesitation', 'Disciple of Bolas', 'Glimmerpost', 'Yasharn, Implacable Earth', 'Scarab Feast', 'Lodestone Golem', 'Ivory Tower', 'Wrench Mind', 'Cleansing Wildfire', 'Steppe Lynx', 'Arbor Elf', 'Dead of Winter', 'Tilling Treefolk', 'Voltage Surge', 'Vines of Vastwood', 'Eidolon of Blossoms', 'Laboratory Maniac', 'Slagwoods Bridge', 'Boon-Bringer Valkyrie', 'Yosei, the Morning Star', 'Nimbus Maze', 'Graven Cairns', 'Glorybringer', 'Day of Judgment', 'Chaotic Transformation', 'Sheltered Thicket', 'Knight of the White Orchid', 'Basking Rootwalla', 'Anafenza, the Foremost', 'Spirited Companion', 'Lathliss, Dragon Queen', 'Dokuchi Silencer', 'Terminus', 'Martyr of Sands', 'Grove of the Guardian', 'Temple of Deceit', 'Nullpriest of Oblivion', 'Rally the Ancestors', 'Giant Killer', 'Winds of Abandon', 'Elspeth Conquers Death', 'Tuktuk the Explorer', 'Ajani, Adversary of Tyrants', 'Unsubstantiate', 'Teneb, the Harvester', 'Scrabbling Claws', 'Hall of Oracles', 'Rune Snag', 'Network Disruptor', 'Unholy Heat', 'Ayara, First of Locthwain', 'Murderous Cut', 'Arcane Sanctum', 'Boros Elite', 'Arbalest Engineers', 'Malakir Rebirth', 'Shriekmaw', 'Locket of Yesterdays', 'Wanderwine Hub', 'Goblin Dark-Dwellers', 'Froghemoth', 'Ulvenwald Hydra', 'Meeting of Minds', 'Sunstrike Legionnaire', 'Kor Firewalker', 'Idyllic Tutor', 'Malicious Malfunction', 'Lost Legacy', 'Bloodbraid Elf', 'Primal Command', 'Platinum Angel', 'Gavony Township', 'Melira, Sylvok Outcast', 'Invasion of Azgol', 'Overgrowth', 'Contaminated Aquifer', 'Thaumatic Compass', 'Gitaxian Probe', 'Curse of Exhaustion', 'Unlucky Witness', 'Electrolyze', 'Solemnity', 'Sphinx''s Herald', 'Invasion of Ergamon', 'Botanical Plaza', 'Caves of Koilos', 'Vivid Crag', 'Nimble Obstructionist', 'Rakdos Cackler', 'Elvish Archdruid', 'High-Speed Hoverbike', 'Vivid Marsh', 'Lose Focus', 'Talisman of Curiosity', 'Deprive', 'Pharika''s Libation', 'Recruitment Officer', 'Geomancer''s Gambit', 'Genesis Wave', 'Orcish Lumberjack', 'Seedcradle Witch', 'Grafted Butcher', 'Sylvan Scrying', 'General''s Enforcer', 'Supreme Will', 'Thrill of Possibility', 'Silverbluff Bridge', 'Sarkhan the Masterless', 'Frontier Bivouac', 'Terrarion', 'Dakmor Salvage', 'Ivy Lane Denizen', 'Scrapwork Mutt', 'Succumb to Temptation', 'Commit // Memory', 'Oona''s Prowler', 'Commune with Nature', 'Concealing Curtains', 'Ovika, Enigma Goliath', 'Detention Sphere', 'Shard Volley', 'Shimmer Dragon', 'Rally the Ranks', 'Diabolic Tutor', 'Notorious Throng', 'Urban Evolution', 'Enchantress''s Presence', 'Chief Engineer', 'Kemba, Kha Enduring', 'Cremate', 'Flaying Tendrils', 'Empyrial Armor', 'Gather the Pack', 'Precinct Captain', 'Reckoner''s Bargain', 'Ponder', 'Vraan, Executioner Thane', 'Postmortem Lunge', 'Tocasia''s Dig Site', 'Soltari Priest', 'Triumphant Adventurer', 'Spectral Procession', 'Exhaustion', 'Arcum''s Astrolabe', 'Pyretic Ritual', 'Lingering Souls', 'Goblin Bombardment', 'Venser, the Sojourner', 'Treasure Cruise', 'Mana Leak', 'Frantic Search', 'Barbarian Ring', 'Night Market Lookout', 'Abiding Grace', 'Fact or Fiction', 'Zephyr Singer', 'Languish', 'Invasion of New Capenna', 'Snow-Covered Mountain', 'Late to Dinner', 'Frostwalk Bastion', 'Twinshot Sniper', 'Settle the Wreckage', 'Raise the Alarm', 'Abundant Harvest', 'Vindicate', 'Acquisitions Expert', 'Scour All Possibilities', 'Throat Slitter', 'Riveteers Charm', 'Farseek', 'Spatial Contortion', 'Angel of Grace', 'Darksteel Colossus', 'Expedition Envoy', 'Arlinn Kord', 'Shred Memory', 'Pharika''s Cure', 'Blightning', 'Phyrexian Dreadnought', 'Moorland Haunt', 'Corpse Cur', 'Serra Ascendant', 'Heap Doll', 'Doomed Traveler', 'Haunted Dead', 'Gravelgill Duo', 'Voidwing Hybrid', 'Invasion of Amonkhet', 'Healer''s Hawk', 'Felidar Cub', 'Anafenza, Kin-Tree Spirit', 'Evacuation', 'Mind''s Desire', 'Shambling Vent', 'Elas il-Kor, Sadistic Pilgrim', 'Deep Forest Hermit', 'Raze to the Ground', 'Slogurk, the Overslime', 'Changeling Outcast', 'Kami of False Hope', 'Kazandu Blademaster', 'Maestros Charm', 'Nature''s Lore', 'Celestial Colonnade', 'Grand Abolisher', 'Pain Seer', 'Resolute Reinforcements', 'Tezzeret''s Gambit', 'Gutterbones', 'Loxodon Smiter', 'Cabaretti Courtyard', 'Bitter Reunion', 'Nimble Larcenist', 'Temple of Silence', 'Basilisk Collar', 'Ichorclaw Myr', 'Blight Mamba', 'Cloudpost', 'Vault Skirge', 'Ulcerate', 'Thassa''s Intervention', 'Stern Dismissal', 'Glimpse of Tomorrow', 'Joint Exploration', 'Mystic Monastery', 'Faerie Miscreant', 'Magister of Worth', 'Mwonvuli Acid-Moss', 'Silumgar, the Drifting Death', 'Green Sun''s Twilight', 'Flooded Grove', 'Annex Sentry', 'Seal of Removal', 'Blood on the Snow', 'Sterling Grove', 'Fangren Marauder', 'Temple of Abandon', 'War Falcon', 'Open the Gates', 'Archangel Avacyn', 'Sylvan Library', 'Duneblast', 'Mountain Valley', 'Stromkirk Noble', 'Bubbling Muck', 'Deafening Clarion', 'Jungle Hollow', 'Venser, Corpse Puppet', 'Flame Rift', 'Silver-Fur Master', 'The Underworld Cookbook', 'Norn''s Inquisitor', 'Briarbridge Tracker', 'Soul Warden', 'Helm of the Host', 'Bring the Ending', 'Zur''s Weirding', 'Lightning Spear', 'Kappa Tech-Wrecker', 'Kher Keep', 'Raven''s Crime', 'Protect the Negotiators', 'Rally the Peasants', 'Tribute to Horobi', 'Battlefield Forge', 'Faeburrow Elder', 'Oona''s Grace', 'Seeker of the Way', 'Ancient Ziggurat', 'The Seedcore', 'Wizard''s Retort', 'Frantic Inventory', 'Halana and Alena, Partners', 'Nine Lives', 'Inscription of Ruin', 'Blessed Alliance', 'Evangel of Synthesis', 'Tocatli Honor Guard', 'Slaughter Pact', 'Erebos, Bleak-Hearted', 'Leonin Relic-Warder', 'Phoenix Chick', 'Thornwood Falls', 'Stupor', 'Smoldering Marsh', 'Lay Down Arms', 'Impulse', 'Fierce Empath', 'Fieldmist Borderpost', 'Repeal', 'Mulldrifter', 'Consuming Vapors', 'Zuran Orb', 'The Flame of Keld', 'Sweltering Suns', 'Forsake the Worldly', 'Okina, Temple to the Grandfathers', 'Demonic Bargain', 'Springleaf Drum', 'Argentum Masticore', 'Satyr Wayfinder', 'Black Sun''s Zenith', 'Fae of Wishes', 'Gideon''s Lawkeeper', 'Devil''s Play', 'Haunted Mire', 'Lurrus of the Dream-Den', 'Burning of Xinye', 'Scrapheap Scrounger', 'Sin Prodder', 'Goblin Electromancer', 'Anger of the Gods', 'Saproling Migration', 'Careful Cultivation', 'Odds // Ends', 'Psychatog', 'Phyrexian Revoker', 'Presence of Gond', 'Rocco, Cabaretti Caterer', 'Hooting Mandrills', 'Tear Asunder', 'Needle Spires', 'Galvanic Relay', 'Dark Petition', 'Nezahal, Primal Tide', 'Assemble the Legion', 'Dissipate', 'White Sun''s Zenith', 'Baneful Omen', 'Rix Maadi Reveler', 'Nether Spirit', 'Dross Skullbomb', 'Elite Inquisitor', 'Perilous Myr', 'Dismal Backwater', 'Tranquil Thicket', 'Earthquake', 'Marit Lage''s Slumber', 'Simic Guildgate', 'Bloodchief''s Thirst', 'Shizo, Death''s Storehouse', 'Crawling Chorus', 'Out of Time', 'Fetid Pools', 'Auriok Sunchaser', 'Circular Logic', 'Abzan Charm', 'Diffusion Sliver', 'Goldmeadow Harrier', 'Skirk Prospector', 'Kozilek''s Predator', 'Priest of the Haunted Edge', 'Augur of Bolas', 'Crux of Fate', 'Combat Thresher', 'Quiet Speculation', 'Cartel Aristocrat', 'Terramorphic Expanse', 'Wing Commando', 'Woodfall Primus', 'Ruric Thar, the Unbowed', 'Karn''s Bastion', 'Shivan Reef', 'Tezzeret, Artifice Master', 'Counterflux', 'Lochmere Serpent', 'All That Glitters', 'Abyssal Persecutor', 'Luminarch Ascension', 'Battle of Wits', 'Ranger of Eos', 'Jace Beleren', 'Plated Geopede', 'Ebony Owl Netsuke', 'Empyrial Plate', 'Tezzeret the Schemer', 'Weapons Trainer', 'Dusk // Dawn', 'Vraska''s Fall', 'Nested Shambler', 'Of One Mind', 'See Beyond', 'Tribute to Hunger', 'Kitchen Finks', 'Jwari Disruption', 'Orim''s Chant', 'Witching Well', 'Stoic Rebuttal', 'Control Magic', 'Drossforge Bridge', 'Angel of Condemnation', 'The Celestus', 'Skyshroud Elf', 'Tribal Flames', 'Quicksilver Gargantuan', 'Ghostfire Blade', 'Mikokoro, Center of the Sea', 'Squee, Goblin Nabob', 'Maelstrom Pulse', 'Tamiyo, Collector of Tales', 'Approach of the Second Sun', 'Buried Ruin', 'Tempest Djinn', 'Discovery // Dispersal', 'Game Trail', 'Woe Strider', 'Drainpipe Vermin', 'Prologue to Phyresis', 'Mistblade Shinobi', 'Sunken Hollow', 'Curious Homunculus', 'Thrash // Threat', 'Knight of Glory', 'Ghitu Lavarunner', 'Gadrak, the Crown-Scourge', 'Weathered Wayfarer', 'Lagrella, the Magpie', 'Wildborn Preserver', 'Forbid', 'Bogardan Hellkite', 'Leonin Arbiter', 'Ogre Slumlord', 'Choked Estuary', 'Golgari Guildgate', 'Sin Collector', 'Golgari Rot Farm', 'Necrogen Spellbomb', 'Think Twice', 'Kami of the Crescent Moon', 'Teferi, Mage of Zhalfir', 'Boomerang', 'Spell Pierce', 'Knowledge Pool', 'Invasion of Regatha', 'Glint-Sleeve Siphoner', 'Arcbound Ravager', 'Scrying Sheets', 'Forgotten Cave', 'Exclude', 'Ramunap Excavator', 'Mesmeric Fiend', 'Akoum Hellhound', 'Dimensional Infiltrator', 'Razortide Bridge', 'Commune with the Gods', 'Midnight Guard', 'Tyrant''s Choice', 'Hideous End', 'Llanowar Augur', 'Corrupted Crossroads', 'Smallpox', 'Experimental Augury', 'Stinkdrinker Bandit', 'Seething Song', 'Erebos''s Intervention', 'The Antiquities War', 'Madcap Experiment', 'Jace, Architect of Thought', 'Vampire Hexmage', 'General Ferrous Rokiric', 'Recurring Nightmare', 'Ajani, Mentor of Heroes', 'Pariah', 'Dark Ritual', 'Glacial Fortress', 'Stinkweed Imp', 'Mirror Entity', 'Rootbound Crag', 'Ruin Crab', 'Gruul Turf', 'Herald of the Pantheon', 'Wildfield Borderpost', 'Scab-Clan Berserker', 'Wandering Fumarole', 'Figure of Destiny', 'Artistic Refusal', 'Gideon''s Intervention', 'Mistveil Plains', 'Commence the Endgame', 'Dark Prophecy', 'Wayward Guide-Beast', 'Vampiric Rites', 'Dead Weight', 'Sphere of Safety', 'No Escape', 'Llanowar Tribe', 'Scuttling Doom Engine', 'Self-Assembler', 'Tidehollow Sculler', 'Hero''s Downfall', 'Circuit Mender', 'Runeflare Trap', 'Delver of Secrets', 'Gallia of the Endless Dance', 'Whir of Invention', 'Eternal Scourge', 'Grand Arbiter Augustin IV', 'Mazemind Tome', 'Dire-Strain Rampage', 'Rites of Initiation', 'Territorial Kavu', 'Hour of Promise', 'Sinew Sliver', 'Putrefy', 'Blade Splicer', 'Pyroclasm', 'Dark-Dweller Oracle', 'Hope of Ghirapur', 'Thraben Inspector', 'Scatter Ray', 'Valiant Changeling', 'Voldaren Pariah', 'Blue Sun''s Zenith', 'Archon of Sun''s Grace', 'Seismic Assault', 'Seal of Fire', 'Dryad Militant', 'Timely Reinforcements', 'Genesis Ultimatum', 'Sleight of Hand', 'Reveillark', 'Mistcutter Hydra', 'Selesnya Guildgate', 'Boreal Shelf', 'Dauntless Bodyguard', 'Revitalize', 'Siege Rhino', 'Stirring Wildwood', 'Grave Scrabbler', 'Myth Realized', 'Artisan of Kozilek', 'Vigor', 'Koth, Fire of Resistance', 'Swooping Lookout', 'Felidar Retreat', 'Ambush Viper', 'Frost Titan', 'Ral, Izzet Viceroy', 'Aegis of the Gods', 'Quest for the Holy Relic', 'Wrenn''s Resolve', 'Patchwork Automaton', 'Altar of the Goyf', 'Forging the Anchor', 'Universal Automaton', 'Silundi Vision', 'Mishra''s Factory', 'Fearless Fledgling', 'Mortuary Mire', 'Carnophage', 'Swiftfoot Boots', 'Dream Trawler', 'Etherium Sculptor', 'Sylvan Messenger', 'Birds of Paradise', 'Brainstone', 'Lightning Strike', 'Judith, the Scourge Diva', 'Dakkon, Shadow Slayer', 'Gift of Estates', 'Reckless Rage', 'Sculpting Steel', 'Jor Kadeen, First Goldwarden', 'Vexing Shusher', 'Canopy Vista', 'Lizard Blades', 'Temple of Triumph', 'Jukai Naturalist', 'Thopter Mechanic', 'Steel Overseer', 'Tooth and Nail', 'Caldera Hellion', 'Din of the Fireherd', 'Tidespout Tyrant', 'Disrupting Shoal', 'Grenzo, Dungeon Warden', 'Opulent Palace', 'Liliana Vess', 'Carven Caryatid', 'Leonin Warleader', 'Kruphix''s Insight', 'Archangel of Wrath', 'Demolition Field', 'Founding the Third Path', 'Izzet Guildgate', 'Stasis Snare', 'Radiant Grove', 'Faerie Vandal', 'Far // Away', 'Anguished Unmaking', 'Dying to Serve', 'Spell Burst', 'Kalastria Healer', 'Geyadrone Dihada', 'Lazotep Chancellor', 'Leather Armor', 'Nezumi Graverobber', 'Bloodchief Ascension', 'Rise and Shine', 'Vraska, Relic Seeker', 'River of Tears', 'Marble Diamond', 'Progenitor Exarch', 'Defiant Strike', 'Ensoul Artifact', 'Barbed Sextant', 'Magister Sphinx', 'Ashen Rider', 'Prohibit', 'Mirran Crusader', 'Trace of Abundance', 'Gird for Battle', 'Kemba, Kha Regent', 'Kefnet the Mindful', 'Chandra, Flamecaller', 'Divest', 'Third Path Iconoclast', 'Bilious Skulldweller', 'Pull from Tomorrow', 'Graveborn Muse', 'Obstinate Baloth', 'Timeless Witness', 'Anoint with Affliction', 'Predatory Sliver', 'Ghostly Flicker', 'Bloodline Keeper', 'Volt Charge', 'Venerated Loxodon', 'Secluded Steppe', 'Hard Evidence', 'Abundant Growth', 'Distorted Curiosity', 'Armored Scrapgorger', 'Fallaji Archaeologist', 'Turnabout', 'Chamber Sentry', 'Wonder', 'Viashino Pyromancer', 'Polukranos, World Eater', 'Altar of the Brood', 'Hypnotic Specter', 'Bogbrew Witch', 'Nevermore', 'Pillage', 'Judge''s Familiar', 'Vampire Lacerator', 'Nimble Trapfinder', 'Oath of Teferi', 'Master of Etherium', 'Fight as One', 'Godo, Bandit Warlord', 'Corrupted Conviction', 'Llanowar Elves', 'The Scorpion God', 'Simian Sling', 'Oath of Kaya', 'Into the Story', 'Cliffside Lookout', 'Embodiment of Fury', 'Ancient Amphitheater', 'Tymaret, Chosen from Death', 'Sins of the Past', 'Greater Tanuki', 'Benevolent Bodyguard', 'Bloodsoaked Champion', 'Sign in Blood', 'Call to the Grave', 'Rakdos Guildgate', 'Bloodthrone Vampire'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Gird for Battle', 'Vampire Lacerator', 'Melira, Sylvok Outcast', 'Heliod''s Intervention', 'Syphon Life', 'Polukranos, World Eater', 'Lochmere Serpent', 'Incinerate', 'Surge of Salvation', 'Crystal Grotto', 'Throat Slitter', 'Commune with Spirits', 'Ogre Slumlord', 'Bloodchief Ascension', 'Warstorm Surge', 'Stubborn Denial', 'Grolnok, the Omnivore', 'Sins of the Past', 'Tezzeret the Schemer', 'Terastodon', 'Oust', 'Flaying Tendrils', 'Kor Skyfisher', 'Third Path Iconoclast', 'Golgari Rot Farm', 'Blood Artist', 'Fiery Justice', 'Sculpted Perfection', 'Halimar Excavator', 'Big Game Hunter', 'Diabolic Tutor', 'Shardless Agent', 'Silverblade Paladin', 'Locket of Yesterdays', 'Springleaf Drum', 'Llanowar Augur', 'Weathered Wayfarer', 'Ossification', 'Carven Caryatid', 'Pyrite Spellbomb', 'Grim Haruspex', 'Enchantress''s Presence', 'Folio of Fancies', 'Ghostly Flicker', 'Dauntless Bodyguard', 'Barbarian Ring', 'Xenagos, the Reveler', 'Mistblade Shinobi', 'Control Magic', 'White Sun''s Zenith', 'Call of the Death-Dweller', 'Bolas''s Citadel', 'Nether Spirit', 'Secluded Steppe', 'Racers'' Ring', 'Scarab Feast', 'Swiftfoot Boots', 'Dead Weight', 'Faerie Vandal', 'Metalwork Colossus', 'Obscura Charm', 'Runed Halo', 'Nimbus Maze', 'Expedite', 'Narcomoeba', 'Hanweir Garrison', 'Vampire Nighthawk', 'Memory Lapse', 'Graveborn Muse', 'Haunted Dead', 'Mirage Mirror', 'Geomancer''s Gambit', 'Frenetic Sliver', 'Seal of Removal', 'Prologue to Phyresis', 'Circuit Mender', 'Rites of Initiation', 'Idyllic Beachfront', 'Restore Balance', 'Dispatch', 'Kitchen Imp', 'Stupor', 'Floriferous Vinewall', 'Bloodthrone Vampire', 'Toolcraft Exemplar', 'Convolute', 'Sign in Blood', 'Reckless Charge', 'Tocasia''s Dig Site', 'Consul''s Lieutenant', 'Vraan, Executioner Thane', 'Knight of New Alara', 'Adanto Vanguard', 'Satyr Hoplite', 'Phyrexian Censor', 'Falkenrath Pit Fighter', 'Swooping Lookout', 'Founding the Third Path', 'Ivy Lane Denizen', 'Leonin Warleader', 'Evacuation', 'Strike It Rich', 'Kami of False Hope', 'Disrupting Shoal', 'Bituminous Blast', 'Experimental Synthesizer', 'Gallia of the Endless Dance', 'Fieldmist Borderpost', 'Tooth and Nail', 'Change the Equation', 'Repudiate // Replicate', 'Draugr Necromancer', 'Wayward Guide-Beast', 'Hooting Mandrills', 'Blightning', 'Sunblade Samurai', 'Fabricate', 'Gavony Township', 'Stern Dismissal', 'Reflector Mage', 'Frantic Inventory', 'Gaea''s Will', 'Spectral Procession', 'Acquisitions Expert', 'Scour All Possibilities', 'Disenchant', 'Archpriest of Shadows', 'Treasure Cruise', 'Karumonix, the Rat King', 'Check for Traps', 'Boomerang', 'Darksteel Citadel', 'Archangel of Wrath', 'Grove of the Guardian', 'Bilious Skulldweller', 'Ancient Stirrings', 'Hideous End', 'The Underworld Cookbook', 'Wandering Fumarole', 'Etherium Sculptor', 'Elite Inquisitor', 'Bastion of Remembrance', 'Universal Automaton', 'Honor of the Pure', 'Faerie Miscreant', 'Valiant Changeling', 'Smoldering Marsh', 'Gift of Estates', 'Chain Lightning', 'Sunstrike Legionnaire', 'Kaito, Dancing Shadow', 'Bubbling Cauldron', 'Soltari Priest', 'Shimmer Dragon', 'Curse of Exhaustion', 'Jungle Hollow', 'Second Sunrise', 'Grave Titan', 'Forbidden Alchemy', 'Cabal Therapist', 'Agonizing Remorse', 'Chandra, Fire Artisan', 'Gateway Plaza', 'Rally the Ancestors', 'Oblivion Ring', 'Teferi, Mage of Zhalfir', 'Master of Death', 'Commence the Endgame', 'Aetherblade Agent', 'Anguished Unmaking', 'Dross Skullbomb', 'Lose Focus', 'Pieces of the Puzzle', 'Vadrik, Astral Archmage', 'Kappa Tech-Wrecker', 'Mountain Valley', 'Scab-Clan Berserker', 'Vraska''s Fall', 'Invigorate', 'Ancestral Blade', 'Overgrowth', 'Mulch', 'Careful Cultivation', 'Sheoldred''s Edict', 'Silumgar, the Drifting Death', 'Cloudpost', 'Price of Progress', 'Sea Gate Oracle', 'Rootwater Depths', 'Consuming Vapors', 'Geothermal Bog', 'Orzhov Charm', 'Akoum Hellhound', 'Hissing Quagmire', 'Inevitable Betrayal', 'Elvish Mystic', 'Patchwork Automaton', 'Raging Ravine', 'Llanowar Mentor', 'Worship', 'Lazotep Chancellor', 'Bontu''s Last Reckoning', 'Volt Charge', 'Combat Research', 'Alms of the Vein', 'Timely Reinforcements', 'Porphyry Nodes', 'Invasion of Kaladesh', 'Geyadrone Dihada', 'Deep Forest Hermit', 'Declaration in Stone', 'Mistvein Borderpost', 'Wood Elves', 'Gift of Immortality', 'Angel of Serenity', 'Nameless Inversion', 'Oath of Kaya', 'Goldmire Bridge', 'Sea-Dasher Octopus', 'Esper Charm', 'Molten Tributary', 'Languish', 'Silver-Fur Master', 'Wild Cantor', 'Vedalken Heretic', 'Become Immense', 'Helm of the Host', 'Tyrant''s Choice', 'Presence of Gond', 'Invoke Calamity', 'Lead the Stampede', 'Temple of Abandon', 'Orcish Lumberjack', 'Time of Need', 'Ertai''s Scorn', 'Sorin, Vengeful Bloodlord', 'Blue Sun''s Zenith', 'Sinister Concoction', 'Invasion of Zendikar', 'Precinct Captain', 'Kher Keep', 'Seal of Fire', 'Ancient Amphitheater', 'Upheaval', 'Knowledge Pool', 'Pore Over the Pages', 'Game Trail', 'Disciple of Bolas', 'Defiant Strike', 'Thawing Glaciers', 'Yosei, the Morning Star', 'Auriok Sunchaser', 'Slagwoods Bridge', 'Izzet Guildgate', 'Into the Roil', 'Squadron Hawk', 'Mazemind Tome', 'Green Sun''s Twilight', 'Recurring Nightmare', 'Dark Ritual', 'Ethersworn Sphinx', 'Consult the Necrosages', 'Vivid Grove', 'Nevermore', 'Recruitment Officer', 'Desperate Ritual', 'Tuktuk the Explorer', 'Sweltering Suns', 'Varolz, the Scar-Striped', 'Might of Old Krosa', 'Purify the Grave', 'Torens, Fist of the Angels', 'Jungle Shrine', 'Altered Ego', 'Cut Down', 'Rune Snag', 'Rule of Law', 'Corpse Cur', 'Archangel Avacyn', 'Apostle''s Blessing', 'Curiosity', 'Soul Warden', 'Settle the Wreckage', 'Vault of the Archangel', 'Tendo Ice Bridge', 'Forked Bolt', 'Westvale Abbey', 'Shizo, Death''s Storehouse', 'Heap Doll', 'Argentum Armor', 'Exclude', 'Llanowar Elves', 'Dimir Aqueduct', 'Maelstrom Pulse', 'Terrarion', 'Carnophage', 'Nightscape Familiar', 'Cabal Ritual', 'Vault Skirge', 'Fumigate', 'Kitesail Freebooter', 'Triumphant Adventurer', 'Grave Scrabbler', 'Ponder', 'Joint Exploration', 'Altar of the Brood', 'Stromkirk Noble', 'Elvish Rejuvenator', 'Archaeomancer', 'Sunken Hollow', 'Crumbling Vestige', 'Restoration Angel', 'Evolving Wilds', 'Lightning Spear', 'Dovin''s Acuity', 'Pharika''s Cure', 'Thopter Spy Network', 'Empty the Warrens', 'Shigeki, Jukai Visionary', 'Sphinx''s Herald', 'Kessig Wolf Run', 'Castigate', 'Kazandu Blademaster', 'Genesis Ultimatum', 'Phoenix Chick', 'Basking Rootwalla', 'Shimmerdrift Vale', 'Search for Tomorrow', 'Moment of Truth', 'Goldmeadow Harrier', 'Saproling Migration', 'Assault // Battery', 'Distorted Curiosity', 'Gadrak, the Crown-Scourge', 'Grand Architect', 'Ayara, First of Locthwain', 'Reveillark', 'Elemental Masterpiece', 'Vessel of Nascency', 'Ulcerate', 'Temple of Deceit', 'Quicksilver Gargantuan', 'Sleight of Hand', 'Simian Spirit Guide', 'Vexing Shusher', 'Halo Forager', 'Ayli, Eternal Pilgrim', 'Mesa Enchantress', 'Dark Petition', 'Stone Rain', 'Tymaret, Chosen from Death', 'Vapor Snag', 'Farseek', 'Resurgent Belief', 'Abzan Charm', 'Erebos''s Intervention', 'Froghemoth', 'Rustvale Bridge', 'Guile', 'Silverbluff Bridge', 'Nephalia Drownyard', 'Herald of the Pantheon', 'Brokers Hideout', 'Tilling Treefolk', 'Goblin Dark-Dwellers', 'Fallaji Archaeologist', 'Rocco, Cabaretti Caterer', 'Glimmerpost', 'Seeker of the Way', 'Elas il-Kor, Sadistic Pilgrim', 'Yavimaya Coast', 'Ornithopter', 'Tendrils of Agony', 'Summary Dismissal', 'Kiora Bests the Sea God', 'Disallow', 'Snow-Covered Plains', 'Empyrial Plate', 'Briarbridge Tracker', 'Pack Rat', 'Goblin Bombardment', 'Reinforced Ronin', 'Canopy Vista', 'Izzet Boilerworks', 'Argentum Masticore', 'Drossforge Bridge', 'Urban Evolution', 'Port Town', 'Arbor Elf', 'Lodestone Golem', 'Staff of Domination', 'Glimpse of Tomorrow', 'Electrolyze', 'Resolute Reinforcements', 'Dreams of Steel and Oil', 'Morsel Theft', 'Jace, Architect of Thought', 'Nine Lives', 'Acidic Slime', 'Nezumi Graverobber', 'Terminate', 'Canyon Slough', 'Anoint with Affliction', 'Hornet Queen', 'Savage Lands', 'Lost Legacy', 'Sphere of Safety', 'Slaughter Pact', 'Myr Battlesphere', 'Raffine''s Informant', 'Simian Sling', 'Spell Pierce', 'Brave the Sands', 'Godo, Bandit Warlord', 'Blanchwood Prowler', 'Rabbit Battery', 'Mistvault Bridge', 'Bogbrew Witch', 'Energy Refractor', 'Festering Newt', 'Protect the Negotiators', 'Yahenni''s Expertise', 'Tezzeret''s Gambit', 'Unsubstantiate', 'Quest for the Holy Relic', 'Dryad Militant', 'Leonin Arbiter', 'Knight of Glory', 'Timeless Dragon', 'Tempest Djinn', 'Sire of Insanity', 'Glint-Sleeve Siphoner', 'Solemn Simulacrum', 'Mindcrank', 'Shambling Vent', 'Llanowar Tribe', 'Voltage Surge', 'Exhaustion', 'Temple of Enlightenment', 'Slagstorm', 'Nomad Outpost', 'Putrefy', 'Night Market Lookout', 'Chandra, Pyromaster', 'Hope of Ghirapur', 'Supreme Will', 'Healer''s Hawk', 'Duneblast', 'Solitary Confinement', 'Perilous Myr', 'Commit // Memory', 'Quicken', 'Victim of Night', 'Rotting Rats', 'Mesmeric Fiend', 'Stone Haven Outfitter', 'Liliana Vess', 'The Celestus', 'Mothdust Changeling', 'Buried Ruin', 'Serra Ascendant', 'Aether Spellbomb', 'Collected Conjuring', 'Mishra''s Factory', 'Condemn', 'Unctus, Grand Metatect', 'Delver of Secrets', 'Wing Commando', 'Crux of Fate', 'Mistcutter Hydra', 'Veinfire Borderpost', 'Altar of the Goyf', 'Archon of Sun''s Grace', 'Flame Rift', 'Sylvan Advocate', 'Kemba, Kha Enduring', 'Sacred Peaks', 'Venser, the Sojourner', 'Brineborn Cutthroat', 'Myr Superion', 'Tribute to Hunger', 'Utter End', 'Case the Joint', 'Fireblade Charger', 'Ammit Eternal', 'Thornglint Bridge', 'Galvanic Relay', 'Mana Leak', 'Demolition Field', 'Brainstone', 'Day of Judgment', 'Silversmote Ghoul', 'Secluded Courtyard', 'Marwyn, the Nurturer', 'Plated Geopede', 'Thrash // Threat', 'Dragon''s Hoard', 'Bring the Ending', 'Fetid Pools', 'Notorious Throng', 'Yavimaya Iconoclast', 'Experimental Augury', 'Doom Blade', 'Tribute to Horobi', 'Mindslaver', 'Vampire Neonate', 'Botanical Plaza', 'Heartless Act', 'Ruin Crab', 'Changeling Outcast', 'Circular Logic', 'Waking the Trolls', 'Scrabbling Claws', 'Opulent Palace', 'Twinshot Sniper', 'Dead // Gone', 'Woodfall Primus', 'Melira, the Living Cure', 'Embodiment of Fury', 'Dying to Serve', 'Dead of Winter', 'Progenitor Exarch', 'Rust Goliath', 'Kemba, Kha Regent', 'Cabal Initiate', 'Master of Etherium', 'Thragtusk', 'Wrenn''s Resolve', 'Abiding Grace', 'Knight of the Reliquary', 'Jwari Disruption', 'Weapons Trainer', 'Ranger of Eos', 'Dakkon, Shadow Slayer', 'Frostwalk Bastion', 'Sigrid, God-Favored', 'Ignite Memories', 'Talisman of Curiosity', 'Rakdos Charm', 'Bident of Thassa', 'Putrid Imp', 'Ghitu Lavarunner', 'Cataclysmic Gearhulk', 'Misery Charm', 'Rites of Spring', 'Pardic Miner', 'Aetherspouts', 'Mouth of Ronom', 'Big Score', 'Rally the Ranks', 'Martyr of Sands', 'Tranquil Thicket', 'Zombie Infestation', 'Dokuchi Silencer', 'Ral, Storm Conduit', 'Bone Shards', 'Corrupted Crossroads', 'Remorseful Cleric', 'Mirran Crusader', 'General''s Enforcer', 'Scrapheap Scrounger', 'Lavaclaw Reaches', 'Detention Sphere', 'Search for Azcanta', 'Boros Guildgate', 'Flametongue Kavu', 'Corrupted Conviction', 'Anafenza, Kin-Tree Spirit', 'Murderous Redcap', 'Demonic Bargain', 'Darksteel Colossus', 'Cryptic Caves', 'Wonder', 'Kalastria Healer', 'Loxodon Smiter', 'Spectral Shift', 'Tamiyo, Collector of Tales', 'Platinum Angel', 'Groundswell', 'Sudden Edict', 'Dismal Backwater', 'Valakut Exploration', 'Go for the Throat', 'Grapple with the Past', 'Chandra, Flamecaller', 'All That Glitters', 'Needle Spires', 'Scattered Groves', 'Kitchen Finks', 'Steel Overseer', 'Bogardan Hellkite', 'Maze''s End', 'Armored Scrapgorger', 'Stormrider Spirit', 'Sol Talisman', 'Norn''s Inquisitor', 'Rally the Peasants', 'Wall of Omens', 'Baneful Omen', 'Greater Tanuki', 'Frontier Bivouac', 'Skirk Prospector', 'Stinkweed Imp', 'Anticipate', 'Sultai Charm', 'Chamber Sentry', 'Stasis Snare', 'Eidolon of Blossoms', 'Nimble Trapfinder', 'Orzhov Basilica', 'General Ferrous Rokiric', 'Herd Baloth', 'Angel of Grace', 'Djinn of the Fountain', 'Lightning Strike', 'Bloodvial Purveyor', 'Return to the Ranks', 'Annex Sentry', 'Smuggler''s Copter', 'Primal Command', 'Ensoul Artifact', 'Deprive', 'Cartel Aristocrat', 'Dark-Dweller Oracle', 'Runeflare Trap', 'Temple of Silence', 'Epic Experiment', 'Felidar Cub', 'Razortide Bridge', 'Gutterbones', 'Succumb to Temptation', 'Birds of Paradise', 'Ovika, Enigma Goliath', 'Satyr Wayfinder', 'Grenzo, Dungeon Warden', 'Venser, Corpse Puppet', 'Abundant Harvest', 'Discovery // Dispersal', 'Hinterland Harbor', 'Mind''s Desire', 'Cathartic Reunion', 'Brain Freeze', 'Radiant Grove', 'Whispersilk Cloak', 'Monument to Perfection', 'Nekrataal', 'Zhalfirin Shapecraft', 'Battle of Wits', 'Forbid', 'Thopter Mechanic', 'Silumgar''s Scorn', 'Seismic Assault', 'Assemble the Legion', 'Angel of Despair', 'Artisan of Kozilek', 'King Darien XLVIII', 'Consume the Meek', 'Hesitation', 'Curious Homunculus', 'Wolfbriar Elemental', 'Gather the Pack', 'Aetherling', 'Knight of the White Orchid', 'Counterflux', 'Vryn Wingmare', 'Heliod''s Pilgrim', 'Pyroclasm', 'Crawling Barrens', 'Sinew Sliver', 'Selesnya Guildgate', 'Phyrexian Dreadnought', 'Solemnity', 'Moon-Circuit Hacker', 'Ezuri, Renegade Leader', 'Devil''s Play', 'The Antiquities War', 'Akiri, Fearless Voyager', 'Voldaren Pariah', 'Phyrexian Revoker', 'Midnight Guard', 'Open the Gates', 'Pain Seer', 'Flooded Grove', 'The Scorpion God', 'Sylvan Caryatid', 'Graaz, Unstoppable Juggernaut', 'Doomskar', 'War Falcon', 'Fierce Empath', 'Fire Prophecy', 'Hypergenesis', 'Eiganjo Castle', 'Psychic Possession', 'Ivory Tower', 'Prohibit', 'Sylvan Scrying', 'Prosperous Thief', 'Boon-Bringer Valkyrie', 'Din of the Fireherd', 'Isolated Chapel', 'Benevolent Bodyguard', 'Glistener Elf', 'Phyrexian Unlife', 'Sunlit Marsh', 'Vraska''s Contempt', 'Glacial Fortress', 'Faith''s Reward', 'Stinkdrinker Bandit', 'Sin Collector', 'Lagrella, the Magpie', 'Dark Prophecy', 'Kunoros, Hound of Athreos', 'Decree of Justice', 'Ichorclaw Myr', 'Moorland Haunt', 'Invasion of New Capenna', 'Ashnod, Flesh Mechanist', 'Gnat Miser', 'Banishing Slash', 'Mishra''s Research Desk', 'Frost Titan', 'Smallpox', 'The Seedcore', 'Viashino Pyromancer', 'Winds of Abandon', 'Zuran Orb', 'Graven Cairns', 'Dissipate', 'Inscription of Ruin', 'Vindicate', 'Wildborn Preserver', 'Oni-Cult Anvil', 'Precursor Golem', 'Endbringer', 'Mastermind''s Acquisition', 'Cabaretti Courtyard', 'Nezahal, Primal Tide', 'Spikefield Hazard', 'Stoic Rebuttal', 'Wildfield Borderpost', 'Invasion of Regatha', 'Stir the Grave', 'Ishkanah, Grafwidow', 'Explore', 'Invasion of Azgol', 'Lizard Blades', 'Unbreakable Formation', 'Viscera Seer', 'Myth Realized', 'Skymarcher Aspirant', 'Favored Hoplite', 'Gruul Guildgate', 'Dreadhorde Butcher', 'Evangel of Synthesis', 'Pull from Tomorrow', 'Lantern-Lit Graveyard', 'Soldier of the Pantheon', 'Trace of Abundance', 'Luminarch Ascension', 'Earthquake', 'Raven''s Crime', 'Fight as One', 'Gilt-Leaf Archdruid', 'Ardent Recruit', 'Nimble Obstructionist', 'Revitalize', 'Putrid Goblin', 'Genesis Wave', 'Kabira Takedown', 'Crack the Earth', 'Pillar of the Paruns', 'Sulfur Falls', 'Vivid Crag', 'Ephara, God of the Polis', 'Kogla, the Titan Ape', 'Pillage', 'Mirror Entity', 'Sylvan Library', 'The Mending of Dominaria', 'Shriekmaw', 'Expedition Envoy', 'Rootbound Crag', 'Obliterate', 'Ghostly Pilferer', 'Ral, Izzet Viceroy', 'Gruul Turf', 'Inkwell Leviathan', 'Moderation', 'Grand Abolisher', 'Galerider Sliver', 'Teneb, the Harvester', 'Oracle of Tragedy', 'Sandwurm Convergence', 'Bloodchief''s Thirst', 'Nested Shambler', 'Oracle of Mul Daya', 'Ground Seal', 'Kor Firewalker', 'Wooded Bastion', 'Chief Engineer', 'Eldrazi Skyspawner', 'Arguel''s Blood Fast', 'Arlinn Kord', 'Mausoleum Secrets', 'Kozilek''s Predator', 'Blightbelly Rat', 'Raze to the Ground', 'Garruk Wildspeaker', 'Fruit of Tizerus', 'Dimir Guildgate', 'Dusk // Dawn', 'Temple of Malady', 'Farhaven Elf', 'Forgotten Cave', 'Oona''s Grace', 'Oona''s Prowler', 'Teshar, Ancestor''s Apostle', 'Barbed Sextant', 'Nissa, Steward of Elements', 'Call to the Grave', 'Halana and Alena, Partners', 'Thundermaw Hellkite', 'Glorybringer', 'Terramorphic Expanse', 'Gather the Townsfolk', 'Avacyn''s Pilgrim', 'Quiet Speculation', 'World Shaper', 'Fevered Visions', 'Tomebound Lich', 'Graven Lore', 'Lathliss, Dragon Queen', 'True Believer', 'Harmonize', 'Mulldrifter', 'Think Twice', 'Rain of Tears', 'Devious Cover-Up', 'Malakir Rebirth', 'Ambush Viper', 'Arch of Orazca', 'Vampiric Rites', 'Augur of Bolas', 'Temple of Plenty', 'Reckoner''s Bargain', 'Kumano Faces Kakkazan', 'Leonin Relic-Warder', 'Dakmor Salvage', 'Prophetic Prism', 'Dimensional Infiltrator', 'Wanderwine Hub', 'Fearless Fledgling', 'Wasteland Strangler', 'Ajani, Mentor of Heroes', 'Yisan, the Wanderer Bard', 'Sprite Dragon', 'Elvish Visionary', 'Scuttling Doom Engine', 'Of One Mind', 'Phalanx Leader', 'Murderous Cut', 'Coiling Oracle', 'Serrated Scorpion', 'Cliffside Lookout', 'Snow-Covered Swamp', 'Jace Beleren', 'Gnawing Vermin', 'Leonin Lightscribe', 'Bubbling Muck', 'Gideon Jura', 'Whir of Invention', 'Executioner''s Capsule', 'Stirring Wildwood', 'Sarkhan the Masterless', 'Fangren Marauder', 'Deep Analysis', 'Clifftop Retreat', 'Elspeth Conquers Death', 'Champion of Wits', 'Tear Asunder', 'Combat Thresher', 'Zephyr Singer', 'Invisible Stalker', 'Unburial Rites', 'Sin Prodder', 'Bloodsoaked Champion', 'Rishkar, Peema Renegade', 'Ghostfire Blade', 'Vraska, Relic Seeker', 'Commune with Nature', 'Venser, Shaper Savant', 'Repeal', 'Verduran Enchantress', 'Emmara, Soul of the Accord', 'Shard Volley', 'Merciless Eviction', 'Smother', 'Gitaxian Probe', 'Vivid Marsh', 'Kambal, Consul of Allocation', 'Union of the Third Path', 'Azorius Charm', 'Wilt', 'Duplicant', 'Voidwing Hybrid', 'Riveteers Charm', 'Timeless Witness', 'Oona, Queen of the Fae', 'Lotus Cobra', 'Far // Away', 'Commune with the Gods', 'Ramunap Excavator', 'Sigil of the Empty Throne', 'Hostage Taker', 'Elves of Deep Shadow', 'Gleeful Demolition', 'Chief of the Foundry', 'Late to Dinner', 'Tangle', 'Glamerdye', 'Fetid Heath', 'Spatial Contortion', 'Simic Guildgate', 'Forging the Anchor', 'Koth, Fire of Resistance', 'Marit Lage''s Slumber', 'Gideon''s Intervention', 'Tainted Indulgence', 'Hyena Umbra', 'Gideon''s Lawkeeper', 'Orim''s Chant', 'Open the Armory', 'Thrill of Possibility', 'Ebony Owl Netsuke', 'Aegis of the Gods', 'Snow-Covered Mountain', 'Ethereal Armor', 'Rise and Shine', 'Artistic Refusal', 'Temple of Mystery', 'Throne of the God-Pharaoh', 'Marble Diamond', 'Eternal Scourge', 'Network Disruptor', 'Phantasmal Image', 'Kjeldoran Outpost', 'Nullpriest of Oblivion', 'Kami of the Crescent Moon', 'Saffi Eriksdotter', 'Angrath, the Flame-Chained', 'Fertile Ground', 'Nissa, Worldwaker', 'Fleecemane Lion', 'Rix Maadi Reveler', 'Judge''s Familiar', 'Basilisk Collar', 'Tidespout Tyrant', 'Tectonic Edge', 'Giant Killer', 'Lay Down Arms', 'Sarkhan, the Dragonspeaker', 'Fact or Fiction', 'Dread Return', 'Cathedral of War', 'Yawgmoth''s Bargain', 'Divinity of Pride', 'Ashen Rider', 'Woodland Cemetery', 'Maestros Charm', 'Lingering Souls', 'Bloodline Keeper', 'Dread Wanderer', 'Okina, Temple to the Grandfathers', 'Karn''s Bastion', 'Seedcradle Witch', 'Steppe Lynx', 'Cleansing Wildfire', 'Battle of Frost and Fire', 'Sterling Grove', 'Titania, Protector of Argoth', 'Murmuring Bosk', 'Blazing Rootwalla', 'Kruphix''s Insight', 'Sever the Bloodline', 'Dawn of Hope', 'Drowner of Hope', 'Destroy Evil', 'Genesis Hydra', 'Priest of the Haunted Edge', 'Haunted Mire', 'Goblin Electromancer', 'Steel Leaf Champion', 'Malcator, Purity Overseer', 'Firewild Borderpost', 'Spirited Companion', 'Arbalest Engineers', 'Shalai, Voice of Plenty', 'Sculpting Steel', 'Council''s Judgment', 'The Flame of Keld', 'Empyrial Armor', 'Gravelgill Duo', 'Unholy Heat', 'Raise the Alarm', 'Anger of the Gods', 'Fracturing Gust', 'Makeshift Mannequin', 'Frost Marsh', 'Magister of Worth', 'Hero''s Downfall', 'Stoke the Flames', 'Increasing Ambition', 'Tidehollow Sculler', 'Malicious Malfunction', 'Rakdos''s Return', 'Frantic Search', 'Brave the Elements', 'Erebos, Bleak-Hearted', 'Wizard''s Retort', 'Magister Sphinx', 'Abyssal Persecutor', 'Lavinia of the Tenth', 'Gruul Spellbreaker', 'Vines of Vastwood', 'Eldrazi Displacer', 'Contaminated Aquifer', 'Skyclave Shade', 'Diffusion Sliver', 'Into the Story', 'Demonic Dread', 'Rakdos Guildgate', 'Ashenmoor Liege', 'Mikokoro, Center of the Sea', 'Wrench Mind', 'Midnight Reaper', 'Jor Kadeen, First Goldwarden', 'Mindsplice Apparatus', 'Blessed Alliance', 'Fade from Memory', 'Zur''s Weirding', 'Doomed Traveler', 'Slogurk, the Overslime', 'Sheltered Thicket', 'Hada Freeblade', 'Approach of the Second Sun', 'Pariah', 'Gloomshrieker', 'Scrying Sheets', 'Hard Evidence', 'Golgari Guildgate', 'Mystic Monastery', 'Arcane Sanctum', 'Necrogen Spellbomb', 'Touch the Spirit Realm', 'Kefnet the Mindful', 'Cloudshredder Sliver', 'Hieroglyphic Illumination', 'Shape Anew', 'Cultivate', 'Eerie Ultimatum', 'Burst Lightning', 'Nimble Larcenist', 'Yorion, Sky Nomad', 'Terminus', 'Rise // Fall', 'Dream Trawler', 'Mistveil Plains', 'Shred Memory', 'Tangled Islet', 'Mnemonic Sphere', 'Tresserhorn Sinks', 'Vigor', 'Spell Burst', 'Odds // Ends', 'Possibility Storm', 'Figure of Destiny', 'Boros Elite', 'Fyndhorn Elves', 'Reckless Rage', 'Blade Splicer', 'Invasion of Ergamon', 'Chittering Rats', 'Kaya, Ghost Assassin', 'Jokulhaups', 'Temple of Triumph', 'Oath of Teferi', 'Unlucky Witness', 'Madcap Experiment', 'Vampire Hexmage', 'Ruric Thar, the Unbowed', 'Elvish Clancaller', 'Summer Bloom', 'Hour of Promise', 'Sandsteppe Citadel', 'Akroan Crusader', 'Hall of Oracles', 'Servo Exhibition', 'Azorius Guildgate', 'Breya''s Apprentice', 'Burning of Xinye', 'Self-Assembler', 'Silundi Vision', 'Thaumatic Compass', 'Pharika''s Libation', 'Voyaging Satyr', 'Invasion of Amonkhet', 'Mystical Teachings', 'Boreal Shelf', 'Obstinate Baloth', 'Ulamog''s Crusher', 'Dire-Strain Rampage', 'Tocatli Honor Guard', 'Grafted Butcher', 'Surrak, the Hunt Caller', 'Anafenza, the Foremost', 'Ajani, Adversary of Tyrants', 'Black Sun''s Zenith', 'Concealing Curtains', 'Bitter Ordeal', 'Felidar Retreat', 'Witching Well', 'Caldera Hellion', 'Woe Strider', 'Blight Mamba', 'Shrapnel Blast', 'Fiery Temper', 'Greater Gargadon', 'Tezzeret, Artifice Master', 'Choked Estuary', 'Ransack the Lab', 'Ghost Quarter', 'Elixir of Immortality', 'Peek', 'No Escape', 'Obscura Storefront', 'Orzhov Guildgate', 'Blood on the Snow', 'Drowned Rusalka', 'Cremate', 'Rift Bolt', 'Rampant Growth', 'Delay', 'Riveteers Overlook', 'Seething Song', 'Demigod of Revenge', 'Angel of Condemnation', 'Xerex Strobe-Knight', 'Tanglepool Bridge', 'Idyllic Tutor', 'Bloodbraid Elf', 'Inscribed Tablet', 'Hypnotic Specter', 'Shivan Reef', 'Drake Haven', 'Engulf the Shore', 'Colossal Skyturtle', 'Pyretic Ritual', 'Kiora, the Crashing Wave', 'Night of Souls'' Betrayal', 'Haunted Fengraf', 'Lurrus of the Dream-Den', 'Howling Mine', 'Venerated Loxodon', 'Feed the Swarm', 'Celestial Colonnade', 'Postmortem Lunge', 'Dregscape Zombie', 'Seal of Cleansing', 'Ancient Ziggurat', 'Arcum''s Astrolabe', 'Siege Rhino', 'Ravenous Squirrel', 'Divest', 'Battlefield Forge', 'River of Tears', 'Otherworldly Journey', 'Laboratory Maniac', 'Elderscale Wurm', 'Tribal Flames', 'Herd Migration', 'Grand Arbiter Augustin IV', 'Thassa''s Intervention', 'Drainpipe Vermin', 'Silent Gravestone', 'Sunpetal Grove', 'Icehide Golem', 'Obzedat, Ghost Council', 'Territorial Kavu', 'Radha, Heart of Keld', 'Wrath of God', 'Forsake the Worldly', 'Meeting of Minds', 'Barter in Blood', 'Bitter Reunion', 'Jwari Shapeshifter', 'Caves of Koilos', 'Death Cloud', 'Jukai Naturalist', 'Impulse', 'Talisman of Unity', 'Chaotic Transformation', 'Leather Armor', 'Out of Time', 'Memoricide', 'Gigadrowse', 'Dragonskull Summit', 'Tolarian Terror', 'Deafening Clarion', 'Nature''s Lore', 'Spellweaver Helix', 'Unmarked Grave', 'Negate', 'Marauding Blight-Priest', 'Drown in Ichor', 'Thraben Inspector', 'Sylvan Messenger', 'Thornwood Falls', 'Rakdos Cackler', 'Crawling Chorus', 'Ulvenwald Hydra', 'Squee, Goblin Nabob', 'Huatli, Radiant Champion', 'Mortuary Mire', 'Fae of Wishes', 'Voidslime', 'Skyshroud Elf', 'Yasharn, Implacable Earth', 'Turnabout', 'Arcbound Ravager', 'Elvish Archdruid', 'Duress', 'Izzet Charm', 'Krosan Grip', 'Cauldron Familiar', 'Scrapwork Mutt', 'Abundant Growth', 'See Beyond', 'Miasmic Mummy', 'Scatter Ray', 'High-Speed Hoverbike', 'Psychatog', 'Drowned Catacomb', 'Destiny Spinner', 'Faeburrow Elder', 'Mwonvuli Acid-Moss', 'Judith, the Scourge Diva', 'Ally Encampment', 'Bump in the Night', 'Fatestitcher', 'Mina and Denn, Wildborn', 'Predatory Sliver'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.5 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Kemba, Kha Enduring', 'Hissing Quagmire', 'Abzan Charm', 'Bump in the Night', 'Tocatli Honor Guard', 'Zur''s Weirding', 'Rise // Fall', 'Seedcradle Witch', 'Bolas''s Citadel', 'Chain Lightning', 'Valiant Changeling', 'Silverblade Paladin', 'Jungle Shrine', 'Devious Cover-Up', 'Shrapnel Blast', 'Cabal Ritual', 'Invigorate', 'Gitaxian Probe', 'Cabaretti Courtyard', 'Third Path Iconoclast', 'Blazing Rootwalla', 'Castigate', 'Grim Haruspex', 'Earthquake', 'Destroy Evil', 'Grand Architect', 'Vadrik, Astral Archmage', 'Artistic Refusal', 'Fieldmist Borderpost', 'Bident of Thassa', 'Dimensional Infiltrator', 'Dimir Aqueduct', 'Rotting Rats', 'Pillar of the Paruns', 'Talisman of Unity', 'Nezumi Graverobber', 'Blessed Alliance', 'Woe Strider', 'Altered Ego', 'Hieroglyphic Illumination', 'Leather Armor', 'Valakut Exploration', 'Fallaji Archaeologist', 'Goldmire Bridge', 'Siege Rhino', 'Faeburrow Elder', 'Liliana Vess', 'Heap Doll', 'Quicksilver Gargantuan', 'Disrupting Shoal', 'Blightbelly Rat', 'Ayara, First of Locthwain', 'Joint Exploration', 'Orim''s Chant', 'Open the Gates', 'Shalai, Voice of Plenty', 'Zhalfirin Shapecraft', 'Yawgmoth''s Bargain', 'Demonic Dread', 'Jukai Naturalist', 'Ornithopter', 'Aetherling', 'Cliffside Lookout', 'Barbed Sextant', 'Glint-Sleeve Siphoner', 'Elas il-Kor, Sadistic Pilgrim', 'Dismal Backwater', 'Arcane Sanctum', 'Gnawing Vermin', 'Consult the Necrosages', 'Swiftfoot Boots', 'Mulldrifter', 'Coiling Oracle', 'Peek', 'Shardless Agent', 'High-Speed Hoverbike', 'White Sun''s Zenith', 'Ezuri, Renegade Leader', 'Evacuation', 'Return to the Ranks', 'Mirage Mirror', 'Lagrella, the Magpie', 'Recurring Nightmare', 'Assemble the Legion', 'Artisan of Kozilek', 'Raze to the Ground', 'Unctus, Grand Metatect', 'Boomerang', 'Fireblade Charger', 'Universal Automaton', 'Hyena Umbra', 'Moorland Haunt', 'Rain of Tears', 'Doomed Traveler', 'Endbringer', 'Dread Return', 'Altar of the Brood', 'Bloodchief Ascension', 'Stinkweed Imp', 'Bastion of Remembrance', 'Kitchen Imp', 'Ral, Izzet Viceroy', 'Tribute to Horobi', 'Silverbluff Bridge', 'Venser, the Sojourner', 'Bloodline Keeper', 'Azorius Guildgate', 'Nephalia Drownyard', 'Glorybringer', 'Pyrite Spellbomb', 'Demigod of Revenge', 'Soul Warden', 'Fight as One', 'Malakir Rebirth', 'Whispersilk Cloak', 'Mesa Enchantress', 'Woodland Cemetery', 'Spectral Procession', 'Dakkon, Shadow Slayer', 'Sandsteppe Citadel', 'Idyllic Tutor', 'Agonizing Remorse', 'Talisman of Curiosity', 'Ossification', 'Secluded Courtyard', 'Unmarked Grave', 'Drossforge Bridge', 'Archangel Avacyn', 'Thornglint Bridge', 'Choked Estuary', 'Lost Legacy', 'Deafening Clarion', 'Vampire Lacerator', 'Disenchant', 'Briarbridge Tracker', 'Morsel Theft', 'Timely Reinforcements', 'Mindsplice Apparatus', 'Pieces of the Puzzle', 'Diabolic Tutor', 'Ethersworn Sphinx', 'Putrefy', 'Cultivate', 'Alms of the Vein', 'Moment of Truth', 'Mazemind Tome', 'Remorseful Cleric', 'Wall of Omens', 'Wizard''s Retort', 'Fabricate', 'Ammit Eternal', 'Elvish Rejuvenator', 'Port Town', 'Raven''s Crime', 'Nine Lives', 'Battlefield Forge', 'Rakdos''s Return', 'Toolcraft Exemplar', 'Disciple of Bolas', 'Grapple with the Past', 'Chief Engineer', 'Yavimaya Iconoclast', 'Glistener Elf', 'Dragon''s Hoard', 'Eiganjo Castle', 'Skirk Prospector', 'Scour All Possibilities', 'Shred Memory', 'Etherium Sculptor', 'Oona''s Prowler', 'Frontier Bivouac', 'Mnemonic Sphere', 'Curse of Exhaustion', 'Veinfire Borderpost', 'Viashino Pyromancer', 'Commit // Memory', 'Dawn of Hope', 'Phantasmal Image', 'Wooded Bastion', 'Engulf the Shore', 'Battle of Frost and Fire', 'Midnight Guard', 'Spellweaver Helix', 'Skyshroud Elf', 'Fleecemane Lion', 'Sheoldred''s Edict', 'Elemental Masterpiece', 'Hero''s Downfall', 'Nature''s Lore', 'Rustvale Bridge', 'Yisan, the Wanderer Bard', 'Steel Overseer', 'Glimpse of Tomorrow', 'Rise and Shine', 'Plated Geopede', 'Vampiric Rites', 'Harmonize', 'Ethereal Armor', 'Woodfall Primus', 'Chamber Sentry', 'Nevermore', 'Jwari Shapeshifter', 'Radha, Heart of Keld', 'Nimble Trapfinder', 'Vigor', 'Felidar Retreat', 'Executioner''s Capsule', 'Nether Spirit', 'Brokers Hideout', 'Stubborn Denial', 'Gideon''s Intervention', 'Ulvenwald Hydra', 'Quicken', 'Lizard Blades', 'Mistvault Bridge', 'Wasteland Strangler', 'Silumgar''s Scorn', 'Augur of Bolas', 'Thrill of Possibility', 'Hooting Mandrills', 'Maze''s End', 'Sheltered Thicket', 'Tresserhorn Sinks', 'Apostle''s Blessing', 'Battle of Wits', 'Archaeomancer', 'The Mending of Dominaria', 'Abundant Harvest', 'Tribal Flames', 'Karn''s Bastion', 'Mishra''s Factory', 'Sweltering Suns', 'Simian Spirit Guide', 'Consuming Vapors', 'Syphon Life', 'Strike It Rich', 'Ardent Recruit', 'Cremate', 'Memoricide', 'Psychatog', 'Possibility Storm', 'Dire-Strain Rampage', 'Otherworldly Journey', 'Ruric Thar, the Unbowed', 'Postmortem Lunge', 'Cut Down', 'Stupor', 'Goldmeadow Harrier', 'Curious Homunculus', 'Resolute Reinforcements', 'Predatory Sliver', 'Llanowar Elves', 'Night of Souls'' Betrayal', 'Eternal Scourge', 'Defiant Strike', 'Leonin Warleader', 'Exclude', 'Angel of Condemnation', 'Ranger of Eos', 'Ground Seal', 'Falkenrath Pit Fighter', 'Basking Rootwalla', 'Sphinx''s Herald', 'Negate', 'Collected Conjuring', 'Divinity of Pride', 'Doom Blade', 'Luminarch Ascension', 'Gideon''s Lawkeeper', 'Oath of Kaya', 'Temple of Enlightenment', 'Dreams of Steel and Oil', 'Sins of the Past', 'Sunken Hollow', 'Sin Prodder', 'Black Sun''s Zenith', 'Mana Leak', 'Mastermind''s Acquisition', 'Putrid Imp', 'Misery Charm', 'Corpse Cur', 'Figure of Destiny', 'Thopter Mechanic', 'Changeling Outcast', 'Akoum Hellhound', 'Invasion of Ergamon', 'Squadron Hawk', 'Favored Hoplite', 'Evolving Wilds', 'Polukranos, World Eater', 'Temple of Triumph', 'Game Trail', 'Gift of Immortality', 'Knight of New Alara', 'Greater Gargadon', 'Nissa, Worldwaker', 'Teferi, Mage of Zhalfir', 'Master of Etherium', 'Ivory Tower', 'Sudden Edict', 'Felidar Cub', 'Esper Charm', 'Winds of Abandon', 'Nezahal, Primal Tide', 'Hanweir Garrison', 'Azorius Charm', 'Arguel''s Blood Fast', 'Genesis Ultimatum', 'Westvale Abbey', 'Temple of Deceit', 'Breya''s Apprentice', 'Sunstrike Legionnaire', 'Skymarcher Aspirant', 'Halo Forager', 'Forked Bolt', 'Fyndhorn Elves', 'Isolated Chapel', 'Tainted Indulgence', 'Faerie Miscreant', 'Viscera Seer', 'Archpriest of Shadows', 'Worship', 'Canopy Vista', 'Commune with Nature', 'Bring the Ending', 'Stasis Snare', 'Stoke the Flames', 'Mwonvuli Acid-Moss', 'Carven Caryatid', 'Phoenix Chick', 'Ichorclaw Myr', 'Healer''s Hawk', 'Kambal, Consul of Allocation', 'Acidic Slime', 'Slagwoods Bridge', 'Racers'' Ring', 'Lavinia of the Tenth', 'Runeflare Trap', 'Shard Volley', 'Nullpriest of Oblivion', 'Hideous End', 'Smallpox', 'Caves of Koilos', 'Llanowar Augur', 'Brainstone', 'Angel of Grace', 'Miasmic Mummy', 'Floriferous Vinewall', 'Buried Ruin', 'Sire of Insanity', 'Grand Abolisher', 'Wild Cantor', 'Tilling Treefolk', 'Leonin Lightscribe', 'Phyrexian Unlife', 'Wrench Mind', 'Sylvan Advocate', 'Pain Seer', 'Resurgent Belief', 'Erebos''s Intervention', 'Nekrataal', 'Unholy Heat', 'Convolute', 'Mistblade Shinobi', 'Kappa Tech-Wrecker', 'Yahenni''s Expertise', 'Bloodbraid Elf', 'Deep Forest Hermit', 'Cataclysmic Gearhulk', 'Murderous Cut', 'Tribute to Hunger', 'Mystic Monastery', 'Bloodchief''s Thirst', 'Vexing Shusher', 'Ovika, Enigma Goliath', 'Commune with the Gods', 'Summary Dismissal', 'Farseek', 'Impulse', 'Careful Cultivation', 'Soltari Priest', 'Gather the Pack', 'Aetherspouts', 'Bitter Reunion', 'Banishing Slash', 'Wolfbriar Elemental', 'Myth Realized', 'Wandering Fumarole', 'Torens, Fist of the Angels', 'Tanglepool Bridge', 'Reveillark', 'Akiri, Fearless Voyager', 'Abyssal Persecutor', 'Ishkanah, Grafwidow', 'Tezzeret, Artifice Master', 'Evangel of Synthesis', 'Yasharn, Implacable Earth', 'Auriok Sunchaser', 'Flame Rift', 'Ransack the Lab', 'Grenzo, Dungeon Warden', 'Cloudshredder Sliver', 'Fiery Justice', 'Armored Scrapgorger', 'Sin Collector', 'Halimar Excavator', 'Bogardan Hellkite', 'Melira, Sylvok Outcast', 'Gaea''s Will', 'Leonin Relic-Warder', 'Nimble Obstructionist', 'Twinshot Sniper', 'Gruul Turf', 'Icehide Golem', 'Doomskar', 'Gateway Plaza', 'The Antiquities War', 'Tidespout Tyrant', 'Case the Joint', 'Tidehollow Sculler', 'Dark-Dweller Oracle', 'Hornet Queen', 'Shriekmaw', 'Lazotep Chancellor', 'Repudiate // Replicate', 'Ghostly Flicker', 'Platinum Angel', 'Galerider Sliver', 'Thawing Glaciers', 'Shizo, Death''s Storehouse', 'Flametongue Kavu', 'Verduran Enchantress', 'Stoic Rebuttal', 'Adanto Vanguard', 'Tangle', 'Scuttling Doom Engine', 'Invasion of Regatha', 'Restoration Angel', 'Judith, the Scourge Diva', 'Meeting of Minds', 'Stromkirk Noble', 'Check for Traps', 'Invoke Calamity', 'Electrolyze', 'Rakdos Guildgate', 'Ancestral Blade', 'Sylvan Library', 'Into the Roil', 'Marwyn, the Nurturer', 'Norn''s Inquisitor', 'Desperate Ritual', 'Oath of Teferi', 'Divest', 'Voyaging Satyr', 'The Seedcore', 'Experimental Augury', 'Distorted Curiosity', 'Mistveil Plains', 'Molten Tributary', 'Venerated Loxodon', 'Wood Elves', 'Silver-Fur Master', 'Drake Haven', 'Sunblade Samurai', 'Elvish Archdruid', 'Lodestone Golem', 'Dark Ritual', 'Haunted Mire', 'Ancient Stirrings', 'Concealing Curtains', 'Elves of Deep Shadow', 'Dross Skullbomb', 'Dauntless Bodyguard', 'Experimental Synthesizer', 'The Flame of Keld', 'Obscura Charm', 'Malicious Malfunction', 'Bogbrew Witch', 'Lose Focus', 'Ghostfire Blade', 'Bituminous Blast', 'Sarkhan the Masterless', 'Faith''s Reward', 'Counterflux', 'Tyrant''s Choice', 'Solemnity', 'Emmara, Soul of the Accord', 'Magister Sphinx', 'Seething Song', 'Tuktuk the Explorer', 'Yavimaya Coast', 'Throne of the God-Pharaoh', 'Herald of the Pantheon', 'Lurrus of the Dream-Den', 'Duneblast', 'Crumbling Vestige', 'Unsubstantiate', 'Tocasia''s Dig Site', 'Fevered Visions', 'Anafenza, the Foremost', 'Arbalest Engineers', 'Elspeth Conquers Death', 'Lathliss, Dragon Queen', 'Bone Shards', 'Dakmor Salvage', 'Vraska''s Contempt', 'Drowned Rusalka', 'Prosperous Thief', 'Serra Ascendant', 'Birds of Paradise', 'Surrak, the Hunt Caller', 'Selesnya Guildgate', 'Maestros Charm', 'Deprive', 'Shivan Reef', 'Tendrils of Agony', 'Invasion of Kaladesh', 'Botanical Plaza', 'Steppe Lynx', 'Ogre Slumlord', 'Ephara, God of the Polis', 'Drainpipe Vermin', 'Geothermal Bog', 'Duplicant', 'Abiding Grace', 'Madcap Experiment', 'Haunted Fengraf', 'Temple of Abandon', 'Day of Judgment', 'Cathartic Reunion', 'Empty the Warrens', 'Raffine''s Informant', 'Rift Bolt', 'Ancient Amphitheater', 'Rust Goliath', 'Malcator, Purity Overseer', 'Elvish Mystic', 'Control Magic', 'Sigrid, God-Favored', 'Myr Battlesphere', 'Delver of Secrets', 'Crawling Chorus', 'Angel of Serenity', 'Grafted Butcher', 'Overgrowth', 'Terramorphic Expanse', 'Dreadhorde Butcher', 'Tectonic Edge', 'Celestial Colonnade', 'Laboratory Maniac', 'Rix Maadi Reveler', 'Sandwurm Convergence', 'Chandra, Flamecaller', 'Sinew Sliver', 'Price of Progress', 'Moon-Circuit Hacker', 'Barter in Blood', 'Seal of Removal', 'Frenetic Sliver', 'Quest for the Holy Relic', 'River of Tears', 'Staff of Domination', 'Hada Freeblade', 'Fetid Heath', 'Dead // Gone', 'Destiny Spinner', 'Boros Guildgate', 'Hypnotic Specter', 'Snow-Covered Mountain', 'Graveborn Muse', 'Soldier of the Pantheon', 'True Believer', 'Stinkdrinker Bandit', 'Avacyn''s Pilgrim', 'Vampire Neonate', 'Galvanic Relay', 'Solitary Confinement', 'Caldera Hellion', 'Dimir Guildgate', 'The Scorpion God', 'Psychic Possession', 'The Celestus', 'Blight Mamba', 'Lingering Souls', 'Reflector Mage', 'Mindslaver', 'Elderscale Wurm', 'Anguished Unmaking', 'Clifftop Retreat', 'Pack Rat', 'Llanowar Mentor', 'Arlinn Kord', 'Izzet Charm', 'Obzedat, Ghost Council', 'Steel Leaf Champion', 'Tomebound Lich', 'Nissa, Steward of Elements', 'Whir of Invention', 'Spirited Companion', 'Contaminated Aquifer', 'Corrupted Conviction', 'Drowner of Hope', 'Ajani, Mentor of Heroes', 'Stone Haven Outfitter', 'World Shaper', 'Ally Encampment', 'Orzhov Charm', 'Hinterland Harbor', 'Mirran Crusader', 'Thragtusk', 'Dregscape Zombie', 'Embodiment of Fury', 'Mistvein Borderpost', 'Ashenmoor Liege', 'Stern Dismissal', 'Forbidden Alchemy', 'Waking the Trolls', 'Darksteel Citadel', 'Ulamog''s Crusher', 'Eldrazi Skyspawner', 'Ral, Storm Conduit', 'Altar of the Goyf', 'Thaumatic Compass', 'Circuit Mender', 'Mikokoro, Center of the Sea', 'Jungle Hollow', 'Herd Migration', 'Mesmeric Fiend', 'Bubbling Cauldron', 'Pardic Miner', 'Anafenza, Kin-Tree Spirit', 'Kiora, the Crashing Wave', 'Vivid Crag', 'Flaying Tendrils', 'Prologue to Phyresis', 'Time of Need', 'Chandra, Fire Artisan', 'Urban Evolution', 'Reckless Rage', 'Spell Pierce', 'Pharika''s Libation', 'Slogurk, the Overslime', 'Sculpting Steel', 'Founding the Third Path', 'Progenitor Exarch', 'Yorion, Sky Nomad', 'Slaughter Pact', 'Temple of Malady', 'Glamerdye', 'Tolarian Terror', 'Spectral Shift', 'Death Cloud', 'Unburial Rites', 'Sterling Grove', 'Tamiyo, Collector of Tales', 'Touch the Spirit Realm', 'Jor Kadeen, First Goldwarden', 'Vessel of Nascency', 'Genesis Hydra', 'Gilt-Leaf Archdruid', 'Prohibit', 'Bloodsoaked Champion', 'Blanchwood Prowler', 'Fae of Wishes', 'Repeal', 'Eerie Ultimatum', 'Raise the Alarm', 'Rally the Ancestors', 'Curiosity', 'Vapor Snag', 'Canyon Slough', 'Unlucky Witness', 'Abundant Growth', 'Devil''s Play', 'All That Glitters', 'General''s Enforcer', 'Snow-Covered Plains', 'Sea Gate Oracle', 'Elvish Clancaller', 'Herd Baloth', 'Kami of False Hope', 'Invasion of Amonkhet', 'Commence the Endgame', 'Sylvan Messenger', 'Become Immense', 'Murderous Redcap', 'Helm of the Host', 'Enchantress''s Presence', 'Ancient Ziggurat', 'Satyr Wayfinder', 'Oracle of Tragedy', 'Needle Spires', 'Wildfield Borderpost', 'Goblin Dark-Dwellers', 'Elvish Visionary', 'Chandra, Pyromaster', 'Oust', 'Goblin Electromancer', 'Vines of Vastwood', 'Kalastria Healer', 'Notorious Throng', 'Cryptic Caves', 'Oracle of Mul Daya', 'Draugr Necromancer', 'Boon-Bringer Valkyrie', 'Zephyr Singer', 'Sigil of the Empty Throne', 'Grand Arbiter Augustin IV', 'Scattered Groves', 'Trace of Abundance', 'Empyrial Armor', 'Dryad Militant', 'Kaito, Dancing Shadow', 'Kozilek''s Predator', 'Revitalize', 'Brain Freeze', 'Tangled Islet', 'Golgari Rot Farm', 'Orcish Lumberjack', 'Kunoros, Hound of Athreos', 'Ebony Owl Netsuke', 'Rakdos Cackler', 'Karumonix, the Rat King', 'Corrupted Crossroads', 'Sea-Dasher Octopus', 'Kami of the Crescent Moon', 'Kruphix''s Insight', 'Phyrexian Revoker', 'Heliod''s Pilgrim', 'Weapons Trainer', 'Lantern-Lit Graveyard', 'Jokulhaups', 'Grolnok, the Omnivore', 'Crystal Grotto', 'Izzet Guildgate', 'Fade from Memory', 'Farhaven Elf', 'Voldaren Pariah', 'General Ferrous Rokiric', 'Ghost Quarter', 'Terrarion', 'Vraan, Executioner Thane', 'Kor Firewalker', 'Mirror Entity', 'Midnight Reaper', 'Vault of the Archangel', 'Fracturing Gust', 'Mulch', 'Vault Skirge', 'Mystical Teachings', 'Memory Lapse', 'Timeless Dragon', 'Fierce Empath', 'Dead Weight', 'Kitesail Freebooter', 'Frostwalk Bastion', 'Archon of Sun''s Grace', 'Timeless Witness', 'Xenagos, the Reveler', 'Koth, Fire of Resistance', 'Consul''s Lieutenant', 'Arcum''s Astrolabe', 'Groundswell', 'Sol Talisman', 'Cloudpost', 'Triumphant Adventurer', 'Porphyry Nodes', 'Mistcutter Hydra', 'Graaz, Unstoppable Juggernaut', 'Sprite Dragon', 'Magister of Worth', 'Terastodon', 'Skyclave Shade', 'Wanderwine Hub', 'Xerex Strobe-Knight', 'Firewild Borderpost', 'Arcbound Ravager', 'Mindcrank', 'Silumgar, the Drifting Death', 'Hostage Taker', 'Basilisk Collar', 'Knight of Glory', 'Mishra''s Research Desk', 'Orzhov Basilica', 'Terminus', 'Bloodthrone Vampire', 'Champion of Wits', 'Deep Analysis', 'Rishkar, Peema Renegade', 'Fire Prophecy', 'Marauding Blight-Priest', 'Gather the Townsfolk', 'Sinister Concoction', 'Varolz, the Scar-Striped', 'Grave Scrabbler', 'Condemn', 'Invisible Stalker', 'Ertai''s Scorn', 'Mina and Denn, Wildborn', 'Flooded Grove', 'Ghostly Pilferer', 'Kabira Takedown', 'Chief of the Foundry', 'Yosei, the Morning Star', 'Rune Snag', 'Mausoleum Secrets', 'Ghitu Lavarunner', 'Brave the Elements', 'Arbor Elf', 'Marit Lage''s Slumber', 'Declaration in Stone', 'Burst Lightning', 'Demonic Bargain', 'Fetid Pools', 'Swooping Lookout', 'Frost Titan', 'Silundi Vision', 'Aether Spellbomb', 'Settle the Wreckage', 'Bloodvial Purveyor', 'Eidolon of Blossoms', 'Kefnet the Mindful', 'Search for Azcanta', 'Precursor Golem', 'Diffusion Sliver', 'Froghemoth', 'War Falcon', 'Nameless Inversion', 'Think Twice', 'Dead of Winter', 'Silversmote Ghoul', 'Reckless Charge', 'Thopter Spy Network', 'Metalwork Colossus', 'Ponder', 'Sylvan Scrying', 'Kemba, Kha Regent', 'Faerie Vandal', 'Howling Mine', 'Baneful Omen', 'Scab-Clan Berserker', 'Jace Beleren', 'Wonder', 'Stir the Grave', 'Wildborn Preserver', 'Sylvan Caryatid', 'Raging Ravine', 'Gruul Spellbreaker', 'Orzhov Guildgate', 'Territorial Kavu', 'Krosan Grip', 'Shigeki, Jukai Visionary', 'Dark Prophecy', 'Mouth of Ronom', 'Lay Down Arms', 'Forbid', 'Patchwork Automaton', 'Tear Asunder', 'Frost Marsh', 'Scrapwork Mutt', 'Rites of Initiation', 'Golgari Guildgate', 'Pyretic Ritual', 'Anticipate', 'Maelstrom Pulse', 'Crack the Earth', 'Open the Armory', 'Elixir of Immortality', 'Ivy Lane Denizen', 'Hour of Promise', 'Pyroclasm', 'Ulcerate', 'Fumigate', 'Weathered Wayfarer', 'Fearless Fledgling', 'Stormrider Spirit', 'Okina, Temple to the Grandfathers', 'Necrogen Spellbomb', 'Perilous Myr', 'Dokuchi Silencer', 'Izzet Boilerworks', 'Ravenous Squirrel', 'Increasing Ambition', 'Temple of Plenty', 'Springleaf Drum', 'Hypergenesis', 'The Underworld Cookbook', 'Gruul Guildgate', 'Gadrak, the Crown-Scourge', 'Out of Time', 'No Escape', 'Sacred Peaks', 'Rakdos Charm', 'Commune with Spirits', 'Precinct Captain', 'Fangren Marauder', 'Annex Sentry', 'Fatestitcher', 'Phyrexian Censor', 'Sulfur Falls', 'Of One Mind', 'Dovin''s Acuity', 'Lavaclaw Reaches', 'Late to Dinner', 'Venser, Shaper Savant', 'Kazandu Blademaster', 'Scrabbling Claws', 'Cabal Initiate', 'Witching Well', 'Gallia of the Endless Dance', 'Bitter Ordeal', 'Geyadrone Dihada', 'Languish', 'Vryn Wingmare', 'Tranquil Thicket', 'Gutterbones', 'Shape Anew', 'Fruit of Tizerus', 'Snow-Covered Swamp', 'Priest of the Haunted Edge', 'Giant Killer', 'Blue Sun''s Zenith', 'Throat Slitter', 'Tendo Ice Bridge', 'Seal of Cleansing', 'Epic Experiment', 'Satyr Hoplite', 'Frantic Inventory', 'Ensoul Artifact', 'Chaotic Transformation', 'Lotus Cobra', 'Crux of Fate', 'Combat Thresher', 'Bilious Skulldweller', 'Might of Old Krosa', 'Heartless Act', 'Crawling Barrens', 'Odds // Ends', 'Heliod''s Intervention', 'Saproling Migration', 'Boros Elite', 'Gravelgill Duo', 'Arch of Orazca', 'Ruin Crab', 'Master of Death', 'Llanowar Tribe', 'Eldrazi Displacer', 'Council''s Judgment', 'Gleeful Demolition', 'Jwari Disruption', 'Putrid Goblin', 'Pariah', 'Secluded Steppe', 'Exhaustion', 'Shambling Vent', 'Sleight of Hand', 'Graven Lore', 'Grove of the Guardian', 'Leonin Arbiter', 'Delay', 'Serrated Scorpion', 'Knowledge Pool', 'Cauldron Familiar', 'Sign in Blood', 'Kaya, Ghost Assassin', 'Terminate', 'Servo Exhibition', 'Seeker of the Way', 'Sultai Charm', 'Riveteers Overlook', 'Radiant Grove', 'Simian Sling', 'Knight of the White Orchid', 'Temple of Silence', 'Phyrexian Dreadnought', 'Grave Titan', 'Rally the Peasants', 'Wing Commando', 'Voidwing Hybrid', 'Blood Artist', 'Dark Petition', 'Into the Story', 'Sphere of Safety', 'Ramunap Excavator', 'Spell Burst', 'Vampire Nighthawk', 'Squee, Goblin Nabob', 'Martyr of Sands', 'Benevolent Bodyguard', 'Network Disruptor', 'Pore Over the Pages', 'Tezzeret the Schemer', 'Consume the Meek', 'Nomad Outpost', 'Drown in Ichor', 'Teneb, the Harvester', 'Aetherblade Agent', 'Angrath, the Flame-Chained', 'Folio of Fancies', 'Expedition Envoy', 'Kiora Bests the Sea God', 'Carnophage', 'Volt Charge', 'Smoldering Marsh', 'Lightning Strike', 'Tezzeret''s Gambit', 'Opulent Palace', 'Wrenn''s Resolve', 'Huatli, Radiant Champion', 'Ajani, Adversary of Tyrants', 'Pharika''s Cure', 'Gideon Jura', 'Cartel Aristocrat', 'Monument to Perfection', 'Vampire Hexmage', 'Oblivion Ring', 'Gloomshrieker', 'Night Market Lookout', 'Kor Skyfisher', 'Teshar, Ancestor''s Apostle', 'Discovery // Dispersal', 'Melira, the Living Cure', 'Go for the Throat', 'Geomancer''s Gambit', 'Vivid Grove', 'Vraska, Relic Seeker', 'Blood on the Snow', 'Primal Command', 'Guile', 'Stone Rain', 'Obstinate Baloth', 'Vedalken Heretic', 'Ignite Memories', 'Warstorm Surge', 'Akroan Crusader', 'Oona''s Grace', 'Honor of the Pure', 'Scrapheap Scrounger', 'Argentum Masticore', 'Boreal Shelf', 'Titania, Protector of Argoth', 'Marble Diamond', 'Argentum Armor', 'Kumano Faces Kakkazan', 'Second Sunrise', 'Lochmere Serpent', 'Frantic Search', 'Dusk // Dawn', 'Nimble Larcenist', 'See Beyond', 'Dread Wanderer', 'Solemn Simulacrum', 'Approach of the Second Sun', 'Moderation', 'Oona, Queen of the Fae', 'Bontu''s Last Reckoning', 'Goblin Bombardment', 'Fiery Temper', 'Shimmerdrift Vale', 'Oni-Cult Anvil', 'Riveteers Charm', 'Purify the Grave', 'Nimbus Maze', 'Cabal Therapist', 'Ayli, Eternal Pilgrim', 'Hall of Oracles', 'Loxodon Smiter', 'Inevitable Betrayal', 'Inkwell Leviathan', 'Unbreakable Formation', 'Call to the Grave', 'Elite Inquisitor', 'Far // Away', 'Thundermaw Hellkite', 'Silent Gravestone', 'Wilt', 'Union of the Third Path', 'Expedite', 'Mothdust Changeling', 'Presence of Gond', 'Sorin, Vengeful Bloodlord', 'Rootbound Crag', 'Obliterate', 'Protect the Negotiators', 'Reinforced Ronin', 'Pillage', 'Greater Tanuki', 'Search for Tomorrow', 'Voidslime', 'Upheaval', 'Idyllic Beachfront', 'Combat Research', 'Invasion of Azgol', 'Incinerate', 'Anger of the Gods', 'Circular Logic', 'Stirring Wildwood', 'Inscribed Tablet', 'King Darien XLVIII', 'Brave the Sands', 'Darksteel Colossus', 'Kitchen Finks', 'Shimmer Dragon', 'Dispatch', 'Angel of Despair', 'Thassa''s Intervention', 'Narcomoeba', 'Detention Sphere', 'Kessig Wolf Run', 'Seismic Assault', 'Rocco, Cabaretti Caterer', 'Self-Assembler', 'Tooth and Nail', 'Godo, Bandit Warlord', 'Ashnod, Flesh Mechanist', 'Nested Shambler', 'Locket of Yesterdays', 'Graven Cairns', 'Rites of Spring', 'Turnabout', 'Vraska''s Fall', 'Lightning Spear', 'Change the Equation', 'Dream Trawler', 'Tempest Djinn', 'Succumb to Temptation', 'Zombie Infestation', 'Mountain Valley', 'Fertile Ground', 'Invasion of Zendikar', 'Rule of Law', 'Smother', 'Duress', 'Cathedral of War', 'Scarab Feast', 'Mind''s Desire', 'Disallow', 'Big Game Hunter', 'Rally the Ranks', 'Ashen Rider', 'Inscription of Ruin', 'Reckoner''s Bargain', 'Haunted Dead', 'Makeshift Mannequin', 'Recruitment Officer', 'Gigadrowse', 'Slagstorm', 'Djinn of the Fountain', 'Venser, Corpse Puppet', 'Tymaret, Chosen from Death', 'Treasure Cruise', 'Demolition Field', 'Seal of Fire', 'Blightning', 'Hard Evidence', 'Victim of Night', 'Barbarian Ring', 'Sunpetal Grove', 'Glimmerpost', 'Pull from Tomorrow', 'Empyrial Plate', 'Nightscape Familiar', 'Call of the Death-Dweller', 'Jace, Architect of Thought', 'Savage Lands', 'Archangel of Wrath', 'Runed Halo', 'Decree of Justice', 'Vindicate', 'Blade Splicer', 'Anoint with Affliction', 'Explore', 'Glacial Fortress', 'Zuran Orb', 'Green Sun''s Twilight', 'Merciless Eviction', 'Sarkhan, the Dragonspeaker', 'Din of the Fireherd', 'Cleansing Wildfire', 'Genesis Wave', 'Feed the Swarm', 'Erebos, Bleak-Hearted', 'Spatial Contortion', 'Gnat Miser', 'Thraben Inspector', 'Knight of the Reliquary', 'Lead the Stampede', 'Utter End', 'Phalanx Leader', 'Voltage Surge', 'Big Score', 'Myr Superion', 'Razortide Bridge', 'Temple of Mystery', 'Vivid Marsh', 'Rootwater Depths', 'Acquisitions Expert', 'Restore Balance', 'Prophetic Prism', 'Gift of Estates', 'Kher Keep', 'Summer Bloom', 'Forging the Anchor', 'Energy Refractor', 'Judge''s Familiar', 'Simic Guildgate', 'Chittering Rats', 'Scrying Sheets', 'Kjeldoran Outpost', 'Quiet Speculation', 'Dying to Serve', 'Wrath of God', 'Sunlit Marsh', 'Smuggler''s Copter', 'Ambush Viper', 'Saffi Eriksdotter', 'Obscura Storefront', 'Bubbling Muck', 'Supreme Will', 'Burning of Xinye', 'Wayward Guide-Beast', 'Gavony Township', 'Drowned Catacomb', 'Dragonskull Summit', 'Thornwood Falls', 'Scatter Ray', 'Garruk Wildspeaker', 'Rampant Growth', 'Kogla, the Titan Ape', 'Gird for Battle', 'Thrash // Threat', 'Aegis of the Gods', 'Forsake the Worldly', 'Forgotten Cave', 'Sever the Bloodline', 'Surge of Salvation', 'Spikefield Hazard', 'Assault // Battery', 'Murmuring Bosk', 'Halana and Alena, Partners', 'Invasion of New Capenna', 'Fact or Fiction', 'Mortuary Mire', 'Brineborn Cutthroat', 'Colossal Skyturtle', 'Hope of Ghirapur', 'Hesitation', 'Festering Newt', 'Sculpted Perfection', 'Rabbit Battery', 'Dissipate'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.5, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Cloudpost', 'Ghitu Lavarunner', 'Silverblade Paladin', 'Grave Scrabbler', 'Mikokoro, Center of the Sea', 'Botanical Plaza', 'Inscription of Ruin', 'Erebos, Bleak-Hearted', 'Become Immense', 'Crawling Chorus', 'Angrath, the Flame-Chained', 'Dread Return', 'Nissa, Worldwaker', 'Lochmere Serpent', 'Ivory Tower', 'Invasion of Amonkhet', 'Timeless Dragon', 'Abundant Growth', 'Wing Commando', 'Glimmerpost', 'Unsubstantiate', 'Locket of Yesterdays', 'Brave the Sands', 'Kalastria Healer', 'Delver of Secrets', 'Haunted Fengraf', 'Rampant Growth', 'Barbarian Ring', 'Skirk Prospector', 'Kemba, Kha Enduring', 'Protect the Negotiators', 'Idyllic Tutor', 'Mistvault Bridge', 'Inevitable Betrayal', 'Black Sun''s Zenith', 'Treasure Cruise', 'Purify the Grave', 'Arbor Elf', 'Combat Research', 'Darksteel Colossus', 'The Mending of Dominaria', 'Putrid Imp', 'Invisible Stalker', 'Llanowar Elves', 'Silundi Vision', 'Archon of Sun''s Grace', 'Woodfall Primus', 'Fact or Fiction', 'Venser, Corpse Puppet', 'Founding the Third Path', 'Call to the Grave', 'Consul''s Lieutenant', 'Silumgar, the Drifting Death', 'Pieces of the Puzzle', 'Vapor Snag', 'Drowned Catacomb', 'Day of Judgment', 'Obscura Storefront', 'Blightbelly Rat', 'Mothdust Changeling', 'Mwonvuli Acid-Moss', 'Dakmor Salvage', 'Felidar Cub', 'Talisman of Conviction', 'Nightscape Familiar', 'Genesis Hydra', 'Sleight of Hand', 'Hyena Umbra', 'Sigrid, God-Favored', 'Temple of Epiphany', 'Scuttling Doom Engine', 'Clifftop Retreat', 'Hour of Promise', 'Hero''s Downfall', 'Zephyr Singer', 'Wooded Bastion', 'General''s Enforcer', 'Big Game Hunter', 'Luminarch Ascension', 'Gideon''s Lawkeeper', 'Rise // Fall', 'Grafted Butcher', 'Goldmeadow Harrier', 'Elspeth Conquers Death', 'Faith''s Reward', 'Temple of Malady', 'Blazing Rootwalla', 'Spirited Companion', 'Dark Petition', 'Dire-Strain Rampage', 'Fevered Visions', 'Anafenza, Kin-Tree Spirit', 'Makeshift Mannequin', 'Dryad Militant', 'Whir of Invention', 'Anticipate', 'Fieldmist Borderpost', 'Gavony Township', 'Krosan Grip', 'Ayara, First of Locthwain', 'Drowner of Hope', 'Huatli, Radiant Champion', 'Touch the Spirit Realm', 'Seething Song', 'Folio of Fancies', 'Gruul Spellbreaker', 'Zhalfirin Shapecraft', 'Corpse Cur', 'Jungle Hollow', 'Hooting Mandrills', 'Myth Realized', 'Evangel of Synthesis', 'Carnophage', 'Wanderwine Hub', 'Odds // Ends', 'Primal Command', 'Deafening Clarion', 'Leonin Warleader', 'Gnawing Vermin', 'Azorius Charm', 'Fracturing Gust', 'Joint Exploration', 'Sylvan Caryatid', 'Wrench Mind', 'Baneful Omen', 'Morsel Theft', 'Chief Engineer', 'Explore', 'Drake Haven', 'Spellweaver Helix', 'Valakut Exploration', 'Jor Kadeen, First Goldwarden', 'Silverbluff Bridge', 'Teshar, Ancestor''s Apostle', 'Ambush Viper', 'Silver-Fur Master', 'Lose Focus', 'Blanchwood Prowler', 'Vryn Wingmare', 'Seal of Fire', 'Surrak, the Hunt Caller', 'Runeflare Trap', 'Invasion of Zendikar', 'Reveillark', 'Viashino Pyromancer', 'Oblivion Ring', 'Kessig Wolf Run', 'Frenetic Sliver', 'Precursor Golem', 'Goblin Matron', 'Notorious Throng', 'Melira, Sylvok Outcast', 'Heap Doll', 'Phantasmal Image', 'Banishing Slash', 'Ajani, Mentor of Heroes', 'Ogre Slumlord', 'Genesis Ultimatum', 'Surge of Salvation', 'Fatestitcher', 'Rocco, Cabaretti Caterer', 'Grolnok, the Omnivore', 'Dissipate', 'Llanowar Tribe', 'Arcbound Ravager', 'Control Magic', 'Ruin Crab', 'Liliana Vess', 'Stone Haven Outfitter', 'Third Path Iconoclast', 'Raging Ravine', 'Thassa''s Intervention', 'Kor Skyfisher', 'Voldaren Pariah', 'Skymarcher Aspirant', 'Temple of Abandon', 'Slagstorm', 'Dreams of Steel and Oil', 'Drossforge Bridge', 'Sylvan Scrying', 'Circular Logic', 'Marit Lage''s Slumber', 'Herald of the Pantheon', 'Arcum''s Astrolabe', 'Marauding Blight-Priest', 'Ransack the Lab', 'Polukranos, World Eater', 'Discovery // Dispersal', 'Gift of Estates', 'Possibility Storm', 'Ashen Rider', 'Fruit of Tizerus', 'Radiant Grove', 'Waking the Trolls', 'Doom Blade', 'Evolving Wilds', 'Veinfire Borderpost', 'Vivid Grove', 'All That Glitters', 'Kazandu Blademaster', 'Sultai Charm', 'Exclude', 'Grim Haruspex', 'Graveborn Muse', 'Hanweir Garrison', 'Out of Time', 'Abyssal Persecutor', 'Consuming Vapors', 'Rabbit Battery', 'Gaea''s Will', 'Phyrexian Censor', 'Emmara, Soul of the Accord', 'Abundant Harvest', 'Recurring Nightmare', 'Shigeki, Jukai Visionary', 'Disrupting Shoal', 'Commune with Spirits', 'Avacyn''s Pilgrim', 'Bubbling Cauldron', 'Silversmote Ghoul', 'Gruul Turf', 'Jokulhaups', 'Archpriest of Shadows', 'Rise and Shine', 'Torens, Fist of the Angels', 'Chandra, Pyromaster', 'Archaeomancer', 'Twinshot Sniper', 'Vigor', 'Selesnya Guildgate', 'Forsake the Worldly', 'Vadrik, Astral Archmage', 'Tainted Indulgence', 'Jwari Disruption', 'Fetid Heath', 'Woe Strider', 'Tangled Islet', 'Sandwurm Convergence', 'Ajani, Adversary of Tyrants', 'Bump in the Night', 'Farseek', 'General Ferrous Rokiric', 'One with the Machine', 'Hideous End', 'Akiri, Fearless Voyager', 'Deprive', 'Genesis Wave', 'Upheaval', 'Bloodbraid Elf', 'Spell Burst', 'Might of Old Krosa', 'Spectral Shift', 'Kitchen Finks', 'Ezuri, Renegade Leader', 'Ardent Recruit', 'Sever the Bloodline', 'Sheltered Thicket', 'King Darien XLVIII', 'Dregscape Zombie', 'Sinister Concoction', 'Mulch', 'Rites of Spring', 'Oust', 'Faeburrow Elder', 'Dragonskull Summit', 'Argentum Masticore', 'Into the Roil', 'Esper Charm', 'Wall of Omens', 'Flaying Tendrils', 'Tresserhorn Sinks', 'Dread Wanderer', 'Condemn', 'Celestial Colonnade', 'Doomskar', 'Wildborn Preserver', 'Assemble the Legion', 'Rule of Law', 'Winds of Abandon', 'Solemnity', 'Tocatli Honor Guard', 'Skyshroud Elf', 'Vampiric Rites', 'Wildfield Borderpost', 'Vampire Nighthawk', 'Dying to Serve', 'Leonin Relic-Warder', 'Myr Superion', 'Wonder', 'Murmuring Bosk', 'Goldmire Bridge', 'Malicious Malfunction', 'Worship', 'Norn''s Inquisitor', 'Mindcrank', 'Nested Shambler', 'Gilt-Leaf Archdruid', 'Ornithopter', 'Agonizing Remorse', 'Vines of Vastwood', 'Floriferous Vinewall', 'Patchwork Automaton', 'Ground Seal', 'Stoic Rebuttal', 'Simian Sling', 'Howling Mine', 'Kefnet the Mindful', 'Rootwater Depths', 'Forked Bolt', 'Aetherblade Agent', 'Resurgent Belief', 'Stasis Snare', 'Slaughter Pact', 'Altered Ego', 'Stir the Grave', 'Arcane Sanctum', 'Needle Spires', 'Delay', 'Scrabbling Claws', 'Yawgmoth''s Bargain', 'Knowledge Pool', 'Triumphant Adventurer', 'Glimpse of Tomorrow', 'Sweltering Suns', 'Inkwell Leviathan', 'Springleaf Drum', 'Otherworldly Journey', 'Squadron Hawk', 'Divest', 'Mina and Denn, Wildborn', 'Radha, Heart of Keld', 'Cabal Ritual', 'Territorial Kavu', 'Obliterate', 'Nekrataal', 'Brave the Elements', 'Soldier of the Pantheon', 'Tamiyo, Collector of Tales', 'Basking Rootwalla', 'Fire Prophecy', 'Flametongue Kavu', 'Gideon''s Intervention', 'Rune Snag', 'Ghostfire Blade', 'Fallaji Archaeologist', 'Kami of False Hope', 'Karn''s Bastion', 'Throat Slitter', 'Pharika''s Libation', 'Bloodline Keeper', 'Cabal Initiate', 'Recruitment Officer', 'Ethereal Armor', 'Thopter Mechanic', 'Duplicant', 'Volt Charge', 'Grave Titan', 'Squee, Goblin Nabob', 'Bedlam Reveler', 'Knight of New Alara', 'Stirring Wildwood', 'Ponder', 'Judith, the Scourge Diva', 'Shimmerdrift Vale', 'Engulf the Shore', 'Giant Killer', 'Thragtusk', 'Rootbound Crag', 'Glorybringer', 'Servo Exhibition', 'Tezzeret, Artifice Master', 'Argentum Armor', 'Lightning Spear', 'Electrolyze', 'Mirage Mirror', 'Hard Evidence', 'Djinn of the Fountain', 'Bontu''s Last Reckoning', 'Seal of Removal', 'Boreal Shelf', 'Chandra, Fire Artisan', 'Satyr Wayfinder', 'Elvish Visionary', 'Restore Balance', 'Serrated Scorpion', 'Psychatog', 'Greater Tanuki', 'Ulvenwald Hydra', 'Ephara, God of the Polis', 'Vraska, Relic Seeker', 'Stoke the Flames', 'Presence of Gond', 'Eerie Ultimatum', 'Earthquake', 'Teneb, the Harvester', 'Expedition Envoy', 'Boros Guildgate', 'Nine Lives', 'Coiling Oracle', 'Rift Bolt', 'See Beyond', 'Narcomoeba', 'Tooth and Nail', 'Mastermind''s Acquisition', 'Hieroglyphic Illumination', 'Reckoner''s Bargain', 'Grove of the Guardian', 'Price of Progress', 'Steppe Lynx', 'Nezumi Graverobber', 'Phyrexian Dreadnought', 'Experimental Synthesizer', 'Corrupted Conviction', 'Wizard''s Retort', 'Pillage', 'Scab-Clan Berserker', 'Zur''s Weirding', 'Canyon Slough', 'Bubbling Muck', 'Oona''s Prowler', 'Goblin Instigator', 'Wolfbriar Elemental', 'Bident of Thassa', 'Declaration in Stone', 'Inscribed Tablet', 'Frostwalk Bastion', 'Port Town', 'Icehide Golem', 'Angel of Condemnation', 'Fade from Memory', 'War Falcon', 'Rites of Initiation', 'Yahenni''s Expertise', 'Pain Seer', 'Reinforced Ronin', 'Archangel of Wrath', 'Leather Armor', 'Drowned Rusalka', 'Careful Cultivation', 'Commence the Endgame', 'Vraska''s Contempt', 'Mistblade Shinobi', 'Night Market Lookout', 'Oracle of Tragedy', 'Glint-Sleeve Siphoner', 'Lead the Stampede', 'Tribute to Horobi', 'Ranger of Eos', 'Smother', 'Draugr Necromancer', 'Self-Assembler', 'Koth, Fire of Resistance', 'Nephalia Drownyard', 'Castigate', 'Orzhov Guildgate', 'Spikefield Hazard', 'Sylvan Messenger', 'Ebony Owl Netsuke', 'Tempest Djinn', 'Rally the Ancestors', 'Duneblast', 'Diffusion Sliver', 'Stupor', 'Chaotic Transformation', 'Fearless Fledgling', 'Open the Gates', 'Tarfire', 'Altar of the Goyf', 'Thrill of Possibility', 'Circuit Mender', 'The Celestus', 'Wild Cantor', 'Endbringer', 'Destiny Spinner', 'Augur of Bolas', 'Nullpriest of Oblivion', 'Yorion, Sky Nomad', 'Summary Dismissal', 'Sphinx''s Herald', 'Burst Lightning', 'Wildfire', 'Miasmic Mummy', 'Invigorate', 'Meeting of Minds', 'Chittering Rats', 'Think Twice', 'Kumano Faces Kakkazan', 'Temple of Triumph', 'Farhaven Elf', 'Doomed Traveler', 'Snow-Covered Mountain', 'Thundermaw Hellkite', 'Revitalize', 'Thaumatic Compass', 'Goblin Dark-Dwellers', 'Phyrexian Revoker', 'Swiftfoot Boots', 'Halo Forager', 'Big Score', 'Blood on the Snow', 'Solitary Confinement', 'Fyndhorn Elves', 'Quiet Speculation', 'Tolarian Terror', 'Secluded Steppe', 'Pyretic Ritual', 'Terramorphic Expanse', 'Cabal Therapist', 'Brainstone', 'Nether Spirit', 'Artisan of Kozilek', 'Slogurk, the Overslime', 'Nameless Inversion', 'Spatial Contortion', 'Yosei, the Morning Star', 'Frost Titan', 'Assault // Battery', 'Prohibit', 'Timely Reinforcements', 'Boomerang', 'Evacuation', 'Gutterbones', 'Goblin Electromancer', 'Cultivate', 'Cliffside Lookout', 'Nevermore', 'Scrapwork Mutt', 'Prosperous Thief', 'Mistveil Plains', 'Fetid Pools', 'Eternal Scourge', 'Monument to Perfection', 'Forbidden Alchemy', 'Council''s Judgment', 'Raze to the Ground', 'Ral, Izzet Viceroy', 'Jace, Architect of Thought', 'Invasion of Ergamon', 'Rishkar, Peema Renegade', 'Madcap Experiment', 'Stormrider Spirit', 'Sprite Dragon', 'Chamber Sentry', 'Bring the Ending', 'Figure of Destiny', 'Mind''s Desire', 'Bituminous Blast', 'Orzhov Charm', 'Mausoleum Secrets', 'Dimir Guildgate', 'Moment of Truth', 'Dakkon, Shadow Slayer', 'Phyrexian Unlife', 'Rakdos Guildgate', 'Pyrite Spellbomb', 'Sunstrike Legionnaire', 'Aether Spellbomb', 'Faithless Salvaging', 'Perilous Myr', 'Weapons Trainer', 'Shape Anew', 'Ghostly Pilferer', 'Angel of Grace', 'Slagwoods Bridge', 'Destroy Evil', 'Dimir Aqueduct', 'Tribute to Hunger', 'Mystic Monastery', 'Wrath of God', 'Golgari Guildgate', 'Staff of Domination', 'Shriekmaw', 'Elvish Clancaller', 'Prologue to Phyresis', 'Raise the Alarm', 'Battle of Frost and Fire', 'Haunted Mire', 'Commune with the Gods', 'Overgrowth', 'Sins of the Past', 'Pore Over the Pages', 'Izzet Guildgate', 'Flame Rift', 'Dispatch', 'Blood Artist', 'Crystal Grotto', 'Stern Dismissal', 'Terrarion', 'Ravenous Squirrel', 'Karumonix, the Rat King', 'Nimble Larcenist', 'Graaz, Unstoppable Juggernaut', 'Dokuchi Silencer', 'Halimar Excavator', 'Mouth of Ronom', 'Shambling Vent', 'Tangle', 'Kitchen Imp', 'Invasion of Azgol', 'Bloodvial Purveyor', 'Ishkanah, Grafwidow', 'Ancient Ziggurat', 'Psychic Possession', 'Loxodon Smiter', 'Smallpox', 'Bogbrew Witch', 'Sculpting Steel', 'Yasharn, Implacable Earth', 'Vivid Marsh', 'Gadrak, the Crown-Scourge', 'Pashalik Mons', 'Thopter Spy Network', 'Reckless Rage', 'Hostage Taker', 'Artistic Refusal', 'Drown in Ichor', 'Mishra''s Factory', 'Fight as One', 'Gallia of the Endless Dance', 'Geothermal Bog', 'Return to the Ranks', 'Eldrazi Displacer', 'Succumb to Temptation', 'Nether Traitor', 'Temple of Enlightenment', 'Reckless Charge', 'Impulse', 'Cloudshredder Sliver', 'Kjeldoran Outpost', 'Cut Down', 'Kher Keep', 'Battle of Wits', 'Rakdos Charm', 'The Underworld Cookbook', 'Time of Need', 'Anoint with Affliction', 'Harmonize', 'Briarbridge Tracker', 'Stubborn Denial', 'Leonin Arbiter', 'The Scorpion God', 'Mindslaver', 'Maze''s End', 'Midnight Guard', 'Demonic Dread', 'Ovika, Enigma Goliath', 'Eiganjo Castle', 'Sacred Peaks', 'Secluded Courtyard', 'Oath of Teferi', 'Temple of Plenty', 'Consult the Necrosages', 'Seismic Assault', 'Zombie Infestation', 'Kunoros, Hound of Athreos', 'Auriok Sunchaser', 'Lost Legacy', 'Phalanx Leader', 'Dimensional Infiltrator', 'Knight of the Reliquary', 'Urban Evolution', 'Anger of the Gods', 'Dovin''s Acuity', 'Lavinia of the Tenth', 'Decree of Justice', 'Elderscale Wurm', 'Restoration Angel', 'Godo, Bandit Warlord', 'Soltari Priest', 'Incinerate', 'Archangel Avacyn', 'Brokers Hideout', 'Scarab Feast', 'Abzan Charm', 'Arlinn Kord', 'Master of Etherium', 'Forgotten Cave', 'Dismal Backwater', 'Blightning', 'Feed the Swarm', 'Terminate', 'Cathedral of War', 'Ghostly Flicker', 'Savage Lands', 'Lathliss, Dragon Queen', 'Bloodthrone Vampire', 'Grand Architect', 'Shizo, Death''s Storehouse', 'Curse of Exhaustion', 'Disenchant', 'Temple of Mystery', 'Frontier Bivouac', 'Venser, the Sojourner', 'Ignite Memories', 'Sylvan Advocate', 'Far // Away', 'Energy Refractor', 'Tanglepool Bridge', 'Elvish Rejuvenator', 'White Sun''s Zenith', 'Peek', 'Teferi, Mage of Zhalfir', 'Satyr Hoplite', 'Idyllic Beachfront', 'Wandering Fumarole', 'Divinity of Pride', 'Drainpipe Vermin', 'Nimble Trapfinder', 'Mana Leak', 'Lay Down Arms', 'Elemental Masterpiece', 'Gather the Townsfolk', 'Merciless Eviction', 'Sarkhan the Masterless', 'Dauntless Bodyguard', 'Knight of Glory', 'Kiora Bests the Sea God', 'Scour All Possibilities', 'Case the Joint', 'Trace of Abundance', 'Aegis of the Gods', 'Colossal Skyturtle', 'High-Speed Hoverbike', 'Kemba, Kha Regent', 'Consume the Meek', 'Armored Scrapgorger', 'Pharika''s Cure', 'Crux of Fate', 'Tymaret, Chosen from Death', 'Basilisk Collar', 'Serra Ascendant', 'Oracle of Mul Daya', 'Pardic Miner', 'Sunken Hollow', 'Syphon Life', 'Smokestack', 'Nomad Outpost', 'Progenitor Exarch', 'Xenagos, the Reveler', 'Fumigate', 'Mindsplice Apparatus', 'Search for Azcanta', 'Wilt', 'Fierce Empath', 'Opulent Palace', 'Yisan, the Wanderer Bard', 'Experimental Augury', 'Unburial Rites', 'Guile', 'Executioner''s Capsule', 'Pull from Tomorrow', 'Midnight Reaper', 'Murderous Cut', 'Porphyry Nodes', 'Tocasia''s Dig Site', 'Dragon''s Hoard', 'The Flame of Keld', 'Oona''s Grace', 'Misery Charm', 'Union of the Third Path', 'Wasteland Strangler', 'Rustvale Bridge', 'Vampire Neonate', 'Dreadhorde Invasion', 'Mulldrifter', 'Ivy Lane Denizen', 'Strike It Rich', 'Phoenix Chick', 'Tendrils of Agony', 'Change the Equation', 'Vampire Hexmage', 'Ayli, Eternal Pilgrim', 'Priest of the Haunted Edge', 'Witching Well', 'Temple of Silence', 'Anguished Unmaking', 'Open the Armory', 'Sandsteppe Citadel', 'Goblin Chieftain', 'Sculpted Perfection', 'Pariah', 'Snow-Covered Swamp', 'Smoldering Marsh', 'Buried Ruin', 'Ashenmoor Liege', 'Unholy Heat', 'Necrogen Spellbomb', 'Dark-Dweller Oracle', 'Kabira Takedown', 'Increasing Ambition', 'Shimmer Dragon', 'Deep Forest Hermit', 'Solemn Simulacrum', 'Akroan Crusader', 'Hall of Oracles', 'Tezzeret the Schemer', 'Ancient Amphitheater', 'Burning of Xinye', 'Kruphix''s Insight', 'Llanowar Mentor', 'Disallow', 'Unbreakable Formation', 'River of Tears', 'Favored Hoplite', 'Dusk // Dawn', 'Festering Newt', 'Nature''s Lore', 'Kappa Tech-Wrecker', 'Contaminated Aquifer', 'Deep Analysis', 'Cathartic Reunion', 'Gloomshrieker', 'Abiding Grace', 'Supreme Will', 'Of One Mind', 'Altar of the Brood', 'Detention Sphere', 'Mnemonic Sphere', 'Mountain Valley', 'Kozilek''s Predator', 'Unctus, Grand Metatect', 'Changeling Outcast', 'Arbalest Engineers', 'Putrid Goblin', 'Judge''s Familiar', 'Reflector Mage', 'Benevolent Bodyguard', 'Skyclave Shade', 'Sorin, Vengeful Bloodlord', 'Cabaretti Courtyard', 'Tidespout Tyrant', 'Ertai''s Scorn', 'Boros Elite', 'Ethersworn Sphinx', 'Angel of Serenity', 'Remorseful Cleric', 'Elves of Deep Shadow', 'Carven Caryatid', 'Cauldron Familiar', 'Laboratory Maniac', 'Grapple with the Past', 'Geomancer''s Gambit', 'Bloodsoaked Champion', 'Ramunap Excavator', 'Marwyn, the Nurturer', 'Llanowar Augur', 'No Escape', 'Choked Estuary', 'Summer Bloom', 'Bloodchief''s Thirst', 'Bogardan Hellkite', 'Moderation', 'Orim''s Chant', 'Gigadrowse', 'Vraska''s Fall', 'Halana and Alena, Partners', 'Devious Cover-Up', 'Goblin Anarchomancer', 'Fabricate', 'Apostle''s Blessing', 'Crack the Earth', 'Precinct Captain', 'Malakir Rebirth', 'Embodiment of Fury', 'Curious Homunculus', 'Postmortem Lunge', 'Hypnotic Specter', 'Lizard Blades', 'Distorted Curiosity', 'Dark Prophecy', 'Mogg War Marshal', 'The Antiquities War', 'Putrefy', 'Thrash // Threat', 'Dross Skullbomb', 'Bone Shards', 'Forging the Anchor', 'World Shaper', 'Tilling Treefolk', 'Death Cloud', 'Demonic Bargain', 'Thraben Inspector', 'Mortuary Mire', 'Rotting Rats', 'Nimble Obstructionist', 'Quicksilver Gargantuan', 'Fleecemane Lion', 'Shard Volley', 'Steel Leaf Champion', 'Hada Freeblade', 'Breya''s Apprentice', 'Rain of Tears', 'Sulfur Falls', 'Hissing Quagmire', 'Timeless Witness', 'Barbed Sextant', 'Gitaxian Probe', 'Riveteers Charm', 'Vault of the Archangel', 'Smuggler''s Copter', 'Unlucky Witness', 'Glacial Fortress', 'Turnabout', 'Oona, Queen of the Fae', 'Faerie Miscreant', 'Healer''s Hawk', 'Felidar Retreat', 'Fireblade Charger', 'Falkenrath Pit Fighter', 'Moon-Circuit Hacker', 'Aetherling', 'Rakdos''s Return', 'Rust Goliath', 'Goblin Bombardment', 'Search for Tomorrow', 'Westvale Abbey', 'Blight Mamba', 'Gift of Immortality', 'Saproling Migration', 'Xerex Strobe-Knight', 'Simic Guildgate', 'Sea-Dasher Octopus', 'Rakdos Cackler', 'Brain Freeze', 'Network Disruptor', 'Invasion of Kaladesh', 'Lurrus of the Dream-Den', 'Brineborn Cutthroat', 'Verduran Enchantress', 'Demolition Field', 'Invasion of New Capenna', 'Oath of Kaya', 'Unmarked Grave', 'Vampire Lacerator', 'Tidehollow Sculler', 'Sphere of Safety', 'Blue Sun''s Zenith', 'Etherium Sculptor', 'Thornwood Falls', 'Okina, Temple to the Grandfathers', 'Sunlit Marsh', 'Fiery Justice', 'Mirror Entity', 'Commit // Memory', 'Cleansing Wildfire', 'Eidolon of Blossoms', 'Cataclysmic Gearhulk', 'Master of Death', 'Shalai, Voice of Plenty', 'Night of Souls'' Betrayal', 'Jace Beleren', 'Swooping Lookout', 'Scattered Groves', 'Frantic Search', 'Ancient Stirrings', 'Stinkdrinker Bandit', 'Runed Halo', 'Combat Thresher', 'Sigil of the Empty Throne', 'Leonin Lightscribe', 'Kaya, Ghost Assassin', 'Cartel Aristocrat', 'Ruric Thar, the Unbowed', 'Pack Rat', 'Counterflux', 'Izzet Charm', 'Elite Inquisitor', 'Acquisitions Expert', 'Sin Collector', 'Elvish Mystic', 'Isolated Chapel', 'Lagrella, the Magpie', 'Galerider Sliver', 'Lodestone Golem', 'Sheoldred''s Edict', 'Molten Tributary', 'Chief of the Foundry', 'Call of the Death-Dweller', 'Shred Memory', 'Drownyard Temple', 'Pillar of the Paruns', 'Approach of the Second Sun', 'Ossification', 'Defiant Strike', 'Kami of the Crescent Moon', 'Glistener Elf', 'Invasion of Regatha', 'Chain Lightning', 'Caldera Hellion', 'Ashnod, Flesh Mechanist', 'Dawn of Hope', 'Eldrazi Skyspawner', 'Faerie Vandal', 'Heliod''s Pilgrim', 'Soul Warden', 'Obzedat, Ghost Council', 'Siege Rhino', 'Bastion of Remembrance', 'Grand Abolisher', 'Orzhov Basilica', 'Collected Conjuring', 'Geyadrone Dihada', 'Firewild Borderpost', 'Kogla, the Titan Ape', 'Invoke Calamity', 'Shrapnel Blast', 'Mirran Crusader', 'Raven''s Crime', 'Bolas''s Citadel', 'Sylvan Library', 'Herd Migration', 'Empyrial Plate', 'Stromkirk Noble', 'Green Sun''s Twilight', 'Ally Encampment', 'Sudden Edict', 'Thoughts of Ruin', 'Tribal Flames', 'Bitter Reunion', 'Kambal, Consul of Allocation', 'Gnat Miser', 'Magister of Worth', 'Tomebound Lich', 'Rix Maadi Reveler', 'Tear Asunder', 'Valiant Changeling', 'Rally the Ranks', 'Graven Lore', 'Commune with Nature', 'Melira, the Living Cure', 'Fangren Marauder', 'Toolcraft Exemplar', 'Terminus', 'Seedcradle Witch', 'Settle the Wreckage', 'Darksteel Citadel', 'Jungle Shrine', 'Into the Story', 'Akoum Hellhound', 'Victim of Night', 'The Seedcore', 'Warstorm Surge', 'Saffi Eriksdotter', 'Sunblade Samurai', 'Froghemoth', 'Kitesail Freebooter', 'Barter in Blood', 'Vraan, Executioner Thane', 'Repeal', 'Vessel of Nascency', 'Lavaclaw Reaches', 'Desperate Ritual', 'Epic Experiment', 'Battlefield Forge', 'Lantern-Lit Graveyard', 'Silent Gravestone', 'Varolz, the Scar-Striped', 'Anafenza, the Foremost', 'Silumgar''s Scorn', 'Haunted Dead', 'Frantic Inventory', 'Voidslime', 'Ammit Eternal', 'Caves of Koilos', 'Tuktuk the Explorer', 'Crumbling Vestige', 'Yavimaya Coast', 'Lingering Souls', 'Arch of Orazca', 'Helm of the Host', 'Disciple of Bolas', 'Grenzo, Dungeon Warden', 'Mesmeric Fiend', 'Honor of the Pure', 'Sign in Blood', 'Venerated Loxodon', 'Graven Cairns', 'Golgari Rot Farm', 'Hornet Queen', 'Grand Arbiter Augustin IV', 'Izzet Boilerworks', 'Heartless Act', 'Check for Traps', 'Scrapheap Scrounger', 'Galvanic Relay', 'Temple of Deceit', 'Murderous Redcap', 'Sol Talisman', 'Pyroclasm', 'Gruul Guildgate', 'Ichorclaw Myr', 'Jukai Naturalist', 'Elas il-Kor, Sadistic Pilgrim', 'Kor Firewalker', 'Wood Elves', 'Repudiate // Replicate', 'Thornglint Bridge', 'Knight of the White Orchid', 'Demigod of Revenge', 'Fecundity', 'Voltage Surge', 'Nissa, Steward of Elements', 'Plated Geopede', 'Fertile Ground', 'Heliod''s Intervention', 'Memory Lapse', 'Mistcutter Hydra', 'Raffine''s Informant', 'Bitter Ordeal', 'Go for the Throat', 'Din of the Fireherd', 'Sin Prodder', 'Empyrial Armor', 'Predatory Sliver', 'Spectral Procession', 'Kaito, Dancing Shadow', 'Vivid Crag', 'Snow-Covered Plains', 'Obscura Charm', 'Sea Gate Oracle', 'Ancestral Blade', 'Ral, Storm Conduit', 'Throne of the God-Pharaoh', 'Enchantress''s Presence', 'Moorland Haunt', 'Blessed Alliance', 'Razortide Bridge', 'Tezzeret''s Gambit', 'Gleeful Demolition', 'Canopy Vista', 'Sinew Sliver', 'Tectonic Edge', 'Elvish Archdruid', 'Seeker of the Way', 'Simian Spirit Guide', 'Martyr of Sands', 'Lotus Cobra', 'Marble Diamond', 'Second Sunrise', 'Devil''s Play', 'Cryptic Caves', 'Concealing Curtains', 'Boon-Bringer Valkyrie', 'Dead // Gone', 'Blade Splicer', 'Vexing Shusher', 'Wayward Guide-Beast', 'Crawling Barrens', 'Tendo Ice Bridge', 'Convolute', 'Frost Marsh', 'Orcish Lumberjack', 'Tyrant''s Choice', 'Universal Automaton', 'Vindicate', 'Spell Pierce', 'Shivan Reef', 'Groundswell', 'Stinkweed Imp', 'Garruk Wildspeaker', 'Dead Weight', 'Champion of Wits', 'Woodland Cemetery', 'Dead of Winter', 'Ensoul Artifact', 'Metalwork Colossus', 'Herd Baloth', 'Hypergenesis', 'Late to Dinner', 'Hope of Ghirapur', 'Steel Overseer', 'Rally the Peasants', 'Sunpetal Grove', 'Titania, Protector of Argoth', 'Talisman of Unity', 'Elixir of Immortality', 'Keruga, the Macrosage', 'Yavimaya Iconoclast', 'Annex Sentry', 'Scrying Sheets', 'Arguel''s Blood Fast', 'Expedite', 'Mazemind Tome', 'Oni-Cult Anvil', 'Acidic Slime', 'Zuran Orb', 'Maestros Charm', 'Maelstrom Pulse', 'Empty the Warrens', 'Racers'' Ring', 'Fae of Wishes', 'Sarkhan, the Dragonspeaker', 'Vedalken Heretic', 'Gideon Jura', 'Bloodchief Ascension', 'Aetherspouts', 'Thawing Glaciers', 'Adanto Vanguard', 'Tranquil Thicket', 'Sterling Grove', 'Curiosity', 'Cremate', 'Corrupted Crossroads', 'Exhaustion', 'Kiora, the Crashing Wave', 'Lightning Strike', 'Nezahal, Primal Tide', 'Shardless Agent', 'Whispersilk Cloak', 'Quest for the Holy Relic', 'Negate', 'Braids, Cabal Minion', 'Game Trail', 'Magister Sphinx', 'Forbid', 'Memoricide', 'True Believer', 'Gather the Pack', 'Quicken', 'Fiery Temper', 'Chandra, Flamecaller', 'Seal of Cleansing', 'Birds of Paradise', 'Hinterland Harbor', 'Talisman of Curiosity', 'Angel of Despair', 'Riveteers Overlook', 'Ulcerate', 'Azorius Guildgate', 'Dream Trawler', 'Bilious Skulldweller', 'Gateway Plaza', 'Obstinate Baloth', 'Dreadhorde Butcher', 'Sire of Insanity', 'Viscera Seer', 'Greater Gargadon', 'Diabolic Tutor', 'Glamerdye', 'Jwari Shapeshifter', 'Malcator, Purity Overseer', 'Terastodon', 'Ulamog''s Crusher', 'Ghost Quarter', 'Scatter Ray', 'Voyaging Satyr', 'Mystical Teachings', 'Myr Battlesphere', 'Resolute Reinforcements', 'Flooded Grove', 'Venser, Shaper Savant', 'Voidwing Hybrid', 'Mesa Enchantress', 'Gird for Battle', 'Platinum Angel', 'Wrenn''s Resolve', 'Dark Ritual', 'Vault Skirge', 'Stone Rain', 'Weathered Wayfarer', 'Mishra''s Research Desk', 'Prophetic Prism', 'Alms of the Vein', 'Gravelgill Duo', 'Lazotep Chancellor', 'Nimbus Maze', 'Languish', 'Hesitation', 'Erebos''s Intervention', 'Mistvein Borderpost', 'Duress', 'Utter End'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.8 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Nether Spirit', 'Serrated Scorpion', 'Blood on the Snow', 'Felidar Cub', 'Hanweir Garrison', 'Pieces of the Puzzle', 'Sigrid, God-Favored', 'Overgrowth', 'Haunted Fengraf', 'Fevered Visions', 'One with the Machine', 'Rakdos Charm', 'Valiant Changeling', 'Invisible Stalker', 'The Underworld Cookbook', 'Seal of Removal', 'Chain Lightning', 'Ayli, Eternal Pilgrim', 'Doomskar', 'Mind''s Desire', 'Judith, the Scourge Diva', 'Serra Ascendant', 'Consume the Meek', 'Elemental Masterpiece', 'Stern Dismissal', 'Froghemoth', 'Aetherspouts', 'Disenchant', 'Ignite Memories', 'Return to the Ranks', 'Gilt-Leaf Archdruid', 'Agonizing Remorse', 'Stromkirk Noble', 'Grolnok, the Omnivore', 'Throne of the God-Pharaoh', 'Goblin Dark-Dwellers', 'Marauding Blight-Priest', 'Venser, the Sojourner', 'Slagwoods Bridge', 'Stirring Wildwood', 'Hypnotic Specter', 'Voidwing Hybrid', 'Vampire Lacerator', 'Secluded Steppe', 'Darksteel Citadel', 'Goblin Bombardment', 'Rise and Shine', 'Ghostfire Blade', 'Urban Evolution', 'Talisman of Conviction', 'Battlefield Forge', 'Elvish Rejuvenator', 'Tear Asunder', 'Invasion of Kaladesh', 'Nested Shambler', 'Embodiment of Fury', 'Tezzeret, Artifice Master', 'Yavimaya Iconoclast', 'Go for the Throat', 'Kozilek''s Predator', 'Sylvan Library', 'Wizard''s Retort', 'Faeburrow Elder', 'Vampire Neonate', 'Thassa''s Intervention', 'Tribal Flames', 'Deafening Clarion', 'Sunblade Samurai', 'Thoughts of Ruin', 'Kogla, the Titan Ape', 'Curiosity', 'Rishkar, Peema Renegade', 'Lingering Souls', 'Wood Elves', 'Briarbridge Tracker', 'Temple of Epiphany', 'Dauntless Bodyguard', 'Chandra, Flamecaller', 'Scrapwork Mutt', 'Carnophage', 'Lavinia of the Tenth', 'Botanical Plaza', 'Grand Architect', 'Silent Gravestone', 'Ivory Tower', 'Vedalken Heretic', 'Orcish Lumberjack', 'Radiant Grove', 'Gird for Battle', 'Heap Doll', 'Tidespout Tyrant', 'Augur of Bolas', 'Gravelgill Duo', 'Narcomoeba', 'Sculpted Perfection', 'Raging Ravine', 'Open the Gates', 'Thornglint Bridge', 'Abyssal Persecutor', 'Faithless Salvaging', 'Memory Lapse', 'Lochmere Serpent', 'Magister of Worth', 'Notorious Throng', 'Whir of Invention', 'Sire of Insanity', 'Terramorphic Expanse', 'Possibility Storm', 'Elderscale Wurm', 'Sulfur Falls', 'Halimar Excavator', 'Energy Refractor', 'Koth, Fire of Resistance', 'Leonin Relic-Warder', 'Frantic Search', 'Temple of Plenty', 'Ally Encampment', 'Circular Logic', 'Ulvenwald Hydra', 'Duplicant', 'Artisan of Kozilek', 'Keruga, the Macrosage', 'Woe Strider', 'Wing Commando', 'Elves of Deep Shadow', 'Restoration Angel', 'Rampant Growth', 'Thaumatic Compass', 'Putrefy', 'Mistblade Shinobi', 'Far // Away', 'Corrupted Crossroads', 'Unlucky Witness', 'Jace Beleren', 'Seething Song', 'Tempest Djinn', 'Terminus', 'Smoldering Marsh', 'Solitary Confinement', 'Runed Halo', 'Annex Sentry', 'River of Tears', 'Fangren Marauder', 'Gideon''s Intervention', 'Felidar Retreat', 'Murderous Redcap', 'Zhalfirin Shapecraft', 'Shard Volley', 'Corpse Cur', 'Dovin''s Acuity', 'Drossforge Bridge', 'General Ferrous Rokiric', 'Meeting of Minds', 'Diffusion Sliver', 'Dross Skullbomb', 'Fierce Empath', 'Nameless Inversion', 'Discovery // Dispersal', 'Into the Roil', 'Chittering Rats', 'Dying to Serve', 'Yahenni''s Expertise', 'Gavony Township', 'Cataclysmic Gearhulk', 'Flame Rift', 'Spirited Companion', 'Ammit Eternal', 'Fireblade Charger', 'Obzedat, Ghost Council', 'Invasion of Regatha', 'Revitalize', 'Sigil of the Empty Throne', 'Goblin Instigator', 'Evacuation', 'Porphyry Nodes', 'Cabal Initiate', 'Archon of Sun''s Grace', 'Veinfire Borderpost', 'Scattered Groves', 'Night of Souls'' Betrayal', 'Halana and Alena, Partners', 'Ral, Storm Conduit', 'Mnemonic Sphere', 'Satyr Wayfinder', 'Obscura Charm', 'Vessel of Nascency', 'Arcum''s Astrolabe', 'Gift of Immortality', 'Swiftfoot Boots', 'Careful Cultivation', 'Shred Memory', 'Zombie Infestation', 'Thornwood Falls', 'Resurgent Belief', 'Frantic Inventory', 'Genesis Ultimatum', 'Skymarcher Aspirant', 'Call of the Death-Dweller', 'Dokuchi Silencer', 'Stone Haven Outfitter', 'Glistener Elf', 'Rally the Ranks', 'Fight as One', 'Midnight Guard', 'Scatter Ray', 'Syphon Life', 'Winds of Abandon', 'Nine Lives', 'Archangel of Wrath', 'Scuttling Doom Engine', 'Riveteers Charm', 'Odds // Ends', 'Varolz, the Scar-Striped', 'Reckoner''s Bargain', 'Necrogen Spellbomb', 'Farhaven Elf', 'Cabal Ritual', 'Crawling Barrens', 'Archaeomancer', 'Razortide Bridge', 'Skyclave Shade', 'Quiet Speculation', 'Stasis Snare', 'Anoint with Affliction', 'Archangel Avacyn', 'Bloodchief''s Thirst', 'Miasmic Mummy', 'Brainstone', 'Putrid Imp', 'Pariah', 'Sheoldred''s Edict', 'Hieroglyphic Illumination', 'Stinkweed Imp', 'Fae of Wishes', 'Inscription of Ruin', 'Nimble Obstructionist', 'Racers'' Ring', 'Dreadhorde Butcher', 'Arlinn Kord', 'Herd Migration', 'Boreal Shelf', 'Ranger of Eos', 'Frostwalk Bastion', 'Cartel Aristocrat', 'Akiri, Fearless Voyager', 'Wrath of God', 'Steppe Lynx', 'Jwari Disruption', 'Giant Killer', 'Polukranos, World Eater', 'Temple of Silence', 'Favored Hoplite', 'Ornithopter', 'Wildborn Preserver', 'Oracle of Mul Daya', 'Dread Return', 'Ardent Recruit', 'Locket of Yesterdays', 'Steel Overseer', 'Healer''s Hawk', 'Graven Lore', 'Brokers Hideout', 'Jukai Naturalist', 'Game Trail', 'Third Path Iconoclast', 'Kitchen Imp', 'Kor Skyfisher', 'Archpriest of Shadows', 'Chief Engineer', 'Monument to Perfection', 'Leonin Warleader', 'Snow-Covered Swamp', 'Ravenous Squirrel', 'Caves of Koilos', 'Phantasmal Image', 'Mortuary Mire', 'Sea-Dasher Octopus', 'Drownyard Temple', 'Hall of Oracles', 'Heliod''s Pilgrim', 'War Falcon', 'Evolving Wilds', 'Frost Marsh', 'Malcator, Purity Overseer', 'Pharika''s Cure', 'Lavaclaw Reaches', 'Oona''s Prowler', 'Consul''s Lieutenant', 'Wildfield Borderpost', 'Blessed Alliance', 'Grave Titan', 'Mistvein Borderpost', 'Dire-Strain Rampage', 'General''s Enforcer', 'Cauldron Familiar', 'Champion of Wits', 'Tocasia''s Dig Site', 'Kabira Takedown', 'Consuming Vapors', 'Summer Bloom', 'Arbor Elf', 'Kaya, Ghost Assassin', 'Glamerdye', 'Leonin Lightscribe', 'Blood Artist', 'Jace, Architect of Thought', 'Eternal Scourge', 'Dead Weight', 'Doomed Traveler', 'Barbarian Ring', 'Sea Gate Oracle', 'Elixir of Immortality', 'Tangle', 'Counterflux', 'Kemba, Kha Regent', 'Magister Sphinx', 'Dusk // Dawn', 'Seal of Fire', 'Demonic Bargain', 'Breya''s Apprentice', 'Rix Maadi Reveler', 'Siege Rhino', 'Pore Over the Pages', 'Savage Lands', 'Priest of the Haunted Edge', 'Dead // Gone', 'Arcbound Ravager', 'Leonin Arbiter', 'Snow-Covered Plains', 'Skirk Prospector', 'Terastodon', 'Prologue to Phyresis', 'Marit Lage''s Slumber', 'Impulse', 'Smuggler''s Copter', 'Weapons Trainer', 'Postmortem Lunge', 'Rustvale Bridge', 'Colossal Skyturtle', 'Temple of Mystery', 'Sheltered Thicket', 'Elite Inquisitor', 'Invasion of New Capenna', 'Joint Exploration', 'Armored Scrapgorger', 'Harmonize', 'Tocatli Honor Guard', 'Knight of the White Orchid', 'Bump in the Night', 'Endbringer', 'Unholy Heat', 'Darksteel Colossus', 'Nezahal, Primal Tide', 'Ulamog''s Crusher', 'Fact or Fiction', 'Crumbling Vestige', 'Prophetic Prism', 'Soltari Priest', 'Xenagos, the Reveler', 'Hyena Umbra', 'Consult the Necrosages', 'Mystical Teachings', 'Dreadhorde Invasion', 'Feed the Swarm', 'Surge of Salvation', 'Pack Rat', 'Mistvault Bridge', 'Delver of Secrets', 'Explore', 'Vraska, Relic Seeker', 'Condemn', 'Voyaging Satyr', 'Patchwork Automaton', 'Frost Titan', 'Heliod''s Intervention', 'Lightning Spear', 'Mina and Denn, Wildborn', 'Stir the Grave', 'Angrath, the Flame-Chained', 'Groundswell', 'Altar of the Goyf', 'Mystic Monastery', 'Vivid Crag', 'Tarfire', 'Boros Guildgate', 'Greater Gargadon', 'Chamber Sentry', 'Battle of Frost and Fire', 'Vampiric Rites', 'Of One Mind', 'Maelstrom Pulse', 'Vivid Marsh', 'Wonder', 'Talisman of Curiosity', 'Moorland Haunt', 'Eldrazi Displacer', 'Dimir Aqueduct', 'Phyrexian Revoker', 'Kaito, Dancing Shadow', 'Flooded Grove', 'Nimble Larcenist', 'Scarab Feast', 'Reckless Rage', 'Selesnya Guildgate', 'Invigorate', 'No Escape', 'Oona, Queen of the Fae', 'Eidolon of Blossoms', 'Shimmer Dragon', 'Precinct Captain', 'Scab-Clan Berserker', 'Kami of the Crescent Moon', 'Wasteland Strangler', 'Fearless Fledgling', 'Fabricate', 'Merciless Eviction', 'Ulcerate', 'Haunted Dead', 'Fleecemane Lion', 'Greater Tanuki', 'Arbalest Engineers', 'Auriok Sunchaser', 'Karn''s Bastion', 'Silverbluff Bridge', 'Council''s Judgment', 'Contaminated Aquifer', 'Pillage', 'Scrabbling Claws', 'Deep Forest Hermit', 'Predatory Sliver', 'Secluded Courtyard', 'Triumphant Adventurer', 'Gigadrowse', 'Lodestone Golem', 'King Darien XLVIII', 'Glimmerpost', 'Celestial Colonnade', 'Recruitment Officer', 'Barbed Sextant', 'Wrench Mind', 'Tidehollow Sculler', 'Moment of Truth', 'Grapple with the Past', 'Fatestitcher', 'Silverblade Paladin', 'Precursor Golem', 'Phyrexian Unlife', 'Cabaretti Courtyard', 'Wrenn''s Resolve', 'Dark Ritual', 'Ghostly Flicker', 'Blade Splicer', 'Knight of the Reliquary', 'Talisman of Unity', 'Grand Arbiter Augustin IV', 'Exclude', 'Basilisk Collar', 'Seal of Cleansing', 'Kappa Tech-Wrecker', 'Cut Down', 'Unbreakable Formation', 'Galvanic Relay', 'Vampire Nighthawk', 'Changeling Outcast', 'Lose Focus', 'Erebos''s Intervention', 'Kazandu Blademaster', 'Mastermind''s Acquisition', 'Sarkhan, the Dragonspeaker', 'Karumonix, the Rat King', 'Mindslaver', 'Wandering Fumarole', 'Staff of Domination', 'Succumb to Temptation', 'Tectonic Edge', 'Vault of the Archangel', 'Torens, Fist of the Angels', 'Hesitation', 'Defiant Strike', 'Blanchwood Prowler', 'Woodfall Primus', 'Invoke Calamity', 'Frontier Bivouac', 'Sacred Peaks', 'Hideous End', 'Twinshot Sniper', 'Timeless Dragon', 'Silundi Vision', 'Liliana Vess', 'Mana Leak', 'Change the Equation', 'Distorted Curiosity', 'Oona''s Grace', 'Strike It Rich', 'Temple of Malady', 'Ogre Slumlord', 'Solemn Simulacrum', 'Viscera Seer', 'Ertai''s Scorn', 'Resolute Reinforcements', 'Commune with Nature', 'Assault // Battery', 'Out of Time', 'Dread Wanderer', 'Boomerang', 'Raven''s Crime', 'Diabolic Tutor', 'Hostage Taker', 'Kami of False Hope', 'Geomancer''s Gambit', 'Saproling Migration', 'Concealing Curtains', 'Upheaval', 'Servo Exhibition', 'Birds of Paradise', 'Ancestral Blade', 'Knowledge Pool', 'Sunken Hollow', 'Repudiate // Replicate', 'Glacial Fortress', 'Tribute to Horobi', 'Eldrazi Skyspawner', 'Tainted Indulgence', 'Kor Firewalker', 'Llanowar Tribe', 'Tezzeret the Schemer', 'Rabbit Battery', 'Kessig Wolf Run', 'Cryptic Caves', 'Forbidden Alchemy', 'Thopter Spy Network', 'Mogg War Marshal', 'Purify the Grave', 'Fumigate', 'Ponder', 'Duress', 'Into the Story', 'Teferi, Mage of Zhalfir', 'Trace of Abundance', 'Eiganjo Castle', 'Crack the Earth', 'Sunlit Marsh', 'Drowner of Hope', 'Declaration in Stone', 'Stinkdrinker Bandit', 'Pyretic Ritual', 'Dregscape Zombie', 'Spikefield Hazard', 'Fade from Memory', 'Knight of New Alara', 'Djinn of the Fountain', 'Invasion of Amonkhet', 'Fertile Ground', 'Adanto Vanguard', 'Dimensional Infiltrator', 'Supreme Will', 'Elvish Mystic', 'Falkenrath Pit Fighter', 'Frenetic Sliver', 'Worship', 'Inkwell Leviathan', 'Abundant Growth', 'Chaotic Transformation', 'Heartless Act', 'Might of Old Krosa', 'Cathedral of War', 'Combat Research', 'Ambush Viper', 'Draugr Necromancer', 'Titania, Protector of Argoth', 'Crystal Grotto', 'Phyrexian Dreadnought', 'Treasure Cruise', 'Voidslime', 'Seeker of the Way', 'Gather the Townsfolk', 'Whispersilk Cloak', 'Kiora, the Crashing Wave', 'Blight Mamba', 'Ichorclaw Myr', 'Rust Goliath', 'Kruphix''s Insight', 'Yisan, the Wanderer Bard', 'Ghostly Pilferer', 'Mesa Enchantress', 'Rakdos Guildgate', 'Sorin, Vengeful Bloodlord', 'Mouth of Ronom', 'Ral, Izzet Viceroy', 'Rain of Tears', 'Llanowar Augur', 'Demigod of Revenge', 'Obstinate Baloth', 'Inscribed Tablet', 'Temple of Triumph', 'Azorius Charm', 'Anger of the Gods', 'Xerex Strobe-Knight', 'Silversmote Ghoul', 'The Mending of Dominaria', 'Tilling Treefolk', 'Sphere of Safety', 'Dissipate', 'Day of Judgment', 'Kher Keep', 'Gift of Estates', 'Haunted Mire', 'Din of the Fireherd', 'Laboratory Maniac', 'Reflector Mage', 'Empyrial Plate', 'Forbid', 'Misery Charm', 'Drowned Rusalka', 'Drowned Catacomb', 'Devious Cover-Up', 'Figure of Destiny', 'Yawgmoth''s Bargain', 'Dreams of Steel and Oil', 'Tribute to Hunger', 'Marble Diamond', 'Rune Snag', 'Lazotep Chancellor', 'Pyroclasm', 'Spectral Procession', 'Prosperous Thief', 'Desperate Ritual', 'Smallpox', 'Akoum Hellhound', 'Spell Pierce', 'Fetid Pools', 'Convolute', 'Sunstrike Legionnaire', 'Crawling Chorus', 'Collected Conjuring', 'Gaea''s Will', 'Grim Haruspex', 'Needle Spires', 'Slaughter Pact', 'Isolated Chapel', 'Inevitable Betrayal', 'Summary Dismissal', 'Scrying Sheets', 'Commit // Memory', 'Malakir Rebirth', 'Stubborn Denial', 'Ramunap Excavator', 'Dark-Dweller Oracle', 'Oracle of Tragedy', 'Recurring Nightmare', 'Oath of Kaya', 'Rites of Spring', 'Squee, Goblin Nabob', 'Warstorm Surge', 'Aether Spellbomb', 'Ruin Crab', 'Venser, Shaper Savant', 'World Shaper', 'Epic Experiment', 'Lurrus of the Dream-Den', 'Bontu''s Last Reckoning', 'Blue Sun''s Zenith', 'Ashen Rider', 'Bubbling Muck', 'Solemnity', 'Soldier of the Pantheon', 'Westvale Abbey', 'Unctus, Grand Metatect', 'Wanderwine Hub', 'Grand Abolisher', 'Faith''s Reward', 'Thragtusk', 'Satyr Hoplite', 'Expedition Envoy', 'Goldmeadow Harrier', 'Anguished Unmaking', 'Faerie Miscreant', 'Hinterland Harbor', 'Vindicate', 'Mishra''s Factory', 'Rakdos Cackler', 'Negate', 'Cabal Therapist', 'Verduran Enchantress', 'Memoricide', 'Moderation', 'Dawn of Hope', 'Demolition Field', 'Snow-Covered Mountain', 'Tangled Islet', 'Jwari Shapeshifter', 'Rule of Law', 'Buried Ruin', 'Zur''s Weirding', 'Basking Rootwalla', 'Dark Petition', 'Wooded Bastion', 'Kefnet the Mindful', 'Thundermaw Hellkite', 'Herd Baloth', 'Ancient Stirrings', 'Gather the Pack', 'Alms of the Vein', 'Bring the Ending', 'Pyrite Spellbomb', 'Vines of Vastwood', 'Hour of Promise', 'Judge''s Familiar', 'Fetid Heath', 'Arcane Sanctum', 'Rally the Peasants', 'Tuktuk the Explorer', 'Plated Geopede', 'Dragonskull Summit', 'Vigor', 'Mausoleum Secrets', 'Woodland Cemetery', 'Soul Snare', 'Caldera Hellion', 'Call to the Grave', 'Seismic Assault', 'Fracturing Gust', 'Nezumi Graverobber', 'Brain Freeze', 'Wildfire', 'Orzhov Guildgate', 'Oblivion Ring', 'Bedlam Reveler', 'Price of Progress', 'Altar of the Brood', 'Gruul Guildgate', 'High-Speed Hoverbike', 'Repeal', 'Scrapheap Scrounger', 'Commence the Endgame', 'Rootwater Depths', 'Castigate', 'Gloomshrieker', 'Icehide Golem', 'Halo Forager', 'Rift Bolt', 'Tezzeret''s Gambit', 'Avacyn''s Pilgrim', 'Firewild Borderpost', 'Smother', 'Port Town', 'Arch of Orazca', 'Remorseful Cleric', 'Self-Assembler', 'Open the Armory', 'Azorius Guildgate', 'Golgari Rot Farm', 'Angel of Serenity', 'Goblin Matron', 'Psychatog', 'Pardic Miner', 'Victim of Night', 'Burning of Xinye', 'Ayara, First of Locthwain', 'Lizard Blades', 'Fallaji Archaeologist', 'Sunpetal Grove', 'Bastion of Remembrance', 'Hard Evidence', 'Gutterbones', 'Artistic Refusal', 'Assemble the Legion', 'Sphinx''s Herald', 'Molten Tributary', 'Cathartic Reunion', 'Bituminous Blast', 'Languish', 'Anafenza, the Foremost', 'Lotus Cobra', 'Clifftop Retreat', 'Raze to the Ground', 'Search for Tomorrow', 'Sandwurm Convergence', 'Esper Charm', 'Doom Blade', 'Makeshift Mannequin', 'Fyndhorn Elves', 'Ezuri, Renegade Leader', 'Dispatch', 'Viashino Pyromancer', 'Deep Analysis', 'Coiling Oracle', 'Night Market Lookout', 'Invasion of Zendikar', 'Teneb, the Harvester', 'Bolas''s Citadel', 'Stormrider Spirit', 'Goblin Electromancer', 'Weathered Wayfarer', 'Peek', 'Surrak, the Hunt Caller', 'Pashalik Mons', 'Phoenix Chick', 'Founding the Third Path', 'Lost Legacy', 'Radha, Heart of Keld', 'Llanowar Mentor', 'Banishing Slash', 'Psychic Possession', 'Floriferous Vinewall', 'Vraska''s Contempt', 'Izzet Charm', 'Graveborn Muse', 'Valakut Exploration', 'Ransack the Lab', 'Marwyn, the Nurturer', 'Teshar, Ancestor''s Apostle', 'Maestros Charm', 'Vexing Shusher', 'Squadron Hawk', 'Dismal Backwater', 'Dryad Militant', 'Anafenza, Kin-Tree Spirit', 'Loxodon Smiter', 'Restore Balance', 'Platinum Angel', 'Universal Automaton', 'Disciple of Bolas', 'Union of the Third Path', 'Grove of the Guardian', 'Tyrant''s Choice', 'Ensoul Artifact', 'Hornet Queen', 'Shambling Vent', 'Progenitor Exarch', 'Vraan, Executioner Thane', 'Carven Caryatid', 'Rise // Fall', 'Benevolent Bodyguard', 'Touch the Spirit Realm', 'Ovika, Enigma Goliath', 'Tamiyo, Collector of Tales', 'Thraben Inspector', 'Voltage Surge', 'Metalwork Colossus', 'Pillar of the Paruns', 'Otherworldly Journey', 'Cliffside Lookout', 'Lagrella, the Magpie', 'Waking the Trolls', 'Big Score', 'Oni-Cult Anvil', 'Second Sunrise', 'Okina, Temple to the Grandfathers', 'Zephyr Singer', 'Simic Guildgate', 'Crux of Fate', 'Mirage Mirror', 'Gitaxian Probe', 'Kitchen Finks', 'Demonic Dread', 'Rotting Rats', 'Shalai, Voice of Plenty', 'Ivy Lane Denizen', 'Nimble Trapfinder', 'Timely Reinforcements', 'Nimbus Maze', 'Forked Bolt', 'Huatli, Radiant Champion', 'Elvish Visionary', 'Seedcradle Witch', 'Murmuring Bosk', 'Aetherling', 'Curse of Exhaustion', 'Elspeth Conquers Death', 'Nomad Outpost', 'Aetherblade Agent', 'Forsake the Worldly', 'Timeless Witness', 'Shimmerdrift Vale', 'Geothermal Bog', 'Decree of Justice', 'Battle of Wits', 'Exhaustion', 'Putrid Goblin', 'Thrill of Possibility', 'Oust', 'Spatial Contortion', 'Lightning Strike', 'Oath of Teferi', 'Terminate', 'Norn''s Inquisitor', 'Wayward Guide-Beast', 'Mirran Crusader', 'Tanglepool Bridge', 'Slagstorm', 'Spectral Shift', 'Etherium Sculptor', 'Festering Newt', 'Elvish Clancaller', 'Choked Estuary', 'Nature''s Lore', 'Invasion of Ergamon', 'Sol Talisman', 'Abzan Charm', 'Empty the Warrens', 'Moon-Circuit Hacker', 'Springleaf Drum', 'Bident of Thassa', 'Dakmor Salvage', 'Master of Death', 'Witching Well', 'Myr Superion', 'Mistveil Plains', 'Steel Leaf Champion', 'Dragon''s Hoard', 'Wolfbriar Elemental', 'Bogardan Hellkite', 'Argentum Masticore', 'Honor of the Pure', 'Sculpting Steel', 'Graaz, Unstoppable Juggernaut', 'Wild Cantor', 'Incinerate', 'Angel of Despair', 'Vault Skirge', 'Jungle Shrine', 'Invasion of Azgol', 'Jor Kadeen, First Goldwarden', 'Grafted Butcher', 'Forgotten Cave', 'Vivid Grove', 'Big Game Hunter', 'Hero''s Downfall', 'Golgari Guildgate', 'Network Disruptor', 'Kiora Bests the Sea God', 'Sylvan Caryatid', 'Braids, Cabal Minion', 'Drainpipe Vermin', 'Emmara, Soul of the Accord', 'Fecundity', 'Ground Seal', 'Mishra''s Research Desk', 'Elvish Archdruid', 'Vampire Hexmage', 'Master of Etherium', 'Bloodbraid Elf', 'Brave the Sands', 'Acquisitions Expert', 'Rakdos''s Return', 'Burst Lightning', 'Tolarian Terror', 'Angel of Grace', 'Idyllic Beachfront', 'Check for Traps', 'Ossification', 'Rocco, Cabaretti Caterer', 'Sign in Blood', 'Tresserhorn Sinks', 'Increasing Ambition', 'Dark Prophecy', 'Corrupted Conviction', 'Tendo Ice Bridge', 'Bubbling Cauldron', 'Sins of the Past', 'Scour All Possibilities', 'Mwonvuli Acid-Moss', 'Apostle''s Blessing', 'Settle the Wreckage', 'Thawing Glaciers', 'Cleansing Wildfire', 'Myth Realized', 'Sylvan Advocate', 'Time of Need', 'Black Sun''s Zenith', 'Flametongue Kavu', 'Leather Armor', 'Kambal, Consul of Allocation', 'Canopy Vista', 'Bitter Ordeal', 'Think Twice', 'Genesis Hydra', 'Hooting Mandrills', 'Glint-Sleeve Siphoner', 'Aegis of the Gods', 'Sultai Charm', 'Malicious Malfunction', 'Folio of Fancies', 'Godo, Bandit Warlord', 'White Sun''s Zenith', 'Electrolyze', 'Bloodchief Ascension', 'Gideon''s Lawkeeper', 'Nephalia Drownyard', 'Bloodline Keeper', 'Grave Scrabbler', 'Pain Seer', 'Madcap Experiment', 'Blazing Rootwalla', 'Expedite', 'Unburial Rites', 'Experimental Augury', 'Combat Thresher', 'Melira, Sylvok Outcast', 'The Celestus', 'Control Magic', 'Primal Command', 'Ephara, God of the Polis', 'Yasharn, Implacable Earth', 'Duneblast', 'The Flame of Keld', 'Ajani, Mentor of Heroes', 'Curious Homunculus', 'Ethersworn Sphinx', 'Temple of Deceit', 'Sin Collector', 'Vadrik, Astral Archmage', 'Divest', 'Bloodthrone Vampire', 'Search for Azcanta', 'Devil''s Play', 'Argentum Armor', 'Eerie Ultimatum', 'Gallia of the Endless Dance', 'Destroy Evil', 'Divinity of Pride', 'Bogbrew Witch', 'Venser, Corpse Puppet', 'Yosei, the Morning Star', 'Dimir Guildgate', 'Stupor', 'Gateway Plaza', 'Sweltering Suns', 'Cultivate', 'Herald of the Pantheon', 'Dakkon, Shadow Slayer', 'Temple of Abandon', 'Maze''s End', 'Canyon Slough', 'Voldaren Pariah', 'Zuran Orb', 'Temple of Enlightenment', 'Riveteers Overlook', 'All That Glitters', 'Nissa, Worldwaker', 'Mirror Entity', 'Hissing Quagmire', 'Shivan Reef', 'Glimpse of Tomorrow', 'Brineborn Cutthroat', 'Mistcutter Hydra', 'Sylvan Scrying', 'Glorybringer', 'Flaying Tendrils', 'Tymaret, Chosen from Death', 'Jokulhaups', 'Sarkhan the Masterless', 'Commune with the Gods', 'Kemba, Kha Enduring', 'Nevermore', 'Midnight Reaper', 'Raise the Alarm', 'Nekrataal', 'Slogurk, the Overslime', 'Rally the Ancestors', 'Angel of Condemnation', 'Saffi Eriksdotter', 'Bilious Skulldweller', 'Helm of the Host', 'Throat Slitter', 'Silver-Fur Master', 'Ghost Quarter', 'The Seedcore', 'Stoke the Flames', 'Shardless Agent', 'Utter End', 'Pull from Tomorrow', 'Dream Trawler', 'Protect the Negotiators', 'Forging the Anchor', 'Late to Dinner', 'Elas il-Kor, Sadistic Pilgrim', 'True Believer', 'Volt Charge', 'Quicken', 'Earthquake', 'Arguel''s Blood Fast', 'Ashenmoor Liege', 'Rites of Initiation', 'Shrapnel Blast', 'Destiny Spinner', 'Unsubstantiate', 'Erebos, Bleak-Hearted', 'Barter in Blood', 'Jungle Hollow', 'Swooping Lookout', 'Geyadrone Dihada', 'Opulent Palace', 'Sterling Grove', 'Abiding Grace', 'Krosan Grip', 'Ancient Amphitheater', 'Sin Prodder', 'Idyllic Tutor', 'Gnat Miser', 'Gadrak, the Crown-Scourge', 'Unmarked Grave', 'Quest for the Holy Relic', 'Myr Battlesphere', 'Kitesail Freebooter', 'Silumgar, the Drifting Death', 'Ancient Ziggurat', 'Deprive', 'Melira, the Living Cure', 'Sudden Edict', 'Prohibit', 'Mindsplice Apparatus', 'Venerated Loxodon', 'Green Sun''s Twilight', 'Pharika''s Libation', 'Reveillark', 'Presence of Gond', 'Vraska''s Fall', 'Yavimaya Coast', 'See Beyond', 'Executioner''s Capsule', 'Simian Spirit Guide', 'Lantern-Lit Graveyard', 'Mothdust Changeling', 'Abundant Harvest', 'Mountain Valley', 'Tendrils of Agony', 'Nether Traitor', 'Kjeldoran Outpost', 'Enchantress''s Presence', 'Goldmire Bridge', 'Brave the Elements', 'Guile', 'Sylvan Messenger', 'Mulch', 'Orzhov Basilica', 'The Antiquities War', 'Hypergenesis', 'Obliterate', 'Gnawing Vermin', 'Bone Shards', 'Nightscape Familiar', 'Rootbound Crag', 'Reinforced Ronin', 'Orim''s Chant', 'Disallow', 'Sinister Concoction', 'Turnabout', 'Morsel Theft', 'Genesis Wave', 'Grenzo, Dungeon Warden', 'Sprite Dragon', 'Cloudshredder Sliver', 'Mazemind Tome', 'Runeflare Trap', 'Kunoros, Hound of Athreos', 'Sandsteppe Citadel', 'Izzet Guildgate', 'Tranquil Thicket', 'Drake Haven', 'Evangel of Synthesis', 'Goblin Chieftain', 'Kumano Faces Kakkazan', 'Drown in Ichor', 'Vryn Wingmare', 'Commune with Spirits', 'Luminarch Ascension', 'Vapor Snag', 'Ishkanah, Grafwidow', 'Soul Warden', 'Territorial Kavu', 'Shizo, Death''s Storehouse', 'Llanowar Elves', 'Murderous Cut', 'Circuit Mender', 'Thopter Mechanic', 'Fire Prophecy', 'Galerider Sliver', 'Fruit of Tizerus', 'Shape Anew', 'Ruric Thar, the Unbowed', 'Lathliss, Dragon Queen', 'Hope of Ghirapur', 'Nissa, Steward of Elements', 'Dead of Winter', 'Mindcrank', 'Faerie Vandal', 'Gleeful Demolition', 'Blightning', 'Engulf the Shore', 'Mulldrifter', 'Ethereal Armor', 'Bloodsoaked Champion', 'Shriekmaw', 'Wall of Omens', 'Death Cloud', 'Sever the Bloodline', 'Acidic Slime', 'Izzet Boilerworks', 'Skyshroud Elf', 'Anticipate', 'Ashnod, Flesh Mechanist', 'Martyr of Sands', 'Thrash // Threat', 'Phalanx Leader', 'Delay', 'Baneful Omen', 'Shigeki, Jukai Visionary', 'Bitter Reunion', 'Reckless Charge', 'Wilt', 'Chandra, Pyromaster', 'Bloodvial Purveyor', 'Farseek', 'Smokestack', 'Simian Sling', 'Graven Cairns', 'Hada Freeblade', 'Stone Rain', 'Akroan Crusader', 'Boon-Bringer Valkyrie', 'Cloudpost', 'Sinew Sliver', 'Kalastria Healer', 'Gideon Jura', 'Mesmeric Fiend', 'Howling Mine', 'Detention Sphere', 'Tomebound Lich', 'Orzhov Charm', 'Obscura Storefront', 'Nullpriest of Oblivion', 'Chief of the Foundry', 'Toolcraft Exemplar', 'Blightbelly Rat', 'Stoic Rebuttal', 'Become Immense', 'Goblin Anarchomancer', 'Fiery Temper', 'Ghitu Lavarunner', 'Experimental Synthesizer', 'Gruul Turf', 'Altered Ego', 'Tooth and Nail', 'Disrupting Shoal', 'Silumgar''s Scorn', 'Case the Joint', 'Knight of Glory', 'Spell Burst', 'Perilous Myr', 'Spellweaver Helix', 'Lay Down Arms', 'Fiery Justice', 'Quicksilver Gargantuan', 'Sleight of Hand', 'Mikokoro, Center of the Sea', 'Phyrexian Censor', 'Yorion, Sky Nomad', 'Cremate', 'The Scorpion God', 'Ebony Owl Netsuke', 'Boros Elite', 'Ajani, Adversary of Tyrants', 'Empyrial Armor', 'Approach of the Second Sun', 'Lead the Stampede', 'Gruul Spellbreaker', 'Garruk Wildspeaker', 'Terrarion', 'Fieldmist Borderpost', 'Raffine''s Informant', 'Chandra, Fire Artisan'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.8, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Heliod''s Pilgrim', 'Pharika''s Libation', 'No Escape', 'Sylvan Library', 'Rally the Ranks', 'Wayward Guide-Beast', 'Braids, Cabal Minion', 'Arcbound Ravager', 'Icehide Golem', 'Adanto Vanguard', 'Protect the Negotiators', 'Pariah', 'Pack Rat', 'Krosan Grip', 'Raging Ravine', 'Lightning Strike', 'Unmarked Grave', 'Might of Old Krosa', 'Temple of Silence', 'Boros Guildgate', 'Spellweaver Helix', 'Supreme Will', 'Zephyr Singer', 'Terastodon', 'Seal of Cleansing', 'Geyadrone Dihada', 'Scattered Groves', 'Oona''s Grace', 'Djinn of the Fountain', 'Elvish Archdruid', 'Engulf the Shore', 'Sultai Charm', 'Verduran Enchantress', 'Grenzo, Dungeon Warden', 'Aetherling', 'Forbidden Alchemy', 'Delver of Secrets', 'Rally the Ancestors', 'Bring the Ending', 'Frost Titan', 'Cloudpost', 'Saproling Migration', 'Sphinx''s Herald', 'Staff of Domination', 'Makeshift Mannequin', 'Vivid Crag', 'Pull from Tomorrow', 'Mistcutter Hydra', 'Serra Ascendant', 'Invasion of Kaladesh', 'Angrath, the Flame-Chained', 'Murmuring Bosk', 'Victim of Night', 'Battle of Wits', 'Triumphant Adventurer', 'Silverbluff Bridge', 'Hideous End', 'Detention Sphere', 'Ruric Thar, the Unbowed', 'Kessig Wolf Run', 'Phyrexian Unlife', 'Feed the Swarm', 'Basking Rootwalla', 'Remorseful Cleric', 'Tangled Islet', 'Phyrexian Censor', 'Solemnity', 'Endbringer', 'Varolz, the Scar-Striped', 'Anafenza, the Foremost', 'Nephalia Drownyard', 'General Ferrous Rokiric', 'Tendo Ice Bridge', 'Resurgent Belief', 'Sylvan Caryatid', 'Seething Song', 'Scrabbling Claws', 'Pharika''s Cure', 'Stupor', 'Sandwurm Convergence', 'Xerex Strobe-Knight', 'Nether Traitor', 'Vessel of Nascency', 'Jwari Shapeshifter', 'Polukranos, World Eater', 'Molten Tributary', 'Quicken', 'Ishkanah, Grafwidow', 'Kaito, Dancing Shadow', 'High-Speed Hoverbike', 'Disallow', 'Upheaval', 'Radha, Heart of Keld', 'Barbarian Ring', 'Satyr Hoplite', 'Putrid Imp', 'Drownyard Temple', 'Dispatch', 'Tidespout Tyrant', 'Chief of the Foundry', 'Woodfall Primus', 'Aetherblade Agent', 'Pyretic Ritual', 'Herd Migration', 'Grand Architect', 'Midnight Guard', 'Rift Bolt', 'Utter End', 'Dreadhorde Butcher', 'Azorius Guildgate', 'Forgotten Cave', 'Felidar Retreat', 'Bituminous Blast', 'Spirited Companion', 'Divest', 'Impulse', 'Master of Death', 'Steppe Lynx', 'Mulch', 'Expedite', 'Sin Collector', 'Wildborn Preserver', 'Gnawing Vermin', 'Glamerdye', 'Shambling Vent', 'Dark Petition', 'Ignite Memories', 'Changeling Outcast', 'Winds of Abandon', 'Shimmer Dragon', 'Mouth of Ronom', 'Cabal Initiate', 'Sever the Bloodline', 'Tomebound Lich', 'Ensoul Artifact', 'Shardless Agent', 'Luminarch Ascension', 'Laboratory Maniac', 'Smother', 'Tribute to Hunger', 'Yahenni''s Expertise', 'Golgari Guildgate', 'Case the Joint', 'Savage Lands', 'Sinew Sliver', 'Teneb, the Harvester', 'Blessed Alliance', 'Expedition Envoy', 'Burst Lightning', 'Invasion of Ergamon', 'Baneful Omen', 'Selesnya Guildgate', 'Fireblade Charger', 'Nameless Inversion', 'Oath of Kaya', 'Blightbelly Rat', 'Monument to Perfection', 'Thornglint Bridge', 'Thraben Inspector', 'Mesmeric Fiend', 'Demigod of Revenge', 'Control Magic', 'Night Market Lookout', 'Scrying Sheets', 'Thoughts of Ruin', 'Bloodthrone Vampire', 'Soul Snare', 'Circular Logic', 'Oblivion Ring', 'Deep Forest Hermit', 'Kefnet the Mindful', 'Prohibit', 'Gateway Plaza', 'Yorion, Sky Nomad', 'Stoic Rebuttal', 'Tezzeret''s Gambit', 'Kozilek''s Predator', 'Wandering Fumarole', 'Tymaret, Chosen from Death', 'Fallaji Archaeologist', 'Lodestone Golem', 'Rise and Shine', 'Temple of Plenty', 'Coiling Oracle', 'Marauding Blight-Priest', 'Chain Lightning', 'Jwari Disruption', 'Stir the Grave', 'Ovika, Enigma Goliath', 'Rakdos Cackler', 'Mountain Valley', 'Ravenous Squirrel', 'Cryptic Caves', 'Oust', 'Game Trail', 'Pillage', 'Treasure Cruise', 'Martyr of Sands', 'Sculpted Perfection', 'Ruin Crab', 'Bubbling Cauldron', 'Yasharn, Implacable Earth', 'Pain Seer', 'Third Path Iconoclast', 'Cleansing Wildfire', 'Black Sun''s Zenith', 'Rune Snag', 'Teferi, Mage of Zhalfir', 'Liliana Vess', 'Godo, Bandit Warlord', 'Ajani, Adversary of Tyrants', 'Mastermind''s Acquisition', 'Mina and Denn, Wildborn', 'Lagrella, the Magpie', 'Kor Skyfisher', 'Increasing Ambition', 'Rabbit Battery', 'Frost Marsh', 'Figure of Destiny', 'Frostwalk Bastion', 'Assemble the Legion', 'Jungle Hollow', 'Pyrite Spellbomb', 'Arguel''s Blood Fast', 'Arbor Elf', 'Bloodvial Purveyor', 'Greater Tanuki', 'Gruul Turf', 'Eerie Ultimatum', 'Brain Freeze', 'Viscera Seer', 'Ashnod, Flesh Mechanist', 'Veinfire Borderpost', 'Temple of Deceit', 'Kiora, the Crashing Wave', 'Invasion of Azgol', 'Dimensional Infiltrator', 'Ashen Rider', 'Tooth and Nail', 'Chittering Rats', 'Oona, Queen of the Fae', 'Reflector Mage', 'Vault Skirge', 'Overgrowth', 'Blight Mamba', 'Tolarian Terror', 'Worship', 'Corpse Cur', 'Eldrazi Skyspawner', 'Goldmire Bridge', 'Ayara, First of Locthwain', 'True Believer', 'Surrak, the Hunt Caller', 'Putrid Goblin', 'Empyrial Armor', 'Mindcrank', 'Izzet Boilerworks', 'Assault // Battery', 'Waking the Trolls', 'Stromkirk Noble', 'Battle of Frost and Fire', 'Cathedral of War', 'Ramunap Excavator', 'Invasion of New Capenna', 'Squadron Hawk', 'Hour of Promise', 'Return to the Ranks', 'Nested Shambler', 'Cathartic Reunion', 'Gnat Miser', 'Rishkar, Peema Renegade', 'Drake Haven', 'Narcomoeba', 'Heartless Act', 'Bloodbraid Elf', 'Forked Bolt', 'Flametongue Kavu', 'Halo Forager', 'Aegis of the Gods', 'Territorial Kavu', 'Sterling Grove', 'Brainstone', 'Boon-Bringer Valkyrie', 'Postmortem Lunge', 'Kemba, Kha Enduring', 'Toolcraft Exemplar', 'Kitesail Freebooter', 'Sigil of the Empty Throne', 'Sylvan Messenger', 'Arch of Orazca', 'Acidic Slime', 'Duplicant', 'Fiery Justice', 'Glorybringer', 'Fatestitcher', 'Wonder', 'Faithless Salvaging', 'Squee, Goblin Nabob', 'Scrapwork Mutt', 'Swiftfoot Boots', 'Marwyn, the Nurturer', 'Sire of Insanity', 'Commence the Endgame', 'Phalanx Leader', 'Crawling Chorus', 'Rain of Tears', 'Secluded Courtyard', 'Nullpriest of Oblivion', 'The Celestus', 'Weathered Wayfarer', 'Nevermore', 'Bogardan Hellkite', 'Elvish Mystic', 'Dross Skullbomb', 'Fact or Fiction', 'Patchwork Automaton', 'Ornithopter', 'Porphyry Nodes', 'Restoration Angel', 'Anafenza, Kin-Tree Spirit', 'Experimental Augury', 'Battlefield Forge', 'Moderation', 'Dark Ritual', 'Madcap Experiment', 'Kiora Bests the Sea God', 'Zombie Infestation', 'Malcator, Purity Overseer', 'Sunpetal Grove', 'Rotting Rats', 'Thragtusk', 'Enchantress''s Presence', 'Strike It Rich', 'Bump in the Night', 'Arcane Sanctum', 'Tear Asunder', 'Price of Progress', 'Misery Charm', 'Fyndhorn Elves', 'Shimmerdrift Vale', 'Mishra''s Research Desk', 'Ancient Ziggurat', 'Melira, the Living Cure', 'Faith''s Reward', 'Vault of the Archangel', 'Darksteel Citadel', 'Leonin Warleader', 'Sunken Hollow', 'Castigate', 'Argentum Masticore', 'Lavinia of the Tenth', 'Lurrus of the Dream-Den', 'Shivan Reef', 'Nimble Trapfinder', 'Dead // Gone', 'Hero''s Downfall', 'Open the Armory', 'Lochmere Serpent', 'Night of Souls'' Betrayal', 'Hornet Queen', 'Ammit Eternal', 'Search for Azcanta', 'Ghost Quarter', 'Radiant Grove', 'Wildfire', 'Farseek', 'General''s Enforcer', 'Malakir Rebirth', 'Tribute to Horobi', 'Consul''s Lieutenant', 'Stoke the Flames', 'Botanical Plaza', 'Jukai Naturalist', 'War Falcon', 'Bubbling Muck', 'Cloudshredder Sliver', 'Seal of Removal', 'Desperate Ritual', 'Vraska, Relic Seeker', 'Thrash // Threat', 'Frantic Search', 'The Scorpion God', 'Notorious Throng', 'Orzhov Charm', 'Thrill of Possibility', 'Languish', 'Orcish Lumberjack', 'Yisan, the Wanderer Bard', 'Tidehollow Sculler', 'Garruk Wildspeaker', 'Goblin Electromancer', 'Judith, the Scourge Diva', 'Wanderwine Hub', 'Sorin, Vengeful Bloodlord', 'Kabira Takedown', 'Bone Shards', 'Phyrexian Revoker', 'Throne of the God-Pharaoh', 'Invisible Stalker', 'Dauntless Bodyguard', 'Goblin Dark-Dwellers', 'Lost Legacy', 'Moment of Truth', 'Healer''s Hawk', 'Tezzeret the Schemer', 'Midnight Reaper', 'Akoum Hellhound', 'Sunlit Marsh', 'Dakmor Salvage', 'Gruul Spellbreaker', 'Elvish Rejuvenator', 'Vampire Neonate', 'Rix Maadi Reveler', 'Haunted Fengraf', 'Fieldmist Borderpost', 'Sacred Peaks', 'Briarbridge Tracker', 'Pashalik Mons', 'Tectonic Edge', 'Death Cloud', 'Vigor', 'Servo Exhibition', 'Plated Geopede', 'Elderscale Wurm', 'Primal Command', 'Chamber Sentry', 'Barbed Sextant', 'Seismic Assault', 'Corrupted Crossroads', 'Abzan Charm', 'Succumb to Temptation', 'Acquisitions Expert', 'Fabricate', 'Flame Rift', 'Snow-Covered Swamp', 'Brave the Elements', 'Weapons Trainer', 'Ransack the Lab', 'Deafening Clarion', 'Basilisk Collar', 'Teshar, Ancestor''s Apostle', 'Choked Estuary', 'Vampire Hexmage', 'Wood Elves', 'Vexing Shusher', 'Possibility Storm', 'Search for Tomorrow', 'Titania, Protector of Argoth', 'Boros Elite', 'Dregscape Zombie', 'Frenetic Sliver', 'Raise the Alarm', 'Summer Bloom', 'Grapple with the Past', 'Pore Over the Pages', 'Drowned Catacomb', 'Otherworldly Journey', 'Mind''s Desire', 'The Underworld Cookbook', 'Galvanic Relay', 'Sylvan Scrying', 'Call to the Grave', 'Merciless Eviction', 'Simic Guildgate', 'Nimbus Maze', 'Kruphix''s Insight', 'Spatial Contortion', 'Riveteers Charm', 'Seedcradle Witch', 'White Sun''s Zenith', 'Boomerang', 'Bilious Skulldweller', 'Howling Mine', 'Myth Realized', 'Halana and Alena, Partners', 'Viashino Pyromancer', 'See Beyond', 'Whir of Invention', 'Faerie Miscreant', 'Silumgar''s Scorn', 'Dark-Dweller Oracle', 'Wing Commando', 'Dreadhorde Invasion', 'King Darien XLVIII', 'Exclude', 'Maelstrom Pulse', 'Fecundity', 'Mausoleum Secrets', 'Graaz, Unstoppable Juggernaut', 'Stinkdrinker Bandit', 'Falkenrath Pit Fighter', 'Lazotep Chancellor', 'Consume the Meek', 'Decree of Justice', 'Phantasmal Image', 'Oath of Teferi', 'Kogla, the Titan Ape', 'Tendrils of Agony', 'Talisman of Conviction', 'Voltage Surge', 'Hypnotic Specter', 'Ral, Izzet Viceroy', 'Commune with Nature', 'Mindsplice Apparatus', 'Shape Anew', 'Condemn', 'Carnophage', 'Blightning', 'Vampire Lacerator', 'Buried Ruin', 'Experimental Synthesizer', 'Gilt-Leaf Archdruid', 'Wrenn''s Resolve', 'Hinterland Harbor', 'Reckoner''s Bargain', 'Invasion of Regatha', 'Resolute Reinforcements', 'Gavony Township', 'Tezzeret, Artifice Master', 'Nightscape Familiar', 'Gigadrowse', 'Cliffside Lookout', 'Rakdos''s Return', 'Inevitable Betrayal', 'Of One Mind', 'Gather the Pack', 'Yavimaya Coast', 'Lead the Stampede', 'Elixir of Immortality', 'Knowledge Pool', 'Spectral Procession', 'Venser, the Sojourner', 'Vampiric Rites', 'Stern Dismissal', 'Barter in Blood', 'Time of Need', 'Ghostly Pilferer', 'Pardic Miner', 'Big Game Hunter', 'Dissipate', 'Elas il-Kor, Sadistic Pilgrim', 'Nether Spirit', 'Maze''s End', 'Go for the Throat', 'Gleeful Demolition', 'Nezumi Graverobber', 'Morsel Theft', 'Serrated Scorpion', 'Cabaretti Courtyard', 'Canyon Slough', 'Ivory Tower', 'Invasion of Zendikar', 'Moorland Haunt', 'Murderous Cut', 'Presence of Gond', 'Prologue to Phyresis', 'Mana Leak', 'Blue Sun''s Zenith', 'Into the Story', 'Ivy Lane Denizen', 'Ardent Recruit', 'Rampant Growth', 'Genesis Hydra', 'Rustvale Bridge', 'The Flame of Keld', 'Glacial Fortress', 'Lantern-Lit Graveyard', 'Skymarcher Aspirant', 'Shred Memory', 'Union of the Third Path', 'Careful Cultivation', 'Reinforced Ronin', 'Fiery Temper', 'Quiet Speculation', 'Cabal Ritual', 'Kalastria Healer', 'Stone Haven Outfitter', 'Nature''s Lore', 'Loxodon Smiter', 'Vindicate', 'Sunblade Samurai', 'Network Disruptor', 'Zhalfirin Shapecraft', 'Arlinn Kord', 'Oni-Cult Anvil', 'Huatli, Radiant Champion', 'Fruit of Tizerus', 'Dimir Aqueduct', 'Blood Artist', 'Diffusion Sliver', 'Hooting Mandrills', 'Boreal Shelf', 'Snow-Covered Mountain', 'Tranquil Thicket', 'Tuktuk the Explorer', 'Tribal Flames', 'Ethereal Armor', 'Goldmeadow Harrier', 'Dokuchi Silencer', 'Ephara, God of the Polis', 'Wilt', 'Invasion of Amonkhet', 'Metalwork Colossus', 'Silverblade Paladin', 'Celestial Colonnade', 'Locket of Yesterdays', 'Grave Scrabbler', 'Golgari Rot Farm', 'Fetid Heath', 'Knight of New Alara', 'Voyaging Satyr', 'Mishra''s Factory', 'Lizard Blades', 'Orzhov Basilica', 'Gravelgill Duo', 'Dead of Winter', 'Far // Away', 'Counterflux', 'Graveborn Muse', 'Drowned Rusalka', 'Groundswell', 'Hard Evidence', 'Elves of Deep Shadow', 'Circuit Mender', 'Terminus', 'Phoenix Chick', 'Galerider Sliver', 'Mirage Mirror', 'Prophetic Prism', 'Llanowar Mentor', 'Talisman of Curiosity', 'Flooded Grove', 'Ogre Slumlord', 'Jace Beleren', 'Brineborn Cutthroat', 'Corrupted Conviction', 'One with the Machine', 'Kher Keep', 'Drown in Ichor', 'Mogg War Marshal', 'Sylvan Advocate', 'Greater Gargadon', 'Favored Hoplite', 'Smoldering Marsh', 'Ajani, Mentor of Heroes', 'Izzet Charm', 'Goblin Instigator', 'Dread Wanderer', 'Torens, Fist of the Angels', 'Unbreakable Formation', 'Touch the Spirit Realm', 'Llanowar Elves', 'Syphon Life', 'Stasis Snare', 'Wasteland Strangler', 'Convolute', 'Knight of the Reliquary', 'Hope of Ghirapur', 'Demolition Field', 'Brave the Sands', 'Ebony Owl Netsuke', 'Myr Battlesphere', 'Faerie Vandal', 'Melira, Sylvok Outcast', 'Steel Overseer', 'Raze to the Ground', 'Kitchen Imp', 'Mwonvuli Acid-Moss', 'Consult the Necrosages', 'Diabolic Tutor', 'Ally Encampment', 'Concealing Curtains', 'Burning of Xinye', 'Froghemoth', 'Myr Superion', 'Ayli, Eternal Pilgrim', 'Kami of False Hope', 'Annex Sentry', 'Fertile Ground', 'The Seedcore', 'Glimmerpost', 'Vivid Grove', 'Soul Warden', 'Yawgmoth''s Bargain', 'Precinct Captain', 'Graven Lore', 'Dire-Strain Rampage', 'Wrath of God', 'Memoricide', 'Kambal, Consul of Allocation', 'Blazing Rootwalla', 'Meeting of Minds', 'Sunstrike Legionnaire', 'Arbalest Engineers', 'Mirror Entity', 'Forging the Anchor', 'Armored Scrapgorger', 'Blanchwood Prowler', 'Sign in Blood', 'Anger of the Gods', 'Grand Arbiter Augustin IV', 'Kjeldoran Outpost', 'Drossforge Bridge', 'Become Immense', 'Tangle', 'Consuming Vapors', 'Crumbling Vestige', 'Temple of Triumph', 'Lightning Spear', 'Odds // Ends', 'Farhaven Elf', 'Valakut Exploration', 'Eternal Scourge', 'Herald of the Pantheon', 'Wizard''s Retort', 'Eidolon of Blossoms', 'Turnabout', 'Wall of Omens', 'Deep Analysis', 'Sculpting Steel', 'Defiant Strike', 'Grove of the Guardian', 'Gruul Guildgate', 'Leonin Relic-Warder', 'Grolnok, the Omnivore', 'Aetherspouts', 'Rally the Peasants', 'Disciple of Bolas', 'Lay Down Arms', 'Vraska''s Contempt', 'Banishing Slash', 'Heliod''s Intervention', 'Abundant Growth', 'Stubborn Denial', 'Malicious Malfunction', 'Sulfur Falls', 'Explore', 'Temple of Mystery', 'Necrogen Spellbomb', 'World Shaper', 'Carven Caryatid', 'Recruitment Officer', 'All That Glitters', 'Approach of the Second Sun', 'Flaying Tendrils', 'Tocasia''s Dig Site', 'Collected Conjuring', 'Grafted Butcher', 'Tempest Djinn', 'Spell Pierce', 'Demonic Dread', 'Avacyn''s Pilgrim', 'Memory Lapse', 'Apostle''s Blessing', 'Wild Cantor', 'Mindslaver', 'Fade from Memory', 'Devious Cover-Up', 'Chaotic Transformation', 'Llanowar Tribe', 'Frantic Inventory', 'Bastion of Remembrance', 'Temple of Malady', 'Bitter Ordeal', 'Seeker of the Way', 'Tresserhorn Sinks', 'Venser, Shaper Savant', 'Dusk // Dawn', 'Jungle Shrine', 'Idyllic Beachfront', 'Mystical Teachings', 'Pyroclasm', 'Lavaclaw Reaches', 'Contaminated Aquifer', 'Inscribed Tablet', 'Embodiment of Fury', 'Leonin Arbiter', 'Scour All Possibilities', 'Tyrant''s Choice', 'Unsubstantiate', 'Whispersilk Cloak', 'Festering Newt', 'Sin Prodder', 'Helm of the Host', 'Razortide Bridge', 'Discovery // Dispersal', 'Murderous Redcap', 'Knight of Glory', 'Fevered Visions', 'Vines of Vastwood', 'Invoke Calamity', 'Rule of Law', 'Rootbound Crag', 'Oracle of Tragedy', 'Vivid Marsh', 'Llanowar Augur', 'Crystal Grotto', 'Peek', 'Unholy Heat', 'Mistvault Bridge', 'Obscura Charm', 'Combat Thresher', 'Stormrider Spirit', 'Shalai, Voice of Plenty', 'Rakdos Charm', 'Bloodchief''s Thirst', 'Swooping Lookout', 'Crawling Barrens', 'Draugr Necromancer', 'Ulamog''s Crusher', 'Graven Cairns', 'Gather the Townsfolk', 'Shard Volley', 'Abundant Harvest', 'Stone Rain', 'Geomancer''s Gambit', 'Obliterate', 'Raffine''s Informant', 'Zuran Orb', 'Solitary Confinement', 'Yavimaya Iconoclast', 'Restore Balance', 'Snow-Covered Plains', 'Mulldrifter', 'Dying to Serve', 'Revitalize', 'Siege Rhino', 'Hanweir Garrison', 'Smallpox', 'Leonin Lightscribe', 'Springleaf Drum', 'Bitter Reunion', 'Cultivate', 'Nine Lives', 'Folio of Fancies', 'Executioner''s Capsule', 'Purify the Grave', 'Okina, Temple to the Grandfathers', 'Anticipate', 'Breya''s Apprentice', 'Energy Refractor', 'Thopter Mechanic', 'Archangel of Wrath', 'Soldier of the Pantheon', 'Into the Roil', 'Obscura Storefront', 'Terminate', 'Inkwell Leviathan', 'Deprive', 'Duneblast', 'Slaughter Pact', 'Mnemonic Sphere', 'Elemental Masterpiece', 'Ashenmoor Liege', 'Kami of the Crescent Moon', 'Alms of the Vein', 'Elite Inquisitor', 'Precursor Golem', 'Quicksilver Gargantuan', 'Repudiate // Replicate', 'Fracturing Gust', 'Caldera Hellion', 'Simian Sling', 'Destiny Spinner', 'Thornwood Falls', 'Caves of Koilos', 'Witching Well', 'Zur''s Weirding', 'Opulent Palace', 'Evolving Wilds', 'Tamiyo, Collector of Tales', 'Jor Kadeen, First Goldwarden', 'Timely Reinforcements', 'Invigorate', 'Throat Slitter', 'Artisan of Kozilek', 'Bloodline Keeper', 'Ral, Storm Conduit', 'Doom Blade', 'Crux of Fate', 'Doomskar', 'Chandra, Flamecaller', 'Esper Charm', 'Cartel Aristocrat', 'Wooded Bastion', 'Akiri, Fearless Voyager', 'Vadrik, Astral Archmage', 'Felidar Cub', 'Kunoros, Hound of Athreos', 'Miasmic Mummy', 'Universal Automaton', 'Dead Weight', 'Bloodsoaked Champion', 'Argentum Armor', 'Elvish Clancaller', 'Dimir Guildgate', 'Cataclysmic Gearhulk', 'Mazemind Tome', 'Commune with Spirits', 'Stirring Wildwood', 'Fumigate', 'Sarkhan the Masterless', 'Terrarion', 'Archon of Sun''s Grace', 'Valiant Changeling', 'Heap Doll', 'Evangel of Synthesis', 'Ghostfire Blade', 'Hissing Quagmire', 'Auriok Sunchaser', 'Evacuation', 'Mistblade Shinobi', 'Repeal', 'Fleecemane Lion', 'Bloodchief Ascension', 'Scatter Ray', 'Halimar Excavator', 'Goblin Chieftain', 'Nimble Obstructionist', 'Gadrak, the Crown-Scourge', 'Temple of Enlightenment', 'Fight as One', 'Sol Talisman', 'Dakkon, Shadow Slayer', 'Rootwater Depths', 'Mortuary Mire', 'Grand Abolisher', 'Divinity of Pride', 'Mistveil Plains', 'Silent Gravestone', 'Nekrataal', 'Epic Experiment', 'Harmonize', 'Voidslime', 'Perilous Myr', 'Psychic Possession', 'Obzedat, Ghost Council', 'Volt Charge', 'Bident of Thassa', 'Kazandu Blademaster', 'Port Town', 'Temple of Abandon', 'Vampire Nighthawk', 'Cut Down', 'Trace of Abundance', 'Putrefy', 'Bogbrew Witch', 'Summary Dismissal', 'Altered Ego', 'Silundi Vision', 'Thassa''s Intervention', 'Ranger of Eos', 'Tarfire', 'Karn''s Bastion', 'Psychatog', 'Sprite Dragon', 'Cremate', 'Honor of the Pure', 'Kumano Faces Kakkazan', 'Izzet Guildgate', 'Bolas''s Citadel', 'Jace, Architect of Thought', 'Wolfbriar Elemental', 'Din of the Fireherd', 'Tocatli Honor Guard', 'Change the Equation', 'Akroan Crusader', 'Big Score', 'Marble Diamond', 'Gift of Estates', 'Racers'' Ring', 'Scab-Clan Berserker', 'Curiosity', 'Venerated Loxodon', 'Ezuri, Renegade Leader', 'Oracle of Mul Daya', 'Angel of Condemnation', 'Goblin Matron', 'Gideon''s Lawkeeper', 'Gitaxian Probe', 'Ertai''s Scorn', 'Distorted Curiosity', 'Forbid', 'Forsake the Worldly', 'Ground Seal', 'Grim Haruspex', 'Disrupting Shoal', 'Unlucky Witness', 'Dread Return', 'Etherium Sculptor', 'Riveteers Overlook', 'Electrolyze', 'Woe Strider', 'Vedalken Heretic', 'Silversmote Ghoul', 'Second Sunrise', 'Knight of the White Orchid', 'Mistvein Borderpost', 'Thaumatic Compass', 'Skirk Prospector', 'Mirran Crusader', 'Late to Dinner', 'Firewild Borderpost', 'Skyclave Shade', 'Rites of Spring', 'Surge of Salvation', 'Angel of Serenity', 'Exhaustion', 'Augur of Bolas', 'Chandra, Fire Artisan', 'Reckless Rage', 'Colossal Skyturtle', 'Sea Gate Oracle', 'Artistic Refusal', 'Soltari Priest', 'Ghitu Lavarunner', 'Ichorclaw Myr', 'Sigrid, God-Favored', 'Crack the Earth', 'Frontier Bivouac', 'Archpriest of Shadows', 'Lathliss, Dragon Queen', 'Hada Freeblade', 'Destroy Evil', 'Duress', 'Tanglepool Bridge', 'Keruga, the Macrosage', 'Raven''s Crime', 'Lingering Souls', 'Urban Evolution', 'Abiding Grace', 'Recurring Nightmare', 'Birds of Paradise', 'Haunted Dead', 'Gideon Jura', 'Darksteel Colossus', 'Brokers Hideout', 'Hesitation', 'Koth, Fire of Resistance', 'Archangel Avacyn', 'Open the Gates', 'Jokulhaups', 'Benevolent Bodyguard', 'Bontu''s Last Reckoning', 'Gutterbones', 'Fae of Wishes', 'Nissa, Worldwaker', 'Spikefield Hazard', 'Joint Exploration', 'Declaration in Stone', 'Xenagos, the Reveler', 'Fearless Fledgling', 'Skyshroud Elf', 'Leather Armor', 'Timeless Witness', 'Sarkhan, the Dragonspeaker', 'Blade Splicer', 'Gaea''s Will', 'Wildfield Borderpost', 'Giant Killer', 'Venser, Corpse Puppet', 'Erebos, Bleak-Hearted', 'Kor Firewalker', 'Kappa Tech-Wrecker', 'Seal of Fire', 'Earthquake', 'Pieces of the Puzzle', 'Glint-Sleeve Siphoner', 'Orim''s Chant', 'Dawn of Hope', 'Slagwoods Bridge', 'Voidwing Hybrid', 'Smokestack', 'Tilling Treefolk', 'Goblin Anarchomancer', 'Progenitor Exarch', 'Slogurk, the Overslime', 'Thawing Glaciers', 'Sheoldred''s Edict', 'Bedlam Reveler', 'Self-Assembler', 'Phyrexian Dreadnought', 'Sleight of Hand', 'Reckless Charge', 'Grave Titan', 'Canopy Vista', 'Tainted Indulgence', 'Check for Traps', 'Fetid Pools', 'Rust Goliath', 'Sheltered Thicket', 'Norn''s Inquisitor', 'Sea-Dasher Octopus', 'Karumonix, the Rat King', 'Thopter Spy Network', 'Dragon''s Hoard', 'Anguished Unmaking', 'Runeflare Trap', 'Kemba, Kha Regent', 'Sweltering Suns', 'Isolated Chapel', 'Champion of Wits', 'Ancient Amphitheater', 'Spectral Shift', 'Orzhov Guildgate', 'Nezahal, Primal Tide', 'Ghostly Flicker', 'Erebos''s Intervention', 'Talisman of Unity', 'Council''s Judgment', 'Needle Spires', 'Slagstorm', 'Silumgar, the Drifting Death', 'River of Tears', 'Quest for the Holy Relic', 'Ethersworn Sphinx', 'Wrench Mind', 'Stinkweed Imp', 'Platinum Angel', 'Scuttling Doom Engine', 'Agonizing Remorse', 'Hieroglyphic Illumination', 'Rise // Fall', 'Genesis Ultimatum', 'Aether Spellbomb', 'Mesa Enchantress', 'Mothdust Changeling', 'Marit Lage''s Slumber', 'Green Sun''s Twilight', 'Chief Engineer', 'Shizo, Death''s Storehouse', 'Maestros Charm', 'Dreams of Steel and Oil', 'Inscription of Ruin', 'Sandsteppe Citadel', 'Azorius Charm', 'Incinerate', 'Glimpse of Tomorrow', 'Master of Etherium', 'Vraan, Executioner Thane', 'Nissa, Steward of Elements', 'Anoint with Affliction', 'Vryn Wingmare', 'Prosperous Thief', 'Call of the Death-Dweller', 'Magister Sphinx', 'Mikokoro, Center of the Sea', 'Priest of the Haunted Edge', 'Angel of Despair', 'Secluded Steppe', 'Fangren Marauder', 'Goblin Bombardment', 'Timeless Dragon', 'Hypergenesis', 'Steel Leaf Champion', 'Judge''s Familiar', 'Dragonskull Summit', 'Eldrazi Displacer', 'Negate', 'Empyrial Plate', 'Sudden Edict', 'Hyena Umbra', 'Silver-Fur Master', 'Empty the Warrens', 'Vraska''s Fall', 'Magister of Worth', 'Saffi Eriksdotter', 'Cabal Therapist', 'Ulcerate', 'Day of Judgment', 'Dryad Militant', 'Herd Baloth', 'Nomad Outpost', 'Ancient Stirrings', 'Ulvenwald Hydra', 'Warstorm Surge', 'Combat Research', 'Out of Time', 'Disenchant', 'Geothermal Bog', 'Solemn Simulacrum', 'Yosei, the Morning Star', 'Commit // Memory', 'Obstinate Baloth', 'Ancestral Blade', 'Mystic Monastery', 'Settle the Wreckage', 'Dream Trawler', 'Fire Prophecy', 'Altar of the Goyf', 'Westvale Abbey', 'Haunted Mire', 'Gideon''s Intervention', 'Altar of the Brood', 'Moon-Circuit Hacker', 'Reveillark', 'Founding the Third Path', 'Sphere of Safety', 'Elvish Visionary', 'Delay', 'Thundermaw Hellkite', 'Guile', 'Angel of Grace', 'Emmara, Soul of the Accord', 'Scrapheap Scrounger', 'Vapor Snag', 'Unctus, Grand Metatect', 'Drowner of Hope', 'Kaya, Ghost Assassin', 'Pillar of the Paruns', 'Demonic Bargain', 'Think Twice', 'Floriferous Vinewall', 'Kitchen Finks', 'Hall of Oracles', 'Scarab Feast', 'Curious Homunculus', 'Arcum''s Astrolabe', 'Nimble Larcenist', 'Commune with the Gods', 'Voldaren Pariah', 'Gird for Battle', 'The Antiquities War', 'Terramorphic Expanse', 'Smuggler''s Copter', 'Devil''s Play', 'Sinister Concoction', 'Lose Focus', 'Rakdos Guildgate', 'Drainpipe Vermin', 'Dark Prophecy', 'Twinshot Sniper', 'Curse of Exhaustion', 'Simian Spirit Guide', 'Cauldron Familiar', 'Runed Halo', 'Eiganjo Castle', 'Glistener Elf', 'Elspeth Conquers Death', 'The Mending of Dominaria', 'Ponder', 'Shrapnel Blast', 'Archaeomancer', 'Spell Burst', 'Gloomshrieker', 'Oona''s Prowler', 'Abyssal Persecutor', 'Rites of Initiation', 'Dismal Backwater', 'Idyllic Tutor', 'Lotus Cobra', 'Ossification', 'Sins of the Past', 'Gift of Immortality', 'Blood on the Snow', 'Satyr Wayfinder', 'Hostage Taker', 'Fierce Empath', 'Rocco, Cabaretti Caterer', 'Gallia of the Endless Dance', 'Genesis Wave', 'Woodland Cemetery', 'Temple of Epiphany', 'Ambush Viper', 'Clifftop Retreat', 'Predatory Sliver', 'Unburial Rites', 'Shriekmaw', 'Doomed Traveler', 'Dovin''s Acuity', 'Chandra, Pyromaster', 'Faeburrow Elder', 'Shigeki, Jukai Visionary'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Monument to Perfection', 'Exclude', 'Demigod of Revenge', 'Kami of the Crescent Moon', 'Bloodsoaked Champion', 'Tarfire', 'Myth Realized', 'Terminus', 'Scrabbling Claws', 'Thoughts of Ruin', 'Hero''s Downfall', 'Vraska''s Fall', 'Rule of Law', 'Burst Lightning', 'Graven Lore', 'Deafening Clarion', 'Caves of Koilos', 'Energy Refractor', 'Dark Prophecy', 'Thornglint Bridge', 'Decree of Justice', 'Increasing Ambition', 'Runed Halo', 'Precinct Captain', 'Invasion of Amonkhet', 'Snow-Covered Plains', 'Liliana Vess', 'Knight of New Alara', 'Temple of Mystery', 'Sterling Grove', 'Curious Homunculus', 'Sylvan Messenger', 'Silumgar''s Scorn', 'Elvish Clancaller', 'Stoke the Flames', 'Spectral Procession', 'Eiganjo Castle', 'Kor Skyfisher', 'Tezzeret the Schemer', 'True Believer', 'Hesitation', 'Brain Freeze', 'Stormrider Spirit', 'Graveborn Muse', 'Chittering Rats', 'Luminarch Ascension', 'Exhaustion', 'Night of Souls'' Betrayal', 'Graaz, Unstoppable Juggernaut', 'Quicksilver Gargantuan', 'Terrarion', 'Wandering Fumarole', 'Skirk Prospector', 'Sandsteppe Citadel', 'Jace Beleren', 'Deep Forest Hermit', 'Simic Guildgate', 'Celestial Colonnade', 'Tocasia''s Dig Site', 'Drowned Rusalka', 'Seeker of the Way', 'Far // Away', 'Shizo, Death''s Storehouse', 'Orcish Lumberjack', 'Commune with the Gods', 'Glint-Sleeve Siphoner', 'Mikokoro, Center of the Sea', 'Archon of Sun''s Grace', 'Nether Traitor', 'Grave Titan', 'Ammit Eternal', 'Unlucky Witness', 'Faerie Vandal', 'Anticipate', 'Jor Kadeen, First Goldwarden', 'Evangel of Synthesis', 'Veinfire Borderpost', 'Faithless Salvaging', 'Dreams of Steel and Oil', 'Zhalfirin Shapecraft', 'Vault Skirge', 'Elvish Visionary', 'Brokers Hideout', 'Cathartic Reunion', 'Delay', 'Dusk // Dawn', 'Karn''s Bastion', 'Deep Analysis', 'Nimbus Maze', 'Eldrazi Displacer', 'Prophetic Prism', 'Soltari Priest', 'Chain Lightning', 'Elite Inquisitor', 'Hostage Taker', 'Murderous Cut', 'Silver-Fur Master', 'Moorland Haunt', 'Azorius Guildgate', 'Grove of the Guardian', 'Bloodthrone Vampire', 'Oona''s Grace', 'Bitter Reunion', 'Thassa''s Intervention', 'Vraska''s Contempt', 'Bontu''s Last Reckoning', 'Dying to Serve', 'Lagrella, the Magpie', 'Eternal Scourge', 'Festering Newt', 'Voidslime', 'Hideous End', 'Raze to the Ground', 'Tainted Indulgence', 'Prohibit', 'Izzet Guildgate', 'Oust', 'Patchwork Automaton', 'Venser, Shaper Savant', 'Vigor', 'Explore', 'Glimpse of Tomorrow', 'Ogre Slumlord', 'Invasion of Regatha', 'Silverblade Paladin', 'Haunted Fengraf', 'Call to the Grave', 'Dregscape Zombie', 'Mesmeric Fiend', 'Ethersworn Sphinx', 'Commence the Endgame', 'Nightscape Familiar', 'Rampant Growth', 'Venser, Corpse Puppet', 'Halana and Alena, Partners', 'Ral, Storm Conduit', 'Vines of Vastwood', 'River of Tears', 'Mausoleum Secrets', 'Esper Charm', 'Artisan of Kozilek', 'Circular Logic', 'Viashino Pyromancer', 'Squee, Goblin Nabob', 'Sigrid, God-Favored', 'Icehide Golem', 'Kazandu Blademaster', 'Ornithopter', 'Stubborn Denial', 'Scab-Clan Berserker', 'Metalwork Colossus', 'Combat Thresher', 'Saproling Migration', 'Nether Spirit', 'Dead // Gone', 'Grave Scrabbler', 'Into the Roil', 'Founding the Third Path', 'Doomed Traveler', 'Miasmic Mummy', 'Opulent Palace', 'Gather the Townsfolk', 'Baneful Omen', 'Disciple of Bolas', 'Herd Baloth', 'Rift Bolt', 'Tidehollow Sculler', 'Wildborn Preserver', 'Into the Story', 'Yorion, Sky Nomad', 'Primal Command', 'Wall of Omens', 'Ulcerate', 'Tresserhorn Sinks', 'Mystical Teachings', 'Treasure Cruise', 'Darksteel Citadel', 'Nezahal, Primal Tide', 'Hieroglyphic Illumination', 'Supreme Will', 'Devious Cover-Up', 'Chandra, Fire Artisan', 'Oracle of Tragedy', 'Lay Down Arms', 'Disallow', 'Dark-Dweller Oracle', 'Temple of Plenty', 'Champion of Wits', 'Ulamog''s Crusher', 'Maestros Charm', 'Honor of the Pure', 'Tezzeret, Artifice Master', 'Possibility Storm', 'Fallaji Archaeologist', 'Melira, the Living Cure', 'Secluded Steppe', 'Barter in Blood', 'Thrash // Threat', 'Zombie Infestation', 'Satyr Wayfinder', 'Stromkirk Noble', 'Case the Joint', 'Necrogen Spellbomb', 'Huatli, Radiant Champion', 'Mystic Monastery', 'Obzedat, Ghost Council', 'Rakdos''s Return', 'Reveillark', 'Mortuary Mire', 'Orzhov Charm', 'Mindslaver', 'Gilt-Leaf Archdruid', 'Garruk Wildspeaker', 'Radha, Heart of Keld', 'Judith, the Scourge Diva', 'Approach of the Second Sun', 'Wilt', 'Tangle', 'Timeless Witness', 'Gnat Miser', 'Battle of Frost and Fire', 'Pull from Tomorrow', 'Dark Ritual', 'Unburial Rites', 'Invasion of Kaladesh', 'Yavimaya Coast', 'Warstorm Surge', 'Lightning Strike', 'Executioner''s Capsule', 'Bituminous Blast', 'Arbalest Engineers', 'Ivy Lane Denizen', 'Rabbit Battery', 'Carnophage', 'Unctus, Grand Metatect', 'Kjeldoran Outpost', 'Game Trail', 'Inscription of Ruin', 'Condemn', 'Out of Time', 'Herd Migration', 'Circuit Mender', 'Delver of Secrets', 'Doomskar', 'Weapons Trainer', 'Archpriest of Shadows', 'Reckless Rage', 'Halimar Excavator', 'Repudiate // Replicate', 'Ajani, Adversary of Tyrants', 'Mina and Denn, Wildborn', 'Quicken', 'Porphyry Nodes', 'Armored Scrapgorger', 'Gruul Guildgate', 'Price of Progress', 'Dragonskull Summit', 'Gideon''s Lawkeeper', 'Phoenix Chick', 'Rootbound Crag', 'Froghemoth', 'Dread Return', 'Anoint with Affliction', 'Argentum Armor', 'Scatter Ray', 'Nekrataal', 'Volt Charge', 'Late to Dinner', 'Divinity of Pride', 'Silundi Vision', 'Territorial Kavu', 'Search for Tomorrow', 'Quest for the Holy Relic', 'Triumphant Adventurer', 'Stone Haven Outfitter', 'Sheoldred''s Edict', 'Brave the Elements', 'Raise the Alarm', 'Experimental Synthesizer', 'Steel Leaf Champion', 'Ashnod, Flesh Mechanist', 'Anguished Unmaking', 'Remorseful Cleric', 'Bloodchief Ascension', 'Pack Rat', 'Moon-Circuit Hacker', 'Ichorclaw Myr', 'Dismal Backwater', 'Forbid', 'Joint Exploration', 'All That Glitters', 'Distorted Curiosity', 'Elemental Masterpiece', 'Argentum Masticore', 'Check for Traps', 'Devil''s Play', 'Dryad Militant', 'Hissing Quagmire', 'Demonic Bargain', 'Day of Judgment', 'Swiftfoot Boots', 'Tendo Ice Bridge', 'Gloomshrieker', 'Verduran Enchantress', 'Progenitor Exarch', 'Tanglepool Bridge', 'Evacuation', 'Detention Sphere', 'Silversmote Ghoul', 'Toolcraft Exemplar', 'Ashen Rider', 'Tempest Djinn', 'Gift of Estates', 'Ramunap Excavator', 'Cloudpost', 'Gnawing Vermin', 'Reinforced Ronin', 'Pillage', 'Castigate', 'Boon-Bringer Valkyrie', 'Return to the Ranks', 'Agonizing Remorse', 'Crawling Chorus', 'Eldrazi Skyspawner', 'Zuran Orb', 'Elves of Deep Shadow', 'Temple of Malady', 'Caldera Hellion', 'Cabal Therapist', 'Gitaxian Probe', 'Zephyr Singer', 'Nevermore', 'Faeburrow Elder', 'Spell Pierce', 'Folio of Fancies', 'Drownyard Temple', 'Acidic Slime', 'Otherworldly Journey', 'Sarkhan, the Dragonspeaker', 'Nine Lives', 'Unmarked Grave', 'Bilious Skulldweller', 'Tomebound Lich', 'Soldier of the Pantheon', 'Lavinia of the Tenth', 'Concealing Curtains', 'Putrefy', 'Discovery // Dispersal', 'Witching Well', 'Woodfall Primus', 'Groundswell', 'Obscura Charm', 'Sculpting Steel', 'Cathedral of War', 'Bubbling Muck', 'Venerated Loxodon', 'Kabira Takedown', 'Hooting Mandrills', 'Rally the Ancestors', 'Ghost Quarter', 'Might of Old Krosa', 'Forgotten Cave', 'Vexing Shusher', 'Ancestral Blade', 'Cremate', 'Melira, Sylvok Outcast', 'No Escape', 'Leonin Warleader', 'Endbringer', 'Assault // Battery', 'Aether Spellbomb', 'Akroan Crusader', 'Fire Prophecy', 'Wonder', 'Oath of Teferi', 'Smallpox', 'Memoricide', 'Boros Elite', 'Kunoros, Hound of Athreos', 'Goblin Anarchomancer', 'Terastodon', 'Weathered Wayfarer', 'Seedcradle Witch', 'Frenetic Sliver', 'Worship', 'Gadrak, the Crown-Scourge', 'Night Market Lookout', 'Brineborn Cutthroat', 'Glamerdye', 'Mistcutter Hydra', 'Kher Keep', 'Goblin Dark-Dwellers', 'Nested Shambler', 'Scarab Feast', 'Dross Skullbomb', 'Talisman of Conviction', 'Tymaret, Chosen from Death', 'Steel Overseer', 'Mazemind Tome', 'Vedalken Heretic', 'Obliterate', 'Pieces of the Puzzle', 'Chaotic Transformation', 'Goblin Bombardment', 'Corpse Cur', 'Empyrial Armor', 'Vraan, Executioner Thane', 'Engulf the Shore', 'Empyrial Plate', 'Skyclave Shade', 'Phyrexian Censor', 'Norn''s Inquisitor', 'Gallia of the Endless Dance', 'Bloodvial Purveyor', 'Sunstrike Legionnaire', 'Braids, Cabal Minion', 'Kor Firewalker', 'Dawn of Hope', 'High-Speed Hoverbike', 'Tangled Islet', 'Abundant Harvest', 'Glimmerpost', 'Doom Blade', 'Sea Gate Oracle', 'Jungle Hollow', 'Big Game Hunter', 'Kaya, Ghost Assassin', 'Magister of Worth', 'Master of Etherium', 'Jwari Shapeshifter', 'Angel of Despair', 'Turnabout', 'Akiri, Fearless Voyager', 'Brainstone', 'Ruin Crab', 'Divest', 'Briarbridge Tracker', 'Surge of Salvation', 'Lingering Souls', 'Cartel Aristocrat', 'See Beyond', 'Surrak, the Hunt Caller', 'Wing Commando', 'Vivid Marsh', 'Anger of the Gods', 'Sulfur Falls', 'Mishra''s Factory', 'Anafenza, Kin-Tree Spirit', 'Geothermal Bog', 'Vampire Nighthawk', 'Aetherspouts', 'Quiet Speculation', 'Prologue to Phyresis', 'Meeting of Minds', 'Ardent Recruit', 'Breya''s Apprentice', 'Dispatch', 'Orzhov Guildgate', 'Teneb, the Harvester', 'Skyshroud Elf', 'Kessig Wolf Run', 'Vivid Crag', 'Hope of Ghirapur', 'Fetid Heath', 'Network Disruptor', 'Spectral Shift', 'Ossification', 'Jukai Naturalist', 'Genesis Ultimatum', 'Tocatli Honor Guard', 'Nature''s Lore', 'Djinn of the Fountain', 'The Antiquities War', 'Wanderwine Hub', 'Shalai, Voice of Plenty', 'Stupor', 'Sinew Sliver', 'Heliod''s Intervention', 'Mwonvuli Acid-Moss', 'Gift of Immortality', 'Felidar Cub', 'Fetid Pools', 'Repeal', 'Chamber Sentry', 'Embodiment of Fury', 'Torens, Fist of the Angels', 'Fatestitcher', 'Carven Caryatid', 'Seal of Cleansing', 'Fecundity', 'Heap Doll', 'Keruga, the Macrosage', 'Oni-Cult Anvil', 'Pharika''s Libation', 'Lochmere Serpent', 'Viscera Seer', 'Augur of Bolas', 'Terminate', 'Izzet Charm', 'Obstinate Baloth', 'Sweltering Suns', 'Polukranos, World Eater', 'Syphon Life', 'Stinkdrinker Bandit', 'Kalastria Healer', 'Purify the Grave', 'Bogardan Hellkite', 'Expedition Envoy', 'Control Magic', 'Experimental Augury', 'Figure of Destiny', 'Union of the Third Path', 'Tectonic Edge', 'Hornet Queen', 'Shardless Agent', 'Hada Freeblade', 'Battle of Wits', 'Blightning', 'Blightbelly Rat', 'Gird for Battle', 'Rise // Fall', 'Kemba, Kha Enduring', 'Acquisitions Expert', 'Invasion of Azgol', 'Maze''s End', 'Stinkweed Imp', 'Howling Mine', 'Overgrowth', 'Elas il-Kor, Sadistic Pilgrim', 'Black Sun''s Zenith', 'Sphinx''s Herald', 'Rust Goliath', 'Skymarcher Aspirant', 'Molten Tributary', 'Crux of Fate', 'Kogla, the Titan Ape', 'Valiant Changeling', 'Angel of Serenity', 'Cabaretti Courtyard', 'Thawing Glaciers', 'Mindcrank', 'Marit Lage''s Slumber', 'Tamiyo, Collector of Tales', 'Rakdos Cackler', 'Geyadrone Dihada', 'Dauntless Bodyguard', 'Frost Titan', 'Voyaging Satyr', 'Tolarian Terror', 'Inevitable Betrayal', 'Springleaf Drum', 'Altered Ego', 'Rune Snag', 'Ancient Stirrings', 'Vessel of Nascency', 'Ertai''s Scorn', 'Spellweaver Helix', 'Wildfire', 'Revitalize', 'Goblin Matron', 'Empty the Warrens', 'Marwyn, the Nurturer', 'Jungle Shrine', 'Silent Gravestone', 'Sudden Edict', 'Fangren Marauder', 'Enchantress''s Presence', 'Curse of Exhaustion', 'Pyroclasm', 'Archangel Avacyn', 'Teshar, Ancestor''s Apostle', 'Scattered Groves', 'Cryptic Caves', 'Adanto Vanguard', 'Barbarian Ring', 'Thornwood Falls', 'Thaumatic Compass', 'General''s Enforcer', 'Vampire Hexmage', 'Third Path Iconoclast', 'Hanweir Garrison', 'Mana Leak', 'Malakir Rebirth', 'Vapor Snag', 'Laboratory Maniac', 'Spirited Companion', 'Rustvale Bridge', 'Solemnity', 'Abzan Charm', 'Goldmire Bridge', 'Diffusion Sliver', 'Protect the Negotiators', 'Electrolyze', 'Shambling Vent', 'Touch the Spirit Realm', 'Call of the Death-Dweller', 'Sire of Insanity', 'Fracturing Gust', 'Fevered Visions', 'Fruit of Tizerus', 'Arch of Orazca', 'Crawling Barrens', 'Ghostly Flicker', 'Slagstorm', 'Lost Legacy', 'Idyllic Tutor', 'Invigorate', 'Bloodchief''s Thirst', 'Dreadhorde Butcher', 'Tidespout Tyrant', 'Canopy Vista', 'Epic Experiment', 'Seething Song', 'Arcbound Ravager', 'Waking the Trolls', 'Basilisk Collar', 'Serra Ascendant', 'Emmara, Soul of the Accord', 'Shred Memory', 'Arcum''s Astrolabe', 'Crystal Grotto', 'Sorin, Vengeful Bloodlord', 'Thraben Inspector', 'Restoration Angel', 'Ghostly Pilferer', 'Fyndhorn Elves', 'Psychatog', 'Grafted Butcher', 'Tribal Flames', 'Malicious Malfunction', 'Oracle of Mul Daya', 'Consul''s Lieutenant', 'Maelstrom Pulse', 'Incinerate', 'Destiny Spinner', 'Silverbluff Bridge', 'Demolition Field', 'Forked Bolt', 'Lantern-Lit Graveyard', 'Grapple with the Past', 'Wood Elves', 'Shivan Reef', 'Timeless Dragon', 'Battlefield Forge', 'Burning of Xinye', 'Duress', 'Riveteers Charm', 'Drowned Catacomb', 'Xenagos, the Reveler', 'Ancient Amphitheater', 'Frost Marsh', 'Peek', 'Hard Evidence', 'Odds // Ends', 'Nimble Obstructionist', 'Become Immense', 'Open the Armory', 'Vampire Lacerator', 'Dimir Aqueduct', 'Loxodon Smiter', 'Wrenn''s Resolve', 'Erebos''s Intervention', 'Drake Haven', 'Flooded Grove', 'Buried Ruin', 'Xerex Strobe-Knight', 'Smokestack', 'Pore Over the Pages', 'Dragon''s Hoard', 'Mountain Valley', 'Goblin Electromancer', 'Go for the Throat', 'Master of Death', 'Mistveil Plains', 'Graven Cairns', 'Falkenrath Pit Fighter', 'Council''s Judgment', 'Rakdos Charm', 'Dread Wanderer', 'Tendrils of Agony', 'Savage Lands', 'Moment of Truth', 'Think Twice', 'Frontier Bivouac', 'Destroy Evil', 'Elspeth Conquers Death', 'Careful Cultivation', 'Scour All Possibilities', 'Kaito, Dancing Shadow', 'Nullpriest of Oblivion', 'Firewild Borderpost', 'Heartless Act', 'Ravenous Squirrel', 'Pashalik Mons', 'Combat Research', 'Flametongue Kavu', 'Altar of the Goyf', 'Steppe Lynx', 'Shard Volley', 'Shape Anew', 'Kiora, the Crashing Wave', 'Sunblade Samurai', 'World Shaper', 'Inscribed Tablet', 'Raven''s Crime', 'Pain Seer', 'Blight Mamba', 'Eerie Ultimatum', 'Galerider Sliver', 'Fae of Wishes', 'Chandra, Pyromaster', 'Rites of Initiation', 'Time of Need', 'Open the Gates', 'Seismic Assault', 'Temple of Epiphany', 'Dead Weight', 'Izzet Boilerworks', 'Ranger of Eos', 'Nezumi Graverobber', 'Rally the Peasants', 'Knight of Glory', 'Venser, the Sojourner', 'Green Sun''s Twilight', 'Obscura Storefront', 'Cauldron Familiar', 'Judge''s Familiar', 'Consuming Vapors', 'Feed the Swarm', 'Genesis Wave', 'The Underworld Cookbook', 'Flame Rift', 'Farhaven Elf', 'Faerie Miscreant', 'Westvale Abbey', 'Memory Lapse', 'Ghostfire Blade', 'Llanowar Augur', 'Plated Geopede', 'Yasharn, Implacable Earth', 'Anafenza, the Foremost', 'Abiding Grace', 'Counterflux', 'Ancient Ziggurat', 'Rootwater Depths', 'Dokuchi Silencer', 'Ajani, Mentor of Heroes', 'Kemba, Kha Regent', 'Forging the Anchor', 'Etherium Sculptor', 'Port Town', 'Expedite', 'Desperate Ritual', 'Sea-Dasher Octopus', 'Oath of Kaya', 'Eidolon of Blossoms', 'Upheaval', 'Basking Rootwalla', 'Priest of the Haunted Edge', 'Defiant Strike', 'Curiosity', 'Hour of Promise', 'Simian Sling', 'Seal of Fire', 'The Flame of Keld', 'Talisman of Unity', 'Arcane Sanctum', 'Commune with Nature', 'Pyrite Spellbomb', 'Second Sunrise', 'Wizard''s Retort', 'Wooded Bastion', 'Siege Rhino', 'Fabricate', 'Misery Charm', 'Cliffside Lookout', 'Temple of Abandon', 'Sunken Hollow', 'Apostle''s Blessing', 'Hypergenesis', 'Drown in Ichor', 'Satyr Hoplite', 'Canyon Slough', 'Rocco, Cabaretti Caterer', 'Okina, Temple to the Grandfathers', 'Sheltered Thicket', 'Vivid Grove', 'Grand Arbiter Augustin IV', 'Artistic Refusal', 'Dream Trawler', 'Reflector Mage', 'Blade Splicer', 'Grolnok, the Omnivore', 'Cabal Initiate', 'Invoke Calamity', 'Mothdust Changeling', 'Reckoner''s Bargain', 'King Darien XLVIII', 'Lotus Cobra', 'Alms of the Vein', 'Lead the Stampede', 'Knight of the Reliquary', 'Haunted Mire', 'Mastermind''s Acquisition', 'The Celestus', 'Soul Warden', 'Declaration in Stone', 'Ayli, Eternal Pilgrim', 'Raging Ravine', 'Ransack the Lab', 'Leonin Lightscribe', 'Scrapheap Scrounger', 'Ponder', 'Leonin Relic-Warder', 'Needle Spires', 'Vryn Wingmare', 'Halo Forager', 'Aetherling', 'Nephalia Drownyard', 'Sculpted Perfection', 'Ezuri, Renegade Leader', 'Locket of Yesterdays', 'Slogurk, the Overslime', 'Search for Azcanta', 'Rain of Tears', 'Stern Dismissal', 'Succumb to Temptation', 'Pyretic Ritual', 'Bedlam Reveler', 'Leonin Arbiter', 'Archaeomancer', 'Cut Down', 'Corrupted Conviction', 'Harmonize', 'Chief of the Foundry', 'White Sun''s Zenith', 'Nissa, Steward of Elements', 'Lightning Spear', 'Wrench Mind', 'Sylvan Advocate', 'Ignite Memories', 'Ally Encampment', 'Elixir of Immortality', 'Nimble Trapfinder', 'Cleansing Wildfire', 'Sleight of Hand', 'Summer Bloom', 'Ruric Thar, the Unbowed', 'Gather the Pack', 'Thopter Spy Network', 'Coiling Oracle', 'Throat Slitter', 'Kappa Tech-Wrecker', 'Grand Abolisher', 'Disenchant', 'Voidwing Hybrid', 'Angel of Condemnation', 'Gruul Turf', 'Marble Diamond', 'Geomancer''s Gambit', 'Smoldering Marsh', 'Presence of Gond', 'Snow-Covered Swamp', 'Assemble the Legion', 'Ephara, God of the Polis', 'Mind''s Desire', 'Valakut Exploration', 'Shigeki, Jukai Visionary', 'Chandra, Flamecaller', 'Ral, Izzet Viceroy', 'Abundant Growth', 'Vampire Neonate', 'Myr Battlesphere', 'Varolz, the Scar-Striped', 'Goblin Instigator', 'Pariah', 'Demonic Dread', 'Wildfield Borderpost', 'Gaea''s Will', 'Victim of Night', 'Scrying Sheets', 'Mirror Entity', 'Bloodline Keeper', 'Gruul Spellbreaker', 'Winds of Abandon', 'Tooth and Nail', 'Pardic Miner', 'Makeshift Mannequin', 'Slaughter Pact', 'Rakdos Guildgate', 'Twinshot Sniper', 'Narcomoeba', 'Sigil of the Empty Throne', 'Spatial Contortion', 'Resolute Reinforcements', 'Akoum Hellhound', 'Tuktuk the Explorer', 'Change the Equation', 'Giant Killer', 'Moderation', 'Wasteland Strangler', 'Tribute to Hunger', 'Fight as One', 'Temple of Silence', 'Aetherblade Agent', 'Ghitu Lavarunner', 'Clifftop Retreat', 'Koth, Fire of Resistance', 'Vampiric Rites', 'Vraska, Relic Seeker', 'Choked Estuary', 'Stirring Wildwood', 'Vault of the Archangel', 'Kitchen Finks', 'Inkwell Leviathan', 'Tear Asunder', 'Sphere of Safety', 'Fact or Fiction', 'Kruphix''s Insight', 'Commit // Memory', 'The Seedcore', 'Haunted Dead', 'Bubbling Cauldron', 'Precursor Golem', 'Self-Assembler', 'Nimble Larcenist', 'Lodestone Golem', 'Azorius Charm', 'Magister Sphinx', 'Trace of Abundance', 'Brave the Sands', 'Flaying Tendrils', 'Sprite Dragon', 'Dreadhorde Invasion', 'Mirran Crusader', 'Squadron Hawk', 'Wild Cantor', 'Disrupting Shoal', 'Thundermaw Hellkite', 'Llanowar Tribe', 'Golgari Rot Farm', 'Yawgmoth''s Bargain', 'Lavaclaw Reaches', 'Ayara, First of Locthwain', 'Farseek', 'Swooping Lookout', 'Botanical Plaza', 'Kefnet the Mindful', 'Mulch', 'Recruitment Officer', 'Cataclysmic Gearhulk', 'Blue Sun''s Zenith', 'Simian Spirit Guide', 'Fiery Justice', 'Tribute to Horobi', 'Lose Focus', 'Barbed Sextant', 'Golgari Guildgate', 'Convolute', 'Wolfbriar Elemental', 'Crumbling Vestige', 'Stasis Snare', 'Perilous Myr', 'Gutterbones', 'Snow-Covered Mountain', 'Aegis of the Gods', 'Riveteers Overlook', 'Altar of the Brood', 'Duplicant', 'Shimmer Dragon', 'Predatory Sliver', 'Thopter Mechanic', 'Terramorphic Expanse', 'Herald of the Pantheon', 'Goldmeadow Harrier', 'Restore Balance', 'Vindicate', 'Annex Sentry', 'Lazotep Chancellor', 'Radiant Grove', 'Forbidden Alchemy', 'Murmuring Bosk', 'Fade from Memory', 'Knowledge Pool', 'Karumonix, the Rat King', 'Dakkon, Shadow Slayer', 'Smother', 'Rites of Spring', 'Idyllic Beachfront', 'Phalanx Leader', 'Galvanic Relay', 'Genesis Hydra', 'Floriferous Vinewall', 'Jokulhaups', 'Razortide Bridge', 'Mesa Enchantress', 'Boros Guildgate', 'Bone Shards', 'Drowner of Hope', 'Blood on the Snow', 'Voltage Surge', 'Phyrexian Revoker', 'Duneblast', 'Elvish Archdruid', 'Frantic Inventory', 'Sandwurm Convergence', 'Ground Seal', 'Summary Dismissal', 'Fumigate', 'Runeflare Trap', 'Bastion of Remembrance', 'Spell Burst', 'General Ferrous Rokiric', 'Healer''s Hawk', 'Hypnotic Specter', 'Unbreakable Formation', 'Sign in Blood', 'Reckless Charge', 'Kozilek''s Predator', 'Elderscale Wurm', 'Evolving Wilds', 'Temple of Enlightenment', 'War Falcon', 'Mistblade Shinobi', 'Mindsplice Apparatus', 'Wayward Guide-Beast', 'The Mending of Dominaria', 'Abyssal Persecutor', 'Gideon Jura', 'Benevolent Bodyguard', 'Sultai Charm', 'Yisan, the Wanderer Bard', 'Phantasmal Image', 'Sarkhan the Masterless', 'Blazing Rootwalla', 'Utter End', 'Platinum Angel', 'Sylvan Scrying', 'Tilling Treefolk', 'Martyr of Sands', 'Angel of Grace', 'Oona, Queen of the Fae', 'Sin Prodder', 'Collected Conjuring', 'Postmortem Lunge', 'Scrapwork Mutt', 'Secluded Courtyard', 'Voldaren Pariah', 'Gravelgill Duo', 'Merciless Eviction', 'Heliod''s Pilgrim', 'Mistvein Borderpost', 'Phyrexian Unlife', 'Glistener Elf', 'Stone Rain', 'Psychic Possession', 'Greater Gargadon', 'Darksteel Colossus', 'Malcator, Purity Overseer', 'Pharika''s Cure', 'Yavimaya Iconoclast', 'Boreal Shelf', 'Kumano Faces Kakkazan', 'Jace, Architect of Thought', 'Goblin Chieftain', 'Lurrus of the Dream-Den', 'Tranquil Thicket', 'Bogbrew Witch', 'Throne of the God-Pharaoh', 'Staff of Domination', 'Mulldrifter', 'Shriekmaw', 'Blood Artist', 'Saffi Eriksdotter', 'Ovika, Enigma Goliath', 'Rotting Rats', 'Diabolic Tutor', 'Oona''s Prowler', 'Zur''s Weirding', 'Kami of False Hope', 'Dimensional Infiltrator', 'Invisible Stalker', 'Dissipate', 'Kiora Bests the Sea God', 'Gateway Plaza', 'Grim Haruspex', 'Cloudshredder Sliver', 'Boomerang', 'Hall of Oracles', 'Stir the Grave', 'Felidar Retreat', 'Hyena Umbra', 'Yahenni''s Expertise', 'Orim''s Chant', 'Dark Petition', 'Solitary Confinement', 'Bolas''s Citadel', 'Rise and Shine', 'Crack the Earth', 'Mirage Mirror', 'Vadrik, Astral Archmage', 'Ulvenwald Hydra', 'Gavony Township', 'Yosei, the Morning Star', 'Settle the Wreckage', 'Spikefield Hazard', 'Consume the Meek', 'Talisman of Curiosity', 'Corrupted Crossroads', 'Mogg War Marshal', 'Dimir Guildgate', 'Sunlit Marsh', 'Urban Evolution', 'Ishkanah, Grafwidow', 'Putrid Imp', 'Mishra''s Research Desk', 'Dead of Winter', 'Bloodbraid Elf', 'Stoic Rebuttal', 'Isolated Chapel', 'Timely Reinforcements', 'Commune with Spirits', 'Krosan Grip', 'Seal of Removal', 'Thrill of Possibility', 'Sins of the Past', 'Soul Snare', 'Shrapnel Blast', 'Kitchen Imp', 'Slagwoods Bridge', 'Blanchwood Prowler', 'Birds of Paradise', 'Fearless Fledgling', 'Ensoul Artifact', 'Fertile Ground', 'Mistvault Bridge', 'Din of the Fireherd', 'Godo, Bandit Warlord', 'Tezzeret''s Gambit', 'Languish', 'Knight of the White Orchid', 'Tyrant''s Choice', 'Chief Engineer', 'Unsubstantiate', 'Cabal Ritual', 'Shimmerdrift Vale', 'Drainpipe Vermin', 'Gigadrowse', 'Ashenmoor Liege', 'Pillar of the Paruns', 'Llanowar Mentor', 'Llanowar Elves', 'Wrath of God', 'Universal Automaton', 'Selesnya Guildgate', 'Cultivate', 'Leather Armor', 'Glorybringer', 'Nomad Outpost', 'Strike It Rich', 'Oblivion Ring', 'Changeling Outcast', 'Bident of Thassa', 'Sylvan Caryatid', 'Nissa, Worldwaker', 'Nameless Inversion', 'Racers'' Ring', 'Ebony Owl Netsuke', 'Archangel of Wrath', 'The Scorpion God', 'Elvish Mystic', 'Dakmor Salvage', 'Recurring Nightmare', 'Contaminated Aquifer', 'Arlinn Kord', 'Silumgar, the Drifting Death', 'Draugr Necromancer', 'Rix Maadi Reveler', 'Frantic Search', 'Avacyn''s Pilgrim', 'Auriok Sunchaser', 'Death Cloud', 'Greater Tanuki', 'Sol Talisman', 'Gideon''s Intervention', 'Bitter Ordeal', 'Mouth of Ronom', 'Kambal, Consul of Allocation', 'Woe Strider', 'Temple of Triumph', 'Serrated Scorpion', 'Colossal Skyturtle', 'Scuttling Doom Engine', 'Myr Superion', 'Sylvan Library', 'Prosperous Thief', 'Arguel''s Blood Fast', 'Marauding Blight-Priest', 'Servo Exhibition', 'Fiery Temper', 'Banishing Slash', 'Drossforge Bridge', 'Midnight Guard', 'Mnemonic Sphere', 'Sunpetal Grove', 'Raffine''s Informant', 'Of One Mind', 'Grand Architect', 'Impulse', 'Frostwalk Bastion', 'Ivory Tower', 'Bring the Ending', 'Earthquake', 'Orzhov Basilica', 'Murderous Redcap', 'Putrid Goblin', 'Deprive', 'Phyrexian Dreadnought', 'Ambush Viper', 'Grenzo, Dungeon Warden', 'Elvish Rejuvenator', 'Big Score', 'Temple of Deceit', 'Thragtusk', 'Sacred Peaks', 'Angrath, the Flame-Chained', 'Invasion of New Capenna', 'Smuggler''s Copter', 'Midnight Reaper', 'Helm of the Host', 'Blessed Alliance', 'Faith''s Reward', 'Invasion of Ergamon', 'Whispersilk Cloak', 'Guile', 'Gleeful Demolition', 'Fleecemane Lion', 'Sever the Bloodline', 'Kitesail Freebooter', 'Consult the Necrosages', 'Resurgent Belief', 'Fierce Empath', 'Lathliss, Dragon Queen', 'Erebos, Bleak-Hearted', 'Hinterland Harbor', 'Sin Collector', 'Lizard Blades', 'Notorious Throng', 'Glacial Fortress', 'Rally the Ranks', 'Dovin''s Acuity', 'Bump in the Night', 'Solemn Simulacrum', 'One with the Machine', 'Favored Hoplite', 'Forsake the Worldly', 'Dire-Strain Rampage', 'Invasion of Zendikar', 'Unholy Heat', 'Madcap Experiment', 'Arbor Elf', 'Jwari Disruption', 'Morsel Theft', 'Whir of Invention', 'Ethereal Armor', 'Titania, Protector of Argoth', 'Negate', 'Fireblade Charger', 'Woodland Cemetery', 'Sinister Concoction', 'Teferi, Mage of Zhalfir', 'Rishkar, Peema Renegade', 'Fieldmist Borderpost'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Oath of Teferi', 'Isolated Chapel', 'Angel of Despair', 'Avacyn''s Pilgrim', 'All That Glitters', 'Progenitor Exarch', 'Alms of the Vein', 'Cut Down', 'Vryn Wingmare', 'Purify the Grave', 'Phyrexian Unlife', 'Falkenrath Pit Fighter', 'Detention Sphere', 'Scrapheap Scrounger', 'Scuttling Doom Engine', 'Silver-Fur Master', 'Burst Lightning', 'Lazotep Chancellor', 'Rally the Ranks', 'Cauldron Familiar', 'Declaration in Stone', 'Flametongue Kavu', 'Llanowar Augur', 'Shambling Vent', 'Aegis of the Gods', 'Lost Legacy', 'Divinity of Pride', 'Worship', 'Raise the Alarm', 'Psychic Possession', 'Solemn Simulacrum', 'Benevolent Bodyguard', 'Forked Bolt', 'Kaito, Dancing Shadow', 'Sterling Grove', 'Din of the Fireherd', 'Drake Haven', 'Skyclave Shade', 'Briarbridge Tracker', 'Pariah', 'Sheoldred''s Edict', 'Howling Mine', 'Emmara, Soul of the Accord', 'Godo, Bandit Warlord', 'Botanical Plaza', 'Quicken', 'Consult the Necrosages', 'Unburial Rites', 'Inscription of Ruin', 'Elvish Mystic', 'Gideon''s Intervention', 'Leonin Arbiter', 'Epic Experiment', 'Anger of the Gods', 'Racers'' Ring', 'Malcator, Purity Overseer', 'Herald of the Pantheon', 'Serra Ascendant', 'Silumgar, the Drifting Death', 'Bastion of Remembrance', 'Rootbound Crag', 'Venser, Corpse Puppet', 'Sunstrike Legionnaire', 'Assemble the Legion', 'Embodiment of Fury', 'Destroy Evil', 'Strike It Rich', 'Rakdos Guildgate', 'Dismal Backwater', 'Pharika''s Cure', 'Tear Asunder', 'Venser, the Sojourner', 'Mesmeric Fiend', 'Bogbrew Witch', 'Tendrils of Agony', 'Throne of the God-Pharaoh', 'Jokulhaups', 'Vigor', 'Madcap Experiment', 'Tempest Djinn', 'Darksteel Colossus', 'Vivid Marsh', 'Nissa, Steward of Elements', 'Terramorphic Expanse', 'Incinerate', 'Kitchen Imp', 'Rootwater Depths', 'Farseek', 'Seething Song', 'Vampire Nighthawk', 'Commune with Nature', 'Drainpipe Vermin', 'Inkwell Leviathan', 'Grove of the Guardian', 'Memoricide', 'Ancient Amphitheater', 'Reinforced Ronin', 'Scrapwork Mutt', 'Arch of Orazca', 'White Sun''s Zenith', 'Grave Titan', 'Halo Forager', 'King Darien XLVIII', 'Goblin Electromancer', 'Swooping Lookout', 'Primal Command', 'Marauding Blight-Priest', 'Memory Lapse', 'Negate', 'Weapons Trainer', 'Martyr of Sands', 'Vivid Grove', 'Blight Mamba', 'Gnawing Vermin', 'Dregscape Zombie', 'Riveteers Charm', 'Vadrik, Astral Archmage', 'Satyr Hoplite', 'Drownyard Temple', 'Dreams of Steel and Oil', 'Tezzeret the Schemer', 'Nature''s Lore', 'Aetherling', 'Cathedral of War', 'Barbed Sextant', 'Voldaren Pariah', 'Radha, Heart of Keld', 'Faeburrow Elder', 'Invasion of Regatha', 'Dusk // Dawn', 'Grand Arbiter Augustin IV', 'Stir the Grave', 'Archpriest of Shadows', 'Possibility Storm', 'Titania, Protector of Argoth', 'Sudden Edict', 'Radiant Grove', 'Restore Balance', 'Mikokoro, Center of the Sea', 'Kiora, the Crashing Wave', 'Teferi, Mage of Zhalfir', 'Huatli, Radiant Champion', 'Open the Gates', 'Slogurk, the Overslime', 'Bolas''s Citadel', 'Forbidden Alchemy', 'Mana Clash', 'Counterflux', 'Ashenmoor Liege', 'Ornithopter', 'Executioner''s Capsule', 'Sylvan Scrying', 'Secluded Steppe', 'Mistblade Shinobi', 'Ammit Eternal', 'Sol Talisman', 'Exhaustion', 'Vraska''s Contempt', 'Orcish Lumberjack', 'Kazandu Blademaster', 'Murmuring Bosk', 'Thornglint Bridge', 'Golgari Rot Farm', 'Doomskar', 'Tuktuk the Explorer', 'Kefnet the Mindful', 'Smoldering Marsh', 'Skymarcher Aspirant', 'Terrarion', 'Invasion of Zendikar', 'Master of Death', 'Thornwood Falls', 'Nimble Obstructionist', 'Territorial Kavu', 'Smother', 'Rally the Peasants', 'Mistvault Bridge', 'Tendo Ice Bridge', 'Nevermore', 'Ponder', 'Scattered Groves', 'Braids, Cabal Minion', 'War Falcon', 'Genesis Ultimatum', 'Surrak, the Hunt Caller', 'Basking Rootwalla', 'Woe Strider', 'Kami of the Crescent Moon', 'Altered Ego', 'Weathered Wayfarer', 'Gideon Jura', 'Auriok Sunchaser', 'Obscura Storefront', 'Lagrella, the Magpie', 'Bituminous Blast', 'Fevered Visions', 'Ebony Owl Netsuke', 'Brainstone', 'Shivan Reef', 'Ertai''s Scorn', 'Azorius Guildgate', 'Forbid', 'Of One Mind', 'Sprite Dragon', 'Triumphant Adventurer', 'Blue Sun''s Zenith', 'Bitter Reunion', 'Ayara, First of Locthwain', 'Woodland Cemetery', 'Yavimaya Coast', 'Peek', 'Dark Ritual', 'Akroan Crusader', 'Pieces of the Puzzle', 'Invoke Calamity', 'Snow-Covered Mountain', 'Veinfire Borderpost', 'Dreadhorde Butcher', 'Talisman of Conviction', 'Fetid Pools', 'Graven Cairns', 'Jace Beleren', 'Valiant Changeling', 'Glamerdye', 'Stone Rain', 'Dissipate', 'Silverbluff Bridge', 'Go for the Throat', 'Caldera Hellion', 'Zuran Orb', 'Basilisk Collar', 'Drowned Rusalka', 'Geyadrone Dihada', 'Mystic Monastery', 'Haunted Dead', 'Pyrite Spellbomb', 'Maze''s End', 'Elves of Deep Shadow', 'Platinum Angel', 'Terastodon', 'Ajani, Adversary of Tyrants', 'Hypergenesis', 'Argentum Armor', 'Scab-Clan Berserker', 'Staff of Domination', 'Bump in the Night', 'Gift of Immortality', 'Gateway Plaza', 'Smokestack', 'Voidslime', 'Crumbling Vestige', 'Eerie Ultimatum', 'Crawling Chorus', 'Ranger of Eos', 'Fiery Justice', 'Zombie Infestation', 'Graveborn Muse', 'Glimmerpost', 'Satyr Wayfinder', 'The Celestus', 'Fae of Wishes', 'Izzet Boilerworks', 'Ishkanah, Grafwidow', 'Mothdust Changeling', 'Distorted Curiosity', 'Kozilek''s Predator', 'Chief of the Foundry', 'Stirring Wildwood', 'Fierce Empath', 'Settle the Wreckage', 'Deep Analysis', 'Sylvan Advocate', 'Psychatog', 'Boon-Bringer Valkyrie', 'Meeting of Minds', 'Convolute', 'Steel Overseer', 'Drown in Ichor', 'Pore Over the Pages', 'Phyrexian Revoker', 'Increasing Ambition', 'Graven Lore', 'Sever the Bloodline', 'Nimbus Maze', 'Smuggler''s Copter', 'Faerie Miscreant', 'General Ferrous Rokiric', 'Idyllic Tutor', 'Sculpted Perfection', 'Self-Assembler', 'Cabal Initiate', 'Shizo, Death''s Storehouse', 'Narcomoeba', 'Garruk Wildspeaker', 'Grafted Butcher', 'Ethereal Armor', 'Thawing Glaciers', 'Silent Gravestone', 'Tezzeret''s Gambit', 'Canyon Slough', 'Moment of Truth', 'Seal of Removal', 'Angel of Serenity', 'Thaumatic Compass', 'Goblin Kaboomist', 'Glorybringer', 'Touch the Spirit Realm', 'Ral, Storm Conduit', 'Toolcraft Exemplar', 'Halimar Excavator', 'Thrash // Threat', 'Abzan Charm', 'Ground Seal', 'Stone Haven Outfitter', 'Tranquil Thicket', 'Gallia of the Endless Dance', 'Heap Doll', 'Cloudshredder Sliver', 'Scrying Sheets', 'Sculpting Steel', 'Invisible Stalker', 'Clifftop Retreat', 'Assault // Battery', 'Yahenni''s Expertise', 'Ruric Thar, the Unbowed', 'Dawn of Hope', 'Stromkirk Noble', 'Ghostly Pilferer', 'Thopter Mechanic', 'Blood on the Snow', 'Rites of Initiation', 'Ancestral Blade', 'Gather the Townsfolk', 'Raze to the Ground', 'Defiant Strike', 'Leonin Lightscribe', 'Corrupted Crossroads', 'Esper Charm', 'Judith, the Scourge Diva', 'Wizard''s Retort', 'Heliod''s Pilgrim', 'Approach of the Second Sun', 'Elvish Archdruid', 'Tribute to Horobi', 'Froghemoth', 'Dark Petition', 'Hope of Ghirapur', 'Giant Killer', 'Midnight Guard', 'Bident of Thassa', 'Voyaging Satyr', 'Frantic Search', 'Cleansing Wildfire', 'Mulch', 'Dread Wanderer', 'Temple of Deceit', 'Dimensional Infiltrator', 'Silversmote Ghoul', 'Anafenza, the Foremost', 'Fact or Fiction', 'Kiora Bests the Sea God', 'Perilous Myr', 'Sunblade Samurai', 'Vraan, Executioner Thane', 'Drossforge Bridge', 'Languish', 'Elvish Visionary', 'Game Trail', 'Sins of the Past', 'Boreal Shelf', 'Sunpetal Grove', 'Jwari Disruption', 'Odds // Ends', 'Angel of Condemnation', 'Haunted Mire', 'Tidehollow Sculler', 'Curiosity', 'Mindsplice Apparatus', 'Tocasia''s Dig Site', 'Kalastria Healer', 'Dark-Dweller Oracle', 'Tresserhorn Sinks', 'Acquisitions Expert', 'Wildborn Preserver', 'Glistener Elf', 'Dispatch', 'Pyroclasm', 'Kruphix''s Insight', 'Runed Halo', 'Black Sun''s Zenith', 'Oona''s Prowler', 'Mastermind''s Acquisition', 'Sorin, Vengeful Bloodlord', 'Oblivion Ring', 'Marit Lage''s Slumber', 'Precinct Captain', 'Temple of Mystery', 'Grolnok, the Omnivore', 'Kemba, Kha Enduring', 'Loxodon Smiter', 'Sin Collector', 'Eidolon of Blossoms', 'Misery Charm', 'Firewild Borderpost', 'Dryad Militant', 'Malicious Malfunction', 'Cremate', 'Gavony Township', 'Port Town', 'Secluded Courtyard', 'Jukai Naturalist', 'Gruul Spellbreaker', 'Thrill of Possibility', 'Dark Prophecy', 'Dead of Winter', 'Orzhov Guildgate', 'Yisan, the Wanderer Bard', 'Adanto Vanguard', 'Hinterland Harbor', 'Luminarch Ascension', 'Shape Anew', 'Anoint with Affliction', 'Hideous End', 'Dying to Serve', 'Vedalken Heretic', 'Chandra, Fire Artisan', 'Battlefield Forge', 'Gruul Turf', 'Succumb to Temptation', 'Price of Progress', 'Tainted Indulgence', 'Gather the Pack', 'Karn''s Bastion', 'Moorland Haunt', 'Tangled Islet', 'Zephyr Singer', 'Tamiyo, Collector of Tales', 'Dimir Aqueduct', 'Mogg War Marshal', 'Nomad Outpost', 'Sunlit Marsh', 'Council''s Judgment', 'Tolarian Terror', 'Thragtusk', 'Vampire Lacerator', 'Prosperous Thief', 'Chain Lightning', 'Rain of Tears', 'Ivory Tower', 'Tyrant''s Choice', 'Yasharn, Implacable Earth', 'Bloodchief Ascension', 'Gird for Battle', 'Eldrazi Displacer', 'Bontu''s Last Reckoning', 'Crux of Fate', 'Rocco, Cabaretti Caterer', 'Lizard Blades', 'Ivy Lane Denizen', 'Cartel Aristocrat', 'Miasmic Mummy', 'Ghost Quarter', 'Knight of Glory', 'Timely Reinforcements', 'Pack Rat', 'Rampant Growth', 'Oust', 'Stinkdrinker Bandit', 'Torens, Fist of the Angels', 'Razortide Bridge', 'Thassa''s Intervention', 'Silverblade Paladin', 'Servo Exhibition', 'Chandra, Pyromaster', 'Arguel''s Blood Fast', 'Mnemonic Sphere', 'Lochmere Serpent', 'Archon of Sun''s Grace', 'Destiny Spinner', 'Seal of Fire', 'Valakut Exploration', 'Curse of Exhaustion', 'Far // Away', 'Gleeful Demolition', 'Slagwoods Bridge', 'Bloodline Keeper', 'Change the Equation', 'Solemnity', 'Rift Bolt', 'Soul Snare', 'Westvale Abbey', 'Hieroglyphic Illumination', 'Oni-Cult Anvil', 'Jungle Hollow', 'Cabaretti Courtyard', 'Wasteland Strangler', 'Hard Evidence', 'Fruit of Tizerus', 'Lightning Strike', 'Sigil of the Empty Throne', 'Nine Lives', 'Blanchwood Prowler', 'Sea-Dasher Octopus', 'Mouth of Ronom', 'Geothermal Bog', 'Endbringer', 'Liliana Vess', 'Honor of the Pure', 'Banishing Slash', 'Anguished Unmaking', 'Spikefield Hazard', 'Stubborn Denial', 'Myr Superion', 'Duress', 'Kher Keep', 'Nissa, Worldwaker', 'Malakir Rebirth', 'Shriekmaw', 'Dokuchi Silencer', 'Wayward Guide-Beast', 'Cabal Therapist', 'Spellweaver Helix', 'Gruul Guildgate', 'Otherworldly Journey', 'Birds of Paradise', 'Elvish Rejuvenator', 'Treasure Cruise', 'Wood Elves', 'Fade from Memory', 'Faithless Salvaging', 'Mindslaver', 'Revitalize', 'Earthquake', 'Temple of Triumph', 'Temple of Malady', 'Kami of False Hope', 'Venser, Shaper Savant', 'Wrenn''s Resolve', 'Temple of Enlightenment', 'Shigeki, Jukai Visionary', 'Forsake the Worldly', 'Winds of Abandon', 'Faerie Vandal', 'Maelstrom Pulse', 'Prophetic Prism', 'Remorseful Cleric', 'Spectral Procession', 'Seedcradle Witch', 'Ossification', 'Ghostly Flicker', 'Brave the Sands', 'Frenetic Sliver', 'Woodfall Primus', 'Lathliss, Dragon Queen', 'Chief Engineer', 'Lantern-Lit Graveyard', 'Energy Refractor', 'Experimental Synthesizer', 'Unsubstantiate', 'Putrefy', 'Sinister Concoction', 'Stormrider Spirit', 'Kessig Wolf Run', 'Bloodchief''s Thirst', 'Ghostfire Blade', 'Nameless Inversion', 'Leather Armor', 'Ramunap Excavator', 'Leonin Warleader', 'Frontier Bivouac', 'Rotting Rats', 'Union of the Third Path', 'Keruga, the Macrosage', 'Dakkon, Shadow Slayer', 'Goldmeadow Harrier', 'Collected Conjuring', 'Temple of Abandon', 'Night Market Lookout', 'Duplicant', 'Call of the Death-Dweller', 'Genesis Hydra', 'Abundant Growth', 'Mortuary Mire', 'Simian Spirit Guide', 'Nullpriest of Oblivion', 'Greater Gargadon', 'Eiganjo Castle', 'Abiding Grace', 'Sarkhan the Masterless', 'Glint-Sleeve Siphoner', 'Argentum Masticore', 'Kor Skyfisher', 'Ral, Izzet Viceroy', 'Djinn of the Fountain', 'Syphon Life', 'Dovin''s Acuity', 'Vault Skirge', 'Siege Rhino', 'Ulcerate', 'Moon-Circuit Hacker', 'Llanowar Tribe', 'Ancient Stirrings', 'Makeshift Mannequin', 'Big Score', 'Knight of New Alara', 'Yorion, Sky Nomad', 'Kemba, Kha Regent', 'Fatestitcher', 'Disenchant', 'Bogardan Hellkite', 'Second Sunrise', 'Steel Leaf Champion', 'Baneful Omen', 'Abyssal Persecutor', 'Pharika''s Libation', 'Ayli, Eternal Pilgrim', 'Goblin Dark-Dwellers', 'Night of Souls'' Betrayal', 'Pillage', 'Doom Blade', 'Spell Burst', 'Invasion of Amonkhet', 'Sheltered Thicket', 'Resolute Reinforcements', 'Chandra, Flamecaller', 'Flooded Grove', 'Zhalfirin Shapecraft', 'Shrapnel Blast', 'Enchantress''s Presence', 'Etherium Sculptor', 'Marwyn, the Nurturer', 'Nezumi Graverobber', 'Venerated Loxodon', 'Sigrid, God-Favored', 'Magister of Worth', 'Reckless Rage', 'Kogla, the Titan Ape', 'Riveteers Overlook', 'Empty the Warrens', 'Tectonic Edge', 'Invasion of New Capenna', 'Knowledge Pool', 'Lay Down Arms', 'Unbreakable Formation', 'Demigod of Revenge', 'Morsel Theft', 'Mesa Enchantress', 'Mirage Mirror', 'Mazemind Tome', 'Mystical Teachings', 'Barter in Blood', 'Mulldrifter', 'Tavern Scoundrel', 'Mindcrank', 'Cloudpost', 'Forging the Anchor', 'Saproling Migration', 'Mirror Entity', 'Commit // Memory', 'Erebos''s Intervention', 'Kunoros, Hound of Athreos', 'Mwonvuli Acid-Moss', 'Goblin Chieftain', 'Postmortem Lunge', 'Xenagos, the Reveler', 'Maestros Charm', 'Wildfire', 'Wild Cantor', 'Empyrial Armor', 'Grave Scrabbler', 'Unmarked Grave', 'Expedite', 'Whispersilk Cloak', 'Ashen Rider', 'Disallow', 'Cabal Ritual', 'Pardic Miner', 'Melira, Sylvok Outcast', 'Time of Need', 'Goblin Anarchomancer', 'Commence the Endgame', 'Mishra''s Research Desk', 'Soldier of the Pantheon', 'Vault of the Archangel', 'Ulamog''s Crusher', 'Barbarian Ring', 'Golgari Guildgate', 'Careful Cultivation', 'Stoic Rebuttal', 'Sunken Hollow', 'Sacred Peaks', 'Hornet Queen', 'Raging Ravine', 'Rix Maadi Reveler', 'Herd Migration', 'Prohibit', 'Midnight Reaper', 'Fleecemane Lion', 'Tidespout Tyrant', 'Trace of Abundance', 'Blessed Alliance', 'Quiet Speculation', 'Experimental Augury', 'Spectral Shift', 'Dream Trawler', 'Fecundity', 'The Underworld Cookbook', 'Obstinate Baloth', 'Gideon''s Lawkeeper', 'Oona, Queen of the Fae', 'Raffine''s Informant', 'Rally the Ancestors', 'Sin Prodder', 'Teneb, the Harvester', 'Ravenous Squirrel', 'Dross Skullbomb', 'Stoke the Flames', 'Curious Homunculus', 'Duneblast', 'Obliterate', 'Expedition Envoy', 'Summer Bloom', 'Combat Research', 'Invasion of Kaladesh', 'True Believer', 'Jor Kadeen, First Goldwarden', 'Ogre Slumlord', 'High-Speed Hoverbike', 'Ancient Ziggurat', 'Scarab Feast', 'Crawling Barrens', 'Obscura Charm', 'Anafenza, Kin-Tree Spirit', 'Temple of Plenty', 'Hanweir Garrison', 'Bloodbraid Elf', 'Goblin Bombardment', 'Tangle', 'Wrench Mind', 'Elixir of Immortality', 'Oona''s Grace', 'Dragon''s Hoard', 'Ajani, Mentor of Heroes', 'Karumonix, the Rat King', 'Vraska''s Fall', 'Archangel Avacyn', 'Buried Ruin', 'Molten Tributary', 'Vessel of Nascency', 'Upheaval', 'Circuit Mender', 'Ethersworn Sphinx', 'Fallaji Archaeologist', 'Gnat Miser', 'Flaying Tendrils', 'Wing Commando', 'Colossal Skyturtle', 'Whir of Invention', 'Ulvenwald Hydra', 'Grand Architect', 'Return to the Ranks', 'Hada Freeblade', 'Grapple with the Past', 'Graaz, Unstoppable Juggernaut', 'Electrolyze', 'Corpse Cur', 'Quicksilver Gargantuan', 'Divest', 'Crack the Earth', 'Putrid Goblin', 'Ignite Memories', 'Reckoner''s Bargain', 'Slagstorm', 'Tribute to Hunger', 'Erebos, Bleak-Hearted', 'River of Tears', 'Lose Focus', 'Carven Caryatid', 'Devil''s Play', 'Swiftfoot Boots', 'Dire-Strain Rampage', 'Summary Dismissal', 'Lavinia of the Tenth', 'Supreme Will', 'The Flame of Keld', 'Bring the Ending', 'Big Game Hunter', 'Mistveil Plains', 'Mana Leak', 'Hero''s Downfall', 'Bedlam Reveler', 'Rule of Law', 'Disrupting Shoal', 'Overgrowth', 'Felidar Cub', 'Gitaxian Probe', 'Coiling Oracle', 'Frantic Inventory', 'Universal Automaton', 'Gift of Estates', 'Herd Baloth', 'Warstorm Surge', 'Rites of Spring', 'Waking the Trolls', 'Verduran Enchantress', 'Wildfield Borderpost', 'Control Magic', 'Celestial Colonnade', 'Ensoul Artifact', 'Serrated Scorpion', 'Notorious Throng', 'Skirk Prospector', 'Murderous Cut', 'Vampire Hexmage', 'Spell Pierce', 'Goldmire Bridge', 'Varolz, the Scar-Striped', 'Mina and Denn, Wildborn', 'Circular Logic', 'Become Immense', 'Frost Titan', 'Frostwalk Bastion', 'Folio of Fancies', 'Blightning', 'Sweltering Suns', 'Nightscape Familiar', 'Halana and Alena, Partners', 'Melira, the Living Cure', 'Fumigate', 'Elemental Masterpiece', 'Burning of Xinye', 'Phoenix Chick', 'Changeling Outcast', 'Gutterbones', 'Thundermaw Hellkite', 'Stinkweed Imp', 'Shimmerdrift Vale', 'Reckless Charge', 'Krosan Grip', 'Diabolic Tutor', 'Hyena Umbra', 'Choked Estuary', 'Heartless Act', 'Might of Old Krosa', 'Oath of Kaya', 'Darksteel Citadel', 'Ichorclaw Myr', 'Demonic Dread', 'Sign in Blood', 'Bloodsoaked Champion', 'Search for Tomorrow', 'Fight as One', 'World Shaper', 'Elvish Clancaller', 'Brokers Hideout', 'Fetid Heath', 'Tomebound Lich', 'Healer''s Hawk', 'Champion of Wits', 'Opulent Palace', 'Chamber Sentry', 'Shalai, Voice of Plenty', 'Goblin Matron', 'Boros Elite', 'Ghitu Lavarunner', 'No Escape', 'Pillar of the Paruns', 'Sandsteppe Citadel', 'Invasion of Ergamon', 'General''s Enforcer', 'Gadrak, the Crown-Scourge', 'Disciple of the Vault', 'Bubbling Cauldron', 'Phantasmal Image', 'Carnophage', 'Tooth and Nail', 'Oracle of Mul Daya', 'Volt Charge', 'Galvanic Relay', 'Sea Gate Oracle', 'Rakdos Cackler', 'Glimpse of Tomorrow', 'Lurrus of the Dream-Den', 'Deprive', 'Groundswell', 'Kor Firewalker', 'Fireblade Charger', 'Polukranos, World Eater', 'Snow-Covered Swamp', 'Akoum Hellhound', 'Necrogen Spellbomb', 'Stupor', 'Koth, Fire of Resistance', 'Cliffside Lookout', 'Putrid Imp', 'Canopy Vista', 'Grim Haruspex', 'Boomerang', 'Myth Realized', 'Llanowar Elves', 'Corrupted Conviction', 'Scatter Ray', 'Victim of Night', 'Search for Azcanta', 'Arlinn Kord', 'Blightbelly Rat', 'Pashalik Mons', 'Seismic Assault', 'Anticipate', 'Ardent Recruit', 'Concealing Curtains', 'Battle of Wits', 'Dimir Guildgate', 'Arbor Elf', 'Seeker of the Way', 'Steppe Lynx', 'Thoughts of Ruin', 'Nimble Larcenist', 'Aetherblade Agent', 'Prologue to Phyresis', 'Hesitation', 'Harmonize', 'Artistic Refusal', 'Unlucky Witness', 'Voidwing Hybrid', 'Obzedat, Ghost Council', 'Stasis Snare', 'Invasion of Azgol', 'Cathartic Reunion', 'Shimmer Dragon', 'Eternal Scourge', 'Skyshroud Elf', 'Floriferous Vinewall', 'The Antiquities War', 'Temple of Epiphany', 'Yavimaya Iconoclast', 'Contaminated Aquifer', 'Angrath, the Flame-Chained', 'Simic Guildgate', 'Ezuri, Renegade Leader', 'Engulf the Shore', 'Favored Hoplite', 'Shardless Agent', 'Saffi Eriksdotter', 'Consuming Vapors', 'Timeless Dragon', 'Commune with the Gods', 'Drowned Catacomb', 'Orzhov Basilica', 'Rise // Fall', 'Fangren Marauder', 'Tezzeret, Artifice Master', 'Thopter Spy Network', 'Fertile Ground', 'Gaea''s Will', 'Orim''s Chant', 'Ransack the Lab', 'Soul Warden', 'Apostle''s Blessing', 'Needle Spires', 'Blade Splicer', 'Vivid Crag', 'Okina, Temple to the Grandfathers', 'Savage Lands', 'Out of Time', 'Surge of Salvation', 'Grenzo, Dungeon Warden', 'Elite Inquisitor', 'Vampire Neonate', 'Sleight of Hand', 'Castigate', 'Mind''s Desire', 'Reflector Mage', 'Kappa Tech-Wrecker', 'Disciple of Bolas', 'Yosei, the Morning Star', 'Fearless Fledgling', 'Sire of Insanity', 'Spatial Contortion', 'Arbalest Engineers', 'Gravelgill Duo', 'Magister Sphinx', 'Tanglepool Bridge', 'Sylvan Messenger', 'Blazing Rootwalla', 'Terminus', 'Wandering Fumarole', 'Scour All Possibilities', 'Temple of Silence', 'Patchwork Automaton', 'Judge''s Familiar', 'Solitary Confinement', 'Metalwork Colossus', 'Genesis Wave', 'Turnabout', 'Bitter Ordeal', 'Runeflare Trap', 'Pain Seer', 'Tocatli Honor Guard', 'Wooded Bastion', 'Founding the Third Path', 'Sphinx''s Herald', 'Altar of the Brood', 'Annex Sentry', 'Rabbit Battery', 'The Seedcore', 'Think Twice', 'Hall of Oracles', 'Sulfur Falls', 'The Mending of Dominaria', 'Terminate', 'Resurgent Belief', 'Artisan of Kozilek', 'Dead // Gone', 'Dragonskull Summit', 'Desperate Ritual', 'Hissing Quagmire', 'Lightning Spear', 'Twinshot Sniper', 'Wilt', 'Sylvan Library', 'Ashnod, Flesh Mechanist', 'Fracturing Gust', 'Heliod''s Intervention', 'Zur''s Weirding', 'Yawgmoth''s Bargain', 'Brineborn Cutthroat', 'Felidar Retreat', 'Angel of Grace', 'Deafening Clarion', 'Wolfbriar Elemental', 'Master of Etherium', 'Cryptic Caves', 'Tarfire', 'Rust Goliath', 'Timeless Witness', 'See Beyond', 'Quest for the Holy Relic', 'Nimble Trapfinder', 'Drowner of Hope', 'Recurring Nightmare', 'Moderation', 'Augur of Bolas', 'Talisman of Curiosity', 'Xerex Strobe-Knight', 'Phyrexian Dreadnought', 'Knight of the White Orchid', 'Spirited Companion', 'Repudiate // Replicate', 'Urban Evolution', 'Abundant Harvest', 'Frost Marsh', 'Nekrataal', 'Invigorate', 'Caves of Koilos', 'Guile', 'Forgotten Cave', 'Ovika, Enigma Goliath', 'Fieldmist Borderpost', 'Kabira Takedown', 'Voltage Surge', 'Springleaf Drum', 'Dauntless Bodyguard', 'Bubbling Muck', 'Wonder', 'Gigadrowse', 'Hypnotic Specter', 'Dread Return', 'Tymaret, Chosen from Death', 'Feed the Swarm', 'Rakdos Charm', 'Network Disruptor', 'Hostage Taker', 'Orzhov Charm', 'Rune Snag', 'Myr Battlesphere', 'Precursor Golem', 'Glacial Fortress', 'Lingering Souls', 'Repeal', 'Wrath of God', 'Kitesail Freebooter', 'Impulse', 'Sylvan Caryatid', 'Mausoleum Secrets', 'Archaeomancer', 'Kumano Faces Kakkazan', 'Call to the Grave', 'Evacuation', 'Arcum''s Astrolabe', 'Galerider Sliver', 'Day of Judgment', 'Silundi Vision', 'Utter End', 'Grand Abolisher', 'Laboratory Maniac', 'Dead Weight', 'Lodestone Golem', 'Festering Newt', 'Mistcutter Hydra', 'Lavaclaw Reaches', 'Sinew Sliver', 'Vraska, Relic Seeker', 'Figure of Destiny', 'Brave the Elements', 'Shard Volley', 'Azorius Charm', 'The Scorpion God', 'Idyllic Beachfront', 'Kitchen Finks', 'Icehide Golem', 'Phalanx Leader', 'Izzet Guildgate', 'Cultivate', 'Third Path Iconoclast', 'Wall of Omens', 'Check for Traps', 'Tilling Treefolk', 'Jwari Shapeshifter', 'Aether Spellbomb', 'Presence of Gond', 'Late to Dinner', 'Into the Roil', 'Elspeth Conquers Death', 'Geomancer''s Gambit', 'Pull from Tomorrow', 'Blood Artist', 'Delay', 'Locket of Yesterdays', 'Arcbound Ravager', 'Slaughter Pact', 'Commune with Spirits', 'Throat Slitter', 'Llanowar Mentor', 'Simian Sling', 'Flame Rift', 'Breya''s Apprentice', 'One with the Machine', 'Explore', 'Nezahal, Primal Tide', 'Jace, Architect of Thought', 'Elderscale Wurm', 'Lotus Cobra', 'Farhaven Elf', 'Shred Memory', 'Empyrial Plate', 'Restoration Angel', 'Murderous Redcap', 'Fyndhorn Elves', 'Kjeldoran Outpost', 'Fabricate', 'Devious Cover-Up', 'Archangel of Wrath', 'Agonizing Remorse', 'Sphere of Safety', 'Stern Dismissal', 'Viscera Seer', 'Fiery Gambit', 'Inevitable Betrayal', 'Viashino Pyromancer', 'Vindicate', 'Nephalia Drownyard', 'Goblin Instigator', 'Mistvein Borderpost', 'Bone Shards', 'Hour of Promise', 'Vampiric Rites', 'Ephara, God of the Polis', 'Soltari Priest', 'Demolition Field', 'Joint Exploration', 'Brain Freeze', 'Rise and Shine', 'Wanderwine Hub', 'Squee, Goblin Nabob', 'Rustvale Bridge', 'Fire Prophecy', 'Discovery // Dispersal', 'Porphyry Nodes', 'Vapor Snag', 'Haunted Fengraf', 'Priest of the Haunted Edge', 'Marble Diamond', 'Sultai Charm', 'Diffusion Sliver', 'Crystal Grotto', 'Vexing Shusher', 'Dakmor Salvage', 'Talisman of Unity', 'Gilt-Leaf Archdruid', 'Predatory Sliver', 'Knight of the Reliquary', 'Arcane Sanctum', 'Bloodvial Purveyor', 'Consul''s Lieutenant', 'Thraben Inspector', 'Ally Encampment', 'Hooting Mandrills', 'Unctus, Grand Metatect', 'Sandwurm Convergence', 'Armored Scrapgorger', 'Kaya, Ghost Assassin', 'Recruitment Officer', 'Reveillark', 'Jungle Shrine', 'Merciless Eviction', 'Chaotic Transformation', 'Squadron Hawk', 'Mirran Crusader', 'Nether Traitor', 'Helm of the Host', 'Death Cloud', 'Unholy Heat', 'Nested Shambler', 'Ruin Crab', 'Oracle of Tragedy', 'Demonic Bargain', 'Silumgar''s Scorn', 'Phyrexian Censor', 'Faith''s Reward', 'Lead the Stampede', 'Leonin Relic-Warder', 'Deep Forest Hermit', 'Pyretic Ritual', 'Evolving Wilds', 'Protect the Negotiators', 'Monument to Perfection', 'Rakdos''s Return', 'Smallpox', 'Open the Armory', 'Consume the Meek', 'Kambal, Consul of Allocation', 'Delver of Secrets', 'Witching Well', 'Battle of Frost and Fire', 'Elas il-Kor, Sadistic Pilgrim', 'Akiri, Fearless Voyager', 'Case the Joint', 'Combat Thresher', 'Mishra''s Factory', 'Tribal Flames', 'Acidic Slime', 'Inscribed Tablet', 'Fiery Temper', 'Into the Story', 'Bilious Skulldweller', 'Chittering Rats', 'Gloomshrieker', 'Rishkar, Peema Renegade', 'Boros Guildgate', 'Plated Geopede', 'Doomed Traveler', 'Exclude', 'Condemn', 'Sarkhan, the Dragonspeaker', 'Scrabbling Claws', 'Dreadhorde Invasion', 'Nether Spirit', 'Aetherspouts', 'Vines of Vastwood', 'Altar of the Goyf', 'Ambush Viper', 'Decree of Justice', 'Bloodthrone Vampire', 'Seal of Cleansing', 'Raven''s Crime', 'Snow-Covered Plains', 'Selesnya Guildgate', 'Greater Tanuki', 'Green Sun''s Twilight', 'Norn''s Inquisitor', 'Mountain Valley', 'Izzet Charm', 'Draugr Necromancer', 'Teshar, Ancestor''s Apostle', 'Evangel of Synthesis', 'Eldrazi Skyspawner', 'Cataclysmic Gearhulk'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Golgari Rot Farm', 'Ground Seal', 'Izzet Charm', 'Soul Snare', 'Rites of Initiation', 'Yisan, the Wanderer Bard', 'Skymarcher Aspirant', 'Shigeki, Jukai Visionary', 'Volt Charge', 'Hope of Ghirapur', 'Brave the Elements', 'Doomed Traveler', 'Price of Progress', 'Sarkhan, the Dragonspeaker', 'Dauntless Bodyguard', 'Guile', 'Favored Hoplite', 'Bloodbraid Elf', 'Shimmerdrift Vale', 'Ashen Rider', 'Kor Skyfisher', 'Scour All Possibilities', 'Seeker of the Way', 'Orzhov Charm', 'Forging the Anchor', 'Azorius Guildgate', 'Silver-Fur Master', 'Open the Gates', 'Soul Warden', 'Corrupted Crossroads', 'Ruric Thar, the Unbowed', 'Mana Leak', 'Elves of Deep Shadow', 'Frontier Bivouac', 'Okina, Temple to the Grandfathers', 'Flame Rift', 'Springleaf Drum', 'Sprite Dragon', 'Dreadhorde Invasion', 'Fecundity', 'Jokulhaups', 'Rakdos Guildgate', 'Union of the Third Path', 'Nameless Inversion', 'Rocco, Cabaretti Caterer', 'Invoke Calamity', 'Sultai Charm', 'Westvale Abbey', 'Worship', 'Surge of Salvation', 'Ghostfire Blade', 'Consult the Necrosages', 'Meeting of Minds', 'Thornglint Bridge', 'Moment of Truth', 'Cloudpost', 'Joint Exploration', 'Nissa, Worldwaker', 'Anafenza, Kin-Tree Spirit', 'Ajani, Mentor of Heroes', 'Vraska, Relic Seeker', 'Sever the Bloodline', 'Arcane Sanctum', 'Mana Clash', 'Sinister Concoction', 'Mindcrank', 'Restoration Angel', 'Chain Lightning', 'Abyssal Persecutor', 'Herd Migration', 'Repudiate // Replicate', 'Midnight Reaper', 'Temple of Plenty', 'Jungle Hollow', 'Greater Tanuki', 'Vraska''s Fall', 'Annex Sentry', 'Oath of Teferi', 'Strike It Rich', 'Kozilek''s Predator', 'Brain Freeze', 'Frostwalk Bastion', 'Etherium Sculptor', 'Knight of Glory', 'Greater Gargadon', 'Geothermal Bog', 'Ranger of Eos', 'Frantic Inventory', 'Necrogen Spellbomb', 'Scatter Ray', 'Ambush Viper', 'Cathartic Reunion', 'Genesis Ultimatum', 'Phalanx Leader', 'Kiora, the Crashing Wave', 'Pore Over the Pages', 'Vampire Neonate', 'Sire of Insanity', 'Dark Prophecy', 'Stubborn Denial', 'Cryptic Caves', 'Pharika''s Libation', 'Mastermind''s Acquisition', 'Locket of Yesterdays', 'Celestial Colonnade', 'Decree of Justice', 'Pack Rat', 'Repeal', 'Ivy Lane Denizen', 'Harmonize', 'Wizard''s Retort', 'Llanowar Augur', 'Lochmere Serpent', 'Tocasia''s Dig Site', 'Case the Joint', 'Spell Burst', 'Sigil of the Empty Throne', 'War Falcon', 'Melira, Sylvok Outcast', 'Crumbling Vestige', 'Malcator, Purity Overseer', 'Pyrite Spellbomb', 'Kefnet the Mindful', 'Deep Forest Hermit', 'Fallaji Archaeologist', 'Bedlam Reveler', 'Duplicant', 'Thopter Spy Network', 'Cataclysmic Gearhulk', 'Yasharn, Implacable Earth', 'Ajani, Adversary of Tyrants', 'Treasure Cruise', 'Sylvan Advocate', 'Banishing Slash', 'Riveteers Charm', 'Obliterate', 'Simian Spirit Guide', 'Blazing Rootwalla', 'Rakdos Cackler', 'Urban Evolution', 'Kazandu Blademaster', 'Ral, Storm Conduit', 'Jungle Shrine', 'Kitchen Imp', 'Chamber Sentry', 'Go for the Throat', 'Black Sun''s Zenith', 'Faithless Salvaging', 'Orzhov Guildgate', 'Shrapnel Blast', 'Progenitor Exarch', 'Temple of Mystery', 'Smuggler''s Copter', 'Syphon Life', 'Marble Diamond', 'Blight Mamba', 'Steel Leaf Champion', 'Demonic Bargain', 'Gideon''s Lawkeeper', 'Search for Azcanta', 'Altered Ego', 'Trace of Abundance', 'Spikefield Hazard', 'Dovin''s Acuity', 'Invasion of Kaladesh', 'Orzhov Basilica', 'Blanchwood Prowler', 'Call of the Death-Dweller', 'Curiosity', 'Empty the Warrens', 'Vexing Shusher', 'Kabira Takedown', 'Ponder', 'Tamiyo, Collector of Tales', 'Gift of Immortality', 'Bilious Skulldweller', 'Increasing Ambition', 'Vivid Marsh', 'Circuit Mender', 'Wanderwine Hub', 'Teneb, the Harvester', 'Heliod''s Intervention', 'Lazotep Chancellor', 'Think Twice', 'Shape Anew', 'Rites of Spring', 'Tocatli Honor Guard', 'Otherworldly Journey', 'Mulldrifter', 'Stinkweed Imp', 'Languish', 'Grove of the Guardian', 'Aetherspouts', 'Reveillark', 'Eiganjo Castle', 'Saffi Eriksdotter', 'Glorybringer', 'Healer''s Hawk', 'Valakut Exploration', 'Dark-Dweller Oracle', 'Seedcradle Witch', 'Timeless Witness', 'Turnabout', 'Spellweaver Helix', 'Miasmic Mummy', 'Abundant Harvest', 'Ignite Memories', 'Erebos''s Intervention', 'Cabal Initiate', 'Brainstone', 'Fetid Pools', 'Protect the Negotiators', 'Voidslime', 'Dimir Aqueduct', 'Vault Skirge', 'Succumb to Temptation', 'Council''s Judgment', 'Invasion of Regatha', 'Tezzeret''s Gambit', 'Terastodon', 'Seismic Assault', 'Abiding Grace', 'Marauding Blight-Priest', 'Resurgent Belief', 'Wild Cantor', 'Disrupting Shoal', 'Waking the Trolls', 'Quest for the Holy Relic', 'Sin Collector', 'Port Town', 'Mistcutter Hydra', 'Temple of Epiphany', 'Snow-Covered Swamp', 'Talisman of Conviction', 'Kitchen Finks', 'Akroan Crusader', 'Aegis of the Gods', 'Dreadhorde Butcher', 'Sculpted Perfection', 'Mogg War Marshal', 'Rune Snag', 'Glimpse of Tomorrow', 'Tymaret, Chosen from Death', 'Wildfield Borderpost', 'Howling Mine', 'Squee, Goblin Nabob', 'Voidwing Hybrid', 'Satyr Wayfinder', 'Demolition Field', 'Goldmeadow Harrier', 'Elvish Clancaller', 'Tilling Treefolk', 'Thrun, Breaker of Silence', 'Goblin Matron', 'Tolsimir, Friend to Wolves', 'Din of the Fireherd', 'Haunted Fengraf', 'Late to Dinner', 'Ancient Amphitheater', 'Terminus', 'Invasion of Zendikar', 'Altar of the Goyf', 'Oust', 'Wayward Guide-Beast', 'Gideon Jura', 'Loxodon Smiter', 'Tezzeret, Artifice Master', 'Anger of the Gods', 'Cliffside Lookout', 'Corrupted Conviction', 'Slogurk, the Overslime', 'Nature''s Lore', 'Bituminous Blast', 'Disenchant', 'Ghostly Flicker', 'Ghost Quarter', 'Goblin Chieftain', 'Wall of Omens', 'Siege Rhino', 'Assemble the Legion', 'Mulch', 'Eerie Ultimatum', 'Supreme Will', 'Runeflare Trap', 'Shizo, Death''s Storehouse', 'Hornet Queen', 'Dispatch', 'Arch of Orazca', 'Fyndhorn Elves', 'Dying to Serve', 'Explore', 'Inscription of Ruin', 'Huatli, Radiant Champion', 'Tectonic Edge', 'Fight as One', 'Rakdos''s Return', 'Disallow', 'Galvanic Relay', 'Skyclave Shade', 'Gadrak, the Crown-Scourge', 'Basilisk Collar', 'Mistvein Borderpost', 'Solemn Simulacrum', 'Frantic Search', 'Game Trail', 'Glamerdye', 'Acidic Slime', 'Sunpetal Grove', 'Bogardan Hellkite', 'Wolfbriar Elemental', 'River of Tears', 'Evangel of Synthesis', 'Mystic Monastery', 'Champion of Wits', 'Darksteel Citadel', 'Night of Souls'' Betrayal', 'Reckoner''s Bargain', 'Commence the Endgame', 'Goldmire Bridge', 'Satyr Hoplite', 'Raffine''s Informant', 'Wood Elves', 'Bump in the Night', 'Moderation', 'Mirror Entity', 'Diabolic Tutor', 'Drownyard Temple', 'Elspeth Conquers Death', 'Lathliss, Dragon Queen', 'Shambling Vent', 'Mirran Crusader', 'Venerated Loxodon', 'Quiet Speculation', 'Tribal Flames', 'Combat Research', 'Ezuri, Renegade Leader', 'Herald of the Pantheon', 'Kor Firewalker', 'Blood on the Snow', 'Groundswell', 'Mistblade Shinobi', 'Stormrider Spirit', 'Big Score', 'Llanowar Mentor', 'Slaughter Pact', 'Hooting Mandrills', 'Yahenni''s Expertise', 'Fiery Temper', 'Rise and Shine', 'Crawling Chorus', 'Forbidden Alchemy', 'Vampire Nighthawk', 'Mystical Teachings', 'Terrarion', 'Scrapheap Scrounger', 'Shred Memory', 'Mausoleum Secrets', 'Wilt', 'Nested Shambler', 'Angel of Serenity', 'Snow-Covered Mountain', 'Seal of Fire', 'Rotting Rats', 'Cloudshredder Sliver', 'Postmortem Lunge', 'Skyshroud Elf', 'Azorius Charm', 'Arbor Elf', 'Bogbrew Witch', 'Faith''s Reward', 'Anafenza, the Foremost', 'Lightning Strike', 'Barbarian Ring', 'Argentum Armor', 'Sterling Grove', 'Solitary Confinement', 'Felidar Cub', 'Obscura Storefront', 'Master of Death', 'Gruul Guildgate', 'Rally the Ancestors', 'Steel Overseer', 'Convolute', 'Ghostly Pilferer', 'Control Magic', 'Forbid', 'Hanweir Garrison', 'Genesis Hydra', 'Raise the Alarm', 'Orcish Lumberjack', 'Heap Doll', 'Unholy Heat', 'Dead Weight', 'Dusk // Dawn', 'White Sun''s Zenith', 'Myr Superion', 'The Flame of Keld', 'Radiant Grove', 'Prologue to Phyresis', 'Gitaxian Probe', 'Talisman of Curiosity', 'Ayli, Eternal Pilgrim', 'Oni-Cult Anvil', 'Cabal Ritual', 'Discovery // Dispersal', 'Kessig Wolf Run', 'Servo Exhibition', 'Viscera Seer', 'Prophetic Prism', 'Murderous Redcap', 'Gaea''s Will', 'Pain Seer', 'Gruul Spellbreaker', 'Blade Splicer', 'Tuktuk the Explorer', 'Kunoros, Hound of Athreos', 'Mountain Valley', 'Self-Assembler', 'Kogla, the Titan Ape', 'Vigor', 'Phyrexian Revoker', 'Venser, Corpse Puppet', 'Elixir of Immortality', 'Silent Gravestone', 'Argentum Masticore', 'Opulent Palace', 'Might of Old Krosa', 'Ramunap Excavator', 'Angrath, the Flame-Chained', 'Shard Volley', 'Vapor Snag', 'Sandsteppe Citadel', 'The Celestus', 'Dire-Strain Rampage', 'Firewild Borderpost', 'Devious Cover-Up', 'Ertai''s Scorn', 'Silverblade Paladin', 'Bone Shards', 'Archangel of Wrath', 'Fruit of Tizerus', 'Adanto Vanguard', 'Consuming Vapors', 'Collected Conjuring', 'Flaying Tendrils', 'Ghitu Lavarunner', 'Thaumatic Compass', 'Leather Armor', 'All That Glitters', 'Eldrazi Skyspawner', 'Tidespout Tyrant', 'Flametongue Kavu', 'Invasion of Azgol', 'Burning of Xinye', 'Ethersworn Sphinx', 'Kiora Bests the Sea God', 'The Antiquities War', 'Victim of Night', 'Yorion, Sky Nomad', 'Archaeomancer', 'Primal Command', 'Halimar Excavator', 'Madcap Experiment', 'Phyrexian Censor', 'Fire Prophecy', 'Buried Ruin', 'Devil''s Play', 'Precinct Captain', 'Secluded Steppe', 'Rule of Law', 'Wandering Fumarole', 'Gateway Plaza', 'Secluded Courtyard', 'Barter in Blood', 'Pariah', 'Stone Rain', 'Vines of Vastwood', 'Scrapwork Mutt', 'Saproling Migration', 'Avacyn''s Pilgrim', 'Mortuary Mire', 'Executioner''s Capsule', 'Stromkirk Noble', 'Archpriest of Shadows', 'Eternal Scourge', 'Mnemonic Sphere', 'Frenetic Sliver', 'Wrench Mind', 'Stoke the Flames', 'Ashenmoor Liege', 'Coiling Oracle', 'Stone Haven Outfitter', 'Titania, Protector of Argoth', 'Battle of Wits', 'Drake Haven', 'Ichorclaw Myr', 'Tavern Scoundrel', 'Myth Realized', 'Commune with Spirits', 'Sandwurm Convergence', 'Bloodchief''s Thirst', 'Makeshift Mannequin', 'Caldera Hellion', 'Vivid Crag', 'Exclude', 'Grave Scrabbler', 'Jace Beleren', 'Dakmor Salvage', 'Wooded Bastion', 'Priest of the Haunted Edge', 'Boros Guildgate', 'Fae of Wishes', 'Thragtusk', 'Sunken Hollow', 'Temple of Abandon', 'Karn''s Bastion', 'Disciple of the Vault', 'Bloodchief Ascension', 'Mistvault Bridge', 'Lead the Stampede', 'Temple of Malady', 'Sinew Sliver', 'Serrated Scorpion', 'Kappa Tech-Wrecker', 'Razortide Bridge', 'Kambal, Consul of Allocation', 'Fatestitcher', 'Tribute to Hunger', 'Basking Rootwalla', 'Steppe Lynx', 'Scab-Clan Berserker', 'Lotus Cobra', 'Fierce Empath', 'Xerex Strobe-Knight', 'Dread Return', 'Stirring Wildwood', 'Tribute to Horobi', 'Winds of Abandon', 'Odds // Ends', 'Selesnya Guildgate', 'Golgari Guildgate', 'Norn''s Inquisitor', 'Elas il-Kor, Sadistic Pilgrim', 'Fumigate', 'Glimmerpost', 'Bitter Ordeal', 'Karumonix, the Rat King', 'Molten Tributary', 'Shimmer Dragon', 'Mesmeric Fiend', 'Divest', 'Knight of the White Orchid', 'Oath of Kaya', 'Melira, the Living Cure', 'Sunblade Samurai', 'The Underworld Cookbook', 'Gilt-Leaf Archdruid', 'Gallia of the Endless Dance', 'Mind''s Desire', 'Reckless Rage', 'Tainted Indulgence', 'Sylvan Library', 'Lose Focus', 'Idyllic Tutor', 'Elemental Masterpiece', 'Blightbelly Rat', 'Izzet Boilerworks', 'Settle the Wreckage', 'Cremate', 'Spectral Shift', 'Endbringer', 'Sigrid, God-Favored', 'Knight of New Alara', 'Terminate', 'Call to the Grave', 'Dead of Winter', 'Deprive', 'Sweltering Suns', 'Scrying Sheets', 'Magister of Worth', 'Mindsplice Apparatus', 'No Escape', 'Crack the Earth', 'Squadron Hawk', 'Tendrils of Agony', 'Sunstrike Legionnaire', 'Ishkanah, Grafwidow', 'Empyrial Plate', 'Nine Lives', 'Exhaustion', 'Drossforge Bridge', 'Corpse Cur', 'Stupor', 'World Shaper', 'Nimble Larcenist', 'Sheoldred''s Edict', 'Yosei, the Morning Star', 'Return to the Ranks', 'Porphyry Nodes', 'Inkwell Leviathan', 'Vindicate', 'Moorland Haunt', 'Hada Freeblade', 'Altar of the Brood', 'Whispersilk Cloak', 'Yavimaya Coast', 'Ancestral Blade', 'Kemba, Kha Regent', 'High-Speed Hoverbike', 'Bitter Reunion', 'Barbed Sextant', 'Big Game Hunter', 'Search for Tomorrow', 'Ethereal Armor', 'Destiny Spinner', 'Anticipate', 'Phoenix Chick', 'Murmuring Bosk', 'Plated Geopede', 'Earthquake', 'Obscura Charm', 'Tolarian Terror', 'Quicken', 'Honor of the Pure', 'Memoricide', 'Venser, the Sojourner', 'Judge''s Familiar', 'Soldier of the Pantheon', 'Rally the Peasants', 'Venser, Shaper Savant', 'Ephara, God of the Polis', 'Colossal Skyturtle', 'Arguel''s Blood Fast', 'Circular Logic', 'Tooth and Nail', 'Morsel Theft', 'Gather the Pack', 'Dream Trawler', 'Scrabbling Claws', 'Fade from Memory', 'Recurring Nightmare', 'Vadrik, Astral Archmage', 'Nomad Outpost', 'Whir of Invention', 'Benevolent Bodyguard', 'Putrid Goblin', 'Rakdos Charm', 'Nephalia Drownyard', 'Dismal Backwater', 'Jor Kadeen, First Goldwarden', 'Wasteland Strangler', 'Hesitation', 'Kalastria Healer', 'Overgrowth', 'Thrash // Threat', 'Mirage Mirror', 'Destroy Evil', 'Lavaclaw Reaches', 'Silversmote Ghoul', 'Sylvan Caryatid', 'Sorin, Vengeful Bloodlord', 'Mesa Enchantress', 'Malicious Malfunction', 'Declaration in Stone', 'Gift of Estates', 'Quicksilver Gargantuan', 'Figure of Destiny', 'Carnophage', 'Tempest Djinn', 'Fertile Ground', 'Grand Architect', 'Akiri, Fearless Voyager', 'Yavimaya Iconoclast', 'Armored Scrapgorger', 'Breya''s Apprentice', 'Oblivion Ring', 'Yawgmoth''s Bargain', 'Experimental Synthesizer', 'Combat Thresher', 'Oona''s Grace', 'Raven''s Crime', 'Grave Titan', 'Fact or Fiction', 'Utter End', 'Gather the Townsfolk', 'Spatial Contortion', 'Vampiric Rites', 'Forgotten Cave', 'Lingering Souls', 'Dokuchi Silencer', 'Brineborn Cutthroat', 'Botanical Plaza', 'Curse of Exhaustion', 'Dread Wanderer', 'Goblin Dark-Dwellers', 'Zephyr Singer', 'Psychatog', 'Simic Guildgate', 'Temple of Enlightenment', 'Tranquil Thicket', 'Orim''s Chant', 'Wing Commando', 'Drowned Catacomb', 'Demigod of Revenge', 'Elvish Visionary', 'Krosan Grip', 'Abundant Growth', 'Smokestack', 'Vault of the Archangel', 'Grim Haruspex', 'Jwari Shapeshifter', 'Dross Skullbomb', 'Diffusion Sliver', 'Remorseful Cleric', 'Kitesail Freebooter', 'Cartel Aristocrat', 'Canyon Slough', 'Day of Judgment', 'Cabal Therapist', 'Solemnity', 'Hypergenesis', 'Frost Titan', 'Divinity of Pride', 'Lantern-Lit Graveyard', 'Reflector Mage', 'Aether Spellbomb', 'Throne of the God-Pharaoh', 'Precursor Golem', 'Nevermore', 'General''s Enforcer', 'Gideon''s Intervention', 'Vedalken Heretic', 'Deafening Clarion', 'General Ferrous Rokiric', 'Sculpting Steel', 'Brave the Sands', 'Slagwoods Bridge', 'Rampant Growth', 'Gnawing Vermin', 'Goblin Kaboomist', 'Stasis Snare', 'Sins of the Past', 'Network Disruptor', 'Cultivate', 'Tomebound Lich', 'Caves of Koilos', 'Wildfire', 'Drainpipe Vermin', 'Sulfur Falls', 'Clifftop Retreat', 'Maze''s End', 'Epic Experiment', 'Leonin Arbiter', 'Expedition Envoy', 'The Scorpion God', 'Floriferous Vinewall', 'Grafted Butcher', 'Myr Battlesphere', 'Unctus, Grand Metatect', 'Arcbound Ravager', 'Sleight of Hand', 'Garruk Wildspeaker', 'Bloodvial Purveyor', 'Condemn', 'Nezumi Graverobber', 'Galerider Sliver', 'Vampire Lacerator', 'Goblin Electromancer', 'Acquisitions Expert', 'Verduran Enchantress', 'Dark Petition', 'Chief of the Foundry', 'Artisan of Kozilek', 'Recruitment Officer', 'Pull from Tomorrow', 'Chandra, Flamecaller', 'Heartless Act', 'Graveborn Muse', 'Archangel Avacyn', 'Ral, Izzet Viceroy', 'Sarkhan the Masterless', 'Inscribed Tablet', 'Thopter Mechanic', 'Monument to Perfection', 'Cauldron Familiar', 'Fieldmist Borderpost', 'Haunted Dead', 'Ammit Eternal', 'Elite Inquisitor', 'Psychic Possession', 'Kami of the Crescent Moon', 'Glistener Elf', 'Farhaven Elf', 'Bubbling Cauldron', 'Vraan, Executioner Thane', 'Rishkar, Peema Renegade', 'Ivory Tower', 'Talisman of Unity', 'Shivan Reef', 'Terramorphic Expanse', 'Oracle of Mul Daya', 'Vraska''s Contempt', 'Merciless Eviction', 'Putrid Imp', 'Rabbit Battery', 'Hissing Quagmire', 'Invisible Stalker', 'Electrolyze', 'Thornwood Falls', 'Gigadrowse', 'Nullpriest of Oblivion', 'Unsubstantiate', 'Forsake the Worldly', 'Fevered Visions', 'Prohibit', 'Fabricate', 'Vessel of Nascency', 'Staff of Domination', 'Consume the Meek', 'Rain of Tears', 'Blood Artist', 'Dragonskull Summit', 'Skirk Prospector', 'Pyroclasm', 'Stinkdrinker Bandit', 'Stern Dismissal', 'Lavinia of the Tenth', 'Faerie Miscreant', 'Moon-Circuit Hacker', 'Genesis Wave', 'Midnight Guard', 'Into the Story', 'Careful Cultivation', 'Folio of Fancies', 'Pillar of the Paruns', 'Rust Goliath', 'Unburial Rites', 'Distorted Curiosity', 'Thawing Glaciers', 'Hard Evidence', 'Pillage', 'Geyadrone Dihada', 'Sign in Blood', 'The Seedcore', 'Wildborn Preserver', 'Jace, Architect of Thought', 'Lurrus of the Dream-Den', 'Tarfire', 'Timely Reinforcements', 'Spell Pierce', 'Reckless Charge', 'Radha, Heart of Keld', 'Surrak, the Hunt Caller', 'Territorial Kavu', 'Aetherblade Agent', 'Sphere of Safety', 'Nether Spirit', 'Judith, the Scourge Diva', 'Upheaval', 'Tidehollow Sculler', 'Maestros Charm', 'Lizard Blades', 'Deep Analysis', 'Chittering Rats', 'Silundi Vision', 'Fiery Gambit', 'Doom Blade', 'Glint-Sleeve Siphoner', 'Battlefield Forge', 'Chandra, Fire Artisan', 'Summer Bloom', 'Dreams of Steel and Oil', 'Crawling Barrens', 'Mistveil Plains', 'Kjeldoran Outpost', 'Duress', 'Of One Mind', 'Hostage Taker', 'Thrill of Possibility', 'Thundermaw Hellkite', 'Spirited Companion', 'Hour of Promise', 'Leonin Warleader', 'Anoint with Affliction', 'Curious Homunculus', 'Swooping Lookout', 'Gutterbones', 'Elderscale Wurm', 'Bontu''s Last Reckoning', 'Rustvale Bridge', 'Thraben Inspector', 'Phyrexian Unlife', 'Eidolon of Blossoms', 'Eldrazi Displacer', 'Halana and Alena, Partners', 'Grolnok, the Omnivore', 'Auriok Sunchaser', 'Obzedat, Ghost Council', 'Inevitable Betrayal', 'Kaya, Ghost Assassin', 'Ancient Stirrings', 'Llanowar Elves', 'Scuttling Doom Engine', 'Demonic Dread', 'Invasion of New Capenna', 'Fracturing Gust', 'Stir the Grave', 'Shadow Prophecy', 'Valiant Changeling', 'Chandra, Pyromaster', 'Soltari Priest', 'Putrefy', 'Tear Asunder', 'Hero''s Downfall', 'Pieces of the Puzzle', 'Zhalfirin Shapecraft', 'Delay', 'Delver of Secrets', 'Assault // Battery', 'Mothdust Changeling', 'Patchwork Automaton', 'Bloodthrone Vampire', 'Leonin Lightscribe', 'Froghemoth', 'Vryn Wingmare', 'Godo, Bandit Warlord', 'Angel of Despair', 'Founding the Third Path', 'Chaotic Transformation', 'Nezahal, Primal Tide', 'Seething Song', 'Ayara, First of Locthwain', 'Desperate Ritual', 'Oona, Queen of the Fae', 'Idyllic Beachfront', 'Resolute Reinforcements', 'Experimental Augury', 'Ancient Ziggurat', 'Nimble Obstructionist', 'Hall of Oracles', 'Hypnotic Specter', 'Ossification', 'Mishra''s Factory', 'Mindslaver', 'Zombie Infestation', 'Sphinx''s Herald', 'Erebos, Bleak-Hearted', 'Canopy Vista', 'Platinum Angel', 'Felidar Retreat', 'Nightscape Familiar', 'Time of Need', 'Zur''s Weirding', 'Koth, Fire of Resistance', 'Keruga, the Macrosage', 'Negate', 'Invigorate', 'Silumgar, the Drifting Death', 'Murderous Cut', 'Forked Bolt', 'Emmara, Soul of the Accord', 'Duneblast', 'Isolated Chapel', 'Death Cloud', 'Ornithopter', 'Draugr Necromancer', 'Dissipate', 'Dawn of Hope', 'Ransack the Lab', 'Elvish Mystic', 'Artistic Refusal', 'Riveteers Overlook', 'Ruin Crab', 'Cut Down', 'Faerie Vandal', 'Elvish Archdruid', 'Shardless Agent', 'One with the Machine', 'Gravelgill Duo', 'Ulcerate', 'Thoughts of Ruin', 'Bastion of Remembrance', 'Contaminated Aquifer', 'Luminarch Ascension', 'Become Immense', 'Drowner of Hope', 'Fangren Marauder', 'Dead // Gone', 'Blessed Alliance', 'Veinfire Borderpost', 'Summary Dismissal', 'Angel of Condemnation', 'Graaz, Unstoppable Juggernaut', 'Silumgar''s Scorn', 'Sylvan Scrying', 'Rix Maadi Reveler', 'Notorious Throng', 'Weapons Trainer', 'Wrenn''s Resolve', 'Ally Encampment', 'Oracle of Tragedy', 'Voltage Surge', 'Herd Baloth', 'Second Sunrise', 'Tezzeret the Schemer', 'Thassa''s Intervention', 'Empyrial Armor', 'Mishra''s Research Desk', 'Sudden Edict', 'Nimble Trapfinder', 'Sea-Dasher Octopus', 'Farseek', 'Needle Spires', 'Snow-Covered Plains', 'Temple of Deceit', 'Temple of Silence', 'See Beyond', 'Twinshot Sniper', 'Detention Sphere', 'Choked Estuary', 'Dimir Guildgate', 'Lay Down Arms', 'Brokers Hideout', 'King Darien XLVIII', 'Universal Automaton', 'Evolving Wilds', 'Counterflux', 'Throat Slitter', 'Gnat Miser', 'Phyrexian Dreadnought', 'Burst Lightning', 'Concealing Curtains', 'Touch the Spirit Realm', 'Lost Legacy', 'Torens, Fist of the Angels', 'Nekrataal', 'Hyena Umbra', 'Swiftfoot Boots', 'Changeling Outcast', 'Knowledge Pool', 'Xenagos, the Reveler', 'Wrath of God', 'Energy Refractor', 'Defiant Strike', 'Commit // Memory', 'Festering Newt', 'Smallpox', 'Ravenous Squirrel', 'Unbreakable Formation', 'Crux of Fate', 'Lagrella, the Magpie', 'Blue Sun''s Zenith', 'Pashalik Mons', 'Triumphant Adventurer', 'Smoldering Marsh', 'Varolz, the Scar-Striped', 'Scattered Groves', 'True Believer', 'Ulvenwald Hydra', 'Archon of Sun''s Grace', 'Grand Abolisher', 'Prosperous Thief', 'Narcomoeba', 'Tyrant''s Choice', 'Misery Charm', 'Marit Lage''s Slumber', 'Kumano Faces Kakkazan', 'Racers'' Ring', 'Angel of Grace', 'Oona''s Prowler', 'Radiant Flames', 'Arcum''s Astrolabe', 'Goblin Instigator', 'Dark Ritual', 'Pardic Miner', 'Liliana Vess', 'Frost Marsh', 'Fiery Justice', 'Lightning Spear', 'Pharika''s Cure', 'Phantasmal Image', 'Sheltered Thicket', 'Alms of the Vein', 'Silverbluff Bridge', 'Mikokoro, Center of the Sea', 'Goblin Bombardment', 'Braids, Cabal Minion', 'Perilous Myr', 'Arbalest Engineers', 'Glacial Fortress', 'Icehide Golem', 'Feed the Swarm', 'Llanowar Tribe', 'Drown in Ichor', 'Third Path Iconoclast', 'Birds of Paradise', 'Drowned Rusalka', 'Predatory Sliver', 'Mina and Denn, Wildborn', 'Possibility Storm', 'Seal of Removal', 'Witching Well', 'Dakkon, Shadow Slayer', 'Zuran Orb', 'Aetherling', 'Out of Time', 'Kemba, Kha Enduring', 'Darksteel Colossus', 'Knight of the Reliquary', 'Woodland Cemetery', 'Chief Engineer', 'Halo Forager', 'Djinn of the Fountain', 'Grand Arbiter Augustin IV', 'Ulamog''s Crusher', 'Metalwork Colossus', 'Woe Strider', 'Scarab Feast', 'Check for Traps', 'Commune with the Gods', 'Fearless Fledgling', 'Graven Cairns', 'Gloomshrieker', 'Carven Caryatid', 'Dragon''s Hoard', 'Tanglepool Bridge', 'Helm of the Host', 'Commune with Nature', 'Approach of the Second Sun', 'Weathered Wayfarer', 'Bloodline Keeper', 'Kami of False Hope', 'Grapple with the Past', 'Malakir Rebirth', 'Raze to the Ground', 'Bident of Thassa', 'Faeburrow Elder', 'Abzan Charm', 'Boon-Bringer Valkyrie', 'Nissa, Steward of Elements', 'Smother', 'Tangle', 'Ebony Owl Netsuke', 'Voldaren Pariah', 'The Mending of Dominaria', 'Kher Keep', 'Voyaging Satyr', 'Elvish Rejuvenator', 'Unmarked Grave', 'Magister Sphinx', 'Open the Armory', 'Cathedral of War', 'Hideous End', 'Evacuation', 'Rise // Fall', 'Impulse', 'Giant Killer', 'Heliod''s Pilgrim', 'Ensoul Artifact', 'Maelstrom Pulse', 'Esper Charm', 'Sunlit Marsh', 'Polukranos, World Eater', 'Boomerang', 'Augur of Bolas', 'Akoum Hellhound', 'Martyr of Sands', 'Falkenrath Pit Fighter', 'Izzet Guildgate', 'Temple of Triumph', 'Obstinate Baloth', 'Wonder', 'Laboratory Maniac', 'Rift Bolt', 'Purify the Grave', 'Jukai Naturalist', 'Change the Equation', 'Raging Ravine', 'Bolas''s Citadel', 'Bring the Ending', 'Leonin Relic-Warder', 'Doomskar', 'Ogre Slumlord', 'Bubbling Muck', 'Warstorm Surge', 'Battle of Frost and Fire', 'Agonizing Remorse', 'Gird for Battle', 'Nether Traitor', 'Dimensional Infiltrator', 'Serra Ascendant', 'Sea Gate Oracle', 'Viashino Pyromancer', 'Presence of Gond', 'Boreal Shelf', 'Bloodsoaked Champion', 'Dryad Militant', 'Master of Etherium', 'Spectral Procession', 'Blightning', 'Teshar, Ancestor''s Apostle', 'Hieroglyphic Illumination', 'Peek', 'Cabaretti Courtyard', 'Nimbus Maze', 'Marwyn, the Nurturer', 'Sol Talisman', 'Green Sun''s Twilight', 'Boros Elite', 'Geomancer''s Gambit', 'Fetid Heath', 'Ashnod, Flesh Mechanist', 'Revitalize', 'Ardent Recruit', 'Seal of Cleansing', 'Crystal Grotto', 'Engulf the Shore', 'Reinforced Ronin', 'Vampire Hexmage', 'Apostle''s Blessing', 'Dregscape Zombie', 'Unlucky Witness', 'Haunted Mire', 'Expedite', 'Simian Sling', 'Embodiment of Fury', 'Castigate', 'Graven Lore', 'Tangled Islet', 'Gleeful Demolition', 'Grenzo, Dungeon Warden', 'Slagstorm', 'Rally the Ranks', 'Briarbridge Tracker', 'Ovika, Enigma Goliath', 'Rootbound Crag', 'Consul''s Lieutenant', 'Anguished Unmaking', 'Shalai, Voice of Plenty', 'Sin Prodder', 'Hinterland Harbor', 'Night Market Lookout', 'Arlinn Kord', 'Stoic Rebuttal', 'Kaito, Dancing Shadow', 'Fleecemane Lion', 'Goblin Anarchomancer', 'Jwari Disruption', 'Cleansing Wildfire', 'Rootwater Depths', 'Tendo Ice Bridge', 'Flooded Grove', 'Teferi, Mage of Zhalfir', 'Gruul Turf', 'Mazemind Tome', 'Kruphix''s Insight', 'Lodestone Golem', 'Timeless Dragon', 'Pyretic Ritual', 'Fireblade Charger', 'Invasion of Amonkhet', 'Invasion of Ergamon', 'Mwonvuli Acid-Moss', 'Mouth of Ronom', 'Into the Roil', 'Enchantress''s Presence', 'Incinerate', 'Shriekmaw', 'Vivid Grove', 'Savage Lands', 'Gavony Township', 'Baneful Omen', 'Runed Halo', 'Restore Balance', 'Far // Away', 'Sacred Peaks', 'Sylvan Messenger', 'Toolcraft Exemplar', 'Woodfall Primus', 'Disciple of Bolas', 'Memory Lapse', 'Tresserhorn Sinks'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.6 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Gideon''s Intervention', 'Grapple with the Past', 'Tanglepool Bridge', 'Nameless Inversion', 'Shivan Reef', 'Oona, Queen of the Fae', 'Bloodchief''s Thirst', 'Open the Armory', 'Swiftfoot Boots', 'Dreadhorde Butcher', 'Satyr Wayfinder', 'Frenetic Sliver', 'Counterflux', 'Miasmic Mummy', 'Disallow', 'Gnawing Vermin', 'Huatli, Radiant Champion', 'Brave the Sands', 'Mausoleum Secrets', 'Clifftop Retreat', 'Temple of Triumph', 'Pyretic Ritual', 'Tranquil Thicket', 'Ral, Storm Conduit', 'Champion of Wits', 'Deafening Clarion', 'Jungle Hollow', 'Yasharn, Implacable Earth', 'Tear Asunder', 'Hour of Promise', 'Gruul Turf', 'Open the Gates', 'Detention Sphere', 'Mystic Monastery', 'Bloodchief Ascension', 'Jungle Shrine', 'Thrun, Breaker of Silence', 'Melira, the Living Cure', 'Ignite Memories', 'Spectral Shift', 'Consult the Necrosages', 'Knowledge Pool', 'Golgari Guildgate', 'Union of the Third Path', 'Psychatog', 'Chittering Rats', 'Bitter Reunion', 'Fireblade Charger', 'Patchwork Automaton', 'Thraben Inspector', 'Shigeki, Jukai Visionary', 'Diabolic Tutor', 'Selesnya Guildgate', 'Izzet Guildgate', 'Zuran Orb', 'Flooded Grove', 'Putrefy', 'Notorious Throng', 'Hinterland Harbor', 'Azorius Guildgate', 'Faerie Miscreant', 'Tidehollow Sculler', 'Sunblade Samurai', 'Vraska''s Fall', 'Death Cloud', 'Temple of Abandon', 'Surrak, the Hunt Caller', 'Timely Reinforcements', 'Temple of Deceit', 'Stern Dismissal', 'Vivid Grove', 'Orcish Lumberjack', 'Guile', 'Brokers Hideout', 'Blightning', 'Thundermaw Hellkite', 'Terrarion', 'Port Town', 'Psychic Possession', 'Blue Sun''s Zenith', 'Kami of False Hope', 'Teshar, Ancestor''s Apostle', 'Drainpipe Vermin', 'Galvanic Relay', 'Think Twice', 'Riveteers Charm', 'Network Disruptor', 'Dread Wanderer', 'Eldrazi Displacer', 'Karn''s Bastion', 'Explore', 'Smoldering Marsh', 'Tezzeret, Artifice Master', 'Idyllic Beachfront', 'Dauntless Bodyguard', 'Sylvan Caryatid', 'Chief of the Foundry', 'Ephara, God of the Polis', 'Glimmerpost', 'Anticipate', 'Silver-Fur Master', 'Judge''s Familiar', 'Barter in Blood', 'Destroy Evil', 'Scab-Clan Berserker', 'Sylvan Advocate', 'Isolated Chapel', 'Phoenix Chick', 'Mind''s Desire', 'Rites of Spring', 'Dragonskull Summit', 'Magister of Worth', 'Ghost Quarter', 'Mulch', 'Scour All Possibilities', 'Boon-Bringer Valkyrie', 'Fetid Heath', 'Temple of Enlightenment', 'Gavony Township', 'Froghemoth', 'Judith, the Scourge Diva', 'Check for Traps', 'Twinshot Sniper', 'Wrench Mind', 'Ammit Eternal', 'Forbid', 'Necrogen Spellbomb', 'Arcane Sanctum', 'Flame Rift', 'Botanical Plaza', 'Mistveil Plains', 'Chamber Sentry', 'Elixir of Immortality', 'Narcomoeba', 'Ashen Rider', 'Rites of Initiation', 'Ethersworn Sphinx', 'Control Magic', 'Goblin Kaboomist', 'Dark Petition', 'Disciple of Bolas', 'Wooded Bastion', 'Rally the Peasants', 'Burst Lightning', 'Executioner''s Capsule', 'Battle of Wits', 'White Sun''s Zenith', 'Colossal Skyturtle', 'Victim of Night', 'Banishing Slash', 'Unbreakable Formation', 'Ulvenwald Hydra', 'Tresserhorn Sinks', 'Llanowar Elves', 'General''s Enforcer', 'Dismal Backwater', 'Tocasia''s Dig Site', 'Springleaf Drum', 'Scattered Groves', 'Mesa Enchantress', 'Burning of Xinye', 'Elemental Masterpiece', 'Anafenza, the Foremost', 'Volt Charge', 'Sandwurm Convergence', 'Negate', 'Purify the Grave', 'Feed the Swarm', 'Kappa Tech-Wrecker', 'Cloudshredder Sliver', 'Ancient Amphitheater', 'Haunted Mire', 'Gateway Plaza', 'Sculpted Perfection', 'Divinity of Pride', 'Gilt-Leaf Archdruid', 'Caldera Hellion', 'Rust Goliath', 'Ral, Izzet Viceroy', 'Tangled Islet', 'Ghostly Flicker', 'Soul Warden', 'Empyrial Plate', 'Kitchen Finks', 'Scrying Sheets', 'Bilious Skulldweller', 'Kitesail Freebooter', 'Blessed Alliance', 'Nimbus Maze', 'Dissipate', 'Dimir Aqueduct', 'Acidic Slime', 'Nephalia Drownyard', 'Temple of Plenty', 'Deep Analysis', 'Wildfield Borderpost', 'Arcbound Ravager', 'Shred Memory', 'Kaya, Ghost Assassin', 'Greater Gargadon', 'Graaz, Unstoppable Juggernaut', 'Cut Down', 'Precursor Golem', 'Yavimaya Iconoclast', 'Slagwoods Bridge', 'Snow-Covered Mountain', 'Experimental Synthesizer', 'Pillar of the Paruns', 'Gnat Miser', 'Stir the Grave', 'Endbringer', 'Celestial Colonnade', 'Ransack the Lab', 'Primal Command', 'Raging Ravine', 'Ponder', 'Recruitment Officer', 'Verduran Enchantress', 'Winds of Abandon', 'Sculpting Steel', 'Pore Over the Pages', 'Jace, Architect of Thought', 'Dovin''s Acuity', 'The Mending of Dominaria', 'Late to Dinner', 'Peek', 'Genesis Hydra', 'Benevolent Bodyguard', 'Lodestone Golem', 'Careful Cultivation', 'Fumigate', 'Blazing Rootwalla', 'Whispersilk Cloak', 'Baneful Omen', 'Phyrexian Unlife', 'Throne of the God-Pharaoh', 'Pharika''s Libation', 'Vraan, Executioner Thane', 'Summer Bloom', 'Obliterate', 'Skyshroud Elf', 'Chandra, Pyromaster', 'Grand Architect', 'Cremate', 'Discovery // Dispersal', 'Mikokoro, Center of the Sea', 'Fabricate', 'Mirran Crusader', 'Cloudpost', 'Maelstrom Pulse', 'High-Speed Hoverbike', 'Jace Beleren', 'Dreams of Steel and Oil', 'Ghitu Lavarunner', 'Idyllic Tutor', 'Moon-Circuit Hacker', 'Rustvale Bridge', 'Opulent Palace', 'Curiosity', 'Tamiyo, Collector of Tales', 'Ajani, Mentor of Heroes', 'Invasion of Kaladesh', 'Orim''s Chant', 'Sphere of Safety', 'Marauding Blight-Priest', 'Putrid Goblin', 'Knight of Glory', 'Kor Firewalker', 'Forging the Anchor', 'Raise the Alarm', 'Serrated Scorpion', 'Self-Assembler', 'Vapor Snag', 'Vexing Shusher', 'Touch the Spirit Realm', 'Ishkanah, Grafwidow', 'Erebos''s Intervention', 'Vampire Neonate', 'Venser, Corpse Puppet', 'Languish', 'Cabaretti Courtyard', 'Case the Joint', 'Vedalken Heretic', 'Koth, Fire of Resistance', 'Arcum''s Astrolabe', 'Frostwalk Bastion', 'Rain of Tears', 'Geyadrone Dihada', 'Jwari Disruption', 'Servo Exhibition', 'Bump in the Night', 'Halana and Alena, Partners', 'Annex Sentry', 'Precinct Captain', 'Simic Guildgate', 'Radha, Heart of Keld', 'Reinforced Ronin', 'Anafenza, Kin-Tree Spirit', 'Deprive', 'Seeker of the Way', 'Grove of the Guardian', 'Shimmerdrift Vale', 'Assemble the Legion', 'Voidwing Hybrid', 'Frost Marsh', 'Dark Ritual', 'Ayara, First of Locthwain', 'Angrath, the Flame-Chained', 'Protect the Negotiators', 'Fleecemane Lion', 'Kiora Bests the Sea God', 'Sigil of the Empty Throne', 'Chandra, Fire Artisan', 'Goblin Dark-Dwellers', 'Vryn Wingmare', 'Ghostly Pilferer', 'Ranger of Eos', 'Canopy Vista', 'Crawling Chorus', 'Revitalize', 'Ovika, Enigma Goliath', 'Doom Blade', 'Commence the Endgame', 'Elite Inquisitor', 'Bident of Thassa', 'Ramunap Excavator', 'Bloodthrone Vampire', 'Honor of the Pure', 'Scatter Ray', 'Bituminous Blast', 'Raze to the Ground', 'Knight of New Alara', 'Inevitable Betrayal', 'Corrupted Crossroads', 'Myr Battlesphere', 'Anger of the Gods', 'Grand Abolisher', 'Hissing Quagmire', 'Strike It Rich', 'Obstinate Baloth', 'Shambling Vent', 'Call of the Death-Dweller', 'Dakkon, Shadow Slayer', 'Akiri, Fearless Voyager', 'Brainstone', 'Molten Tributary', 'Rakdos Cackler', 'The Celestus', 'Arlinn Kord', 'Hornet Queen', 'Gift of Estates', 'Invisible Stalker', 'Eerie Ultimatum', 'Squadron Hawk', 'Siege Rhino', 'Quicken', 'Flaying Tendrils', 'Obscura Storefront', 'Wall of Omens', 'Graveborn Muse', 'Tidespout Tyrant', 'Stormrider Spirit', 'Temple of Silence', 'Mastermind''s Acquisition', 'Vampire Hexmage', 'Crystal Grotto', 'Nomad Outpost', 'Enchantress''s Presence', 'Stone Rain', 'Tyrant''s Choice', 'Shardless Agent', 'Tymaret, Chosen from Death', 'Obscura Charm', 'Ayli, Eternal Pilgrim', 'Voidslime', 'Devious Cover-Up', 'Altar of the Goyf', 'Loxodon Smiter', 'Mazemind Tome', 'River of Tears', 'Drossforge Bridge', 'Curious Homunculus', 'Figure of Destiny', 'Dimir Guildgate', 'Cabal Therapist', 'Far // Away', 'Glorybringer', 'Empty the Warrens', 'Supreme Will', 'Acquisitions Expert', 'Ancestral Blade', 'Nine Lives', 'Sunstrike Legionnaire', 'Unmarked Grave', 'Fertile Ground', 'Yahenni''s Expertise', 'Dark-Dweller Oracle', 'Sin Collector', 'Sigrid, God-Favored', 'Polukranos, World Eater', 'Crawling Barrens', 'Knight of the White Orchid', 'Abzan Charm', 'Return to the Ranks', 'Gutterbones', 'Veinfire Borderpost', 'Oracle of Mul Daya', 'Midnight Reaper', 'The Antiquities War', 'Hada Freeblade', 'Carnophage', 'Steel Overseer', 'Esper Charm', 'Fyndhorn Elves', 'Doomskar', 'Mulldrifter', 'Mishra''s Factory', 'Izzet Boilerworks', 'Apostle''s Blessing', 'Slaughter Pact', 'Llanowar Augur', 'Artisan of Kozilek', 'Murmuring Bosk', 'Bontu''s Last Reckoning', 'Viashino Pyromancer', 'Leonin Relic-Warder', 'Repeal', 'Kumano Faces Kakkazan', 'Nezahal, Primal Tide', 'Ashenmoor Liege', 'Grafted Butcher', 'Grave Titan', 'Darksteel Citadel', 'Altar of the Brood', 'Sylvan Library', 'Lurrus of the Dream-Den', 'Coiling Oracle', 'Convolute', 'Angel of Despair', 'Mishra''s Research Desk', 'Hero''s Downfall', 'Wasteland Strangler', 'Tuktuk the Explorer', 'Tomebound Lich', 'Out of Time', 'Thornwood Falls', 'Fiery Justice', 'Brineborn Cutthroat', 'Abiding Grace', 'Restore Balance', 'Stubborn Denial', 'Tribute to Horobi', 'Ethereal Armor', 'Basking Rootwalla', 'Thrill of Possibility', 'Tolsimir, Friend to Wolves', 'Merciless Eviction', 'Zhalfirin Shapecraft', 'Razortide Bridge', 'Felidar Cub', 'Mwonvuli Acid-Moss', 'Incinerate', 'Summary Dismissal', 'Tezzeret the Schemer', 'Settle the Wreckage', 'Wilt', 'Rule of Law', 'Fierce Empath', 'Prologue to Phyresis', 'Bloodline Keeper', 'Presence of Gond', 'Shimmer Dragon', 'Malcator, Purity Overseer', 'Saproling Migration', 'Invasion of Zendikar', 'Makeshift Mannequin', 'Gideon''s Lawkeeper', 'Chief Engineer', 'Nether Spirit', 'Vault Skirge', 'Artistic Refusal', 'Distorted Curiosity', 'Kunoros, Hound of Athreos', 'Meeting of Minds', 'Firewild Borderpost', 'Kitchen Imp', 'Kalastria Healer', 'Cabal Initiate', 'Utter End', 'Bolas''s Citadel', 'Stirring Wildwood', 'Smallpox', 'Soltari Priest', 'Icehide Golem', 'Demolition Field', 'Oath of Teferi', 'Oust', 'Eldrazi Skyspawner', 'Heartless Act', 'Reckoner''s Bargain', 'Archon of Sun''s Grace', 'Wanderwine Hub', 'Thrash // Threat', 'Gitaxian Probe', 'Wildborn Preserver', 'Gather the Pack', 'Rally the Ancestors', 'Nezumi Graverobber', 'Malakir Rebirth', 'Invoke Calamity', 'Changeling Outcast', 'Inkwell Leviathan', 'Consuming Vapors', 'Porphyry Nodes', 'Smuggler''s Copter', 'Chandra, Flamecaller', 'Into the Roil', 'Grolnok, the Omnivore', 'Fiery Temper', 'Terminus', 'Anguished Unmaking', 'Cauldron Familiar', 'Assault // Battery', 'Barbed Sextant', 'Woe Strider', 'Agonizing Remorse', 'Slogurk, the Overslime', 'Kaito, Dancing Shadow', 'Circular Logic', 'Dusk // Dawn', 'Evolving Wilds', 'Mystical Teachings', 'The Scorpion God', 'Riveteers Overlook', 'Aegis of the Gods', 'Archangel Avacyn', 'Pull from Tomorrow', 'Solemnity', 'Inscription of Ruin', 'Invasion of Regatha', 'Wood Elves', 'Disrupting Shoal', 'Graven Cairns', 'Rix Maadi Reveler', 'Weapons Trainer', 'Oona''s Grace', 'Talisman of Curiosity', 'Fetid Pools', 'Gigadrowse', 'Venser, Shaper Savant', 'Ravenous Squirrel', 'Waking the Trolls', 'Temple of Malady', 'Heliod''s Pilgrim', 'Treasure Cruise', 'Spatial Contortion', 'Master of Etherium', 'Oblivion Ring', 'Radiant Grove', 'Venerated Loxodon', 'Gleeful Demolition', 'Kambal, Consul of Allocation', 'Unlucky Witness', 'Prohibit', 'Rise // Fall', 'Bubbling Cauldron', 'Scarab Feast', 'Founding the Third Path', 'Aetherspouts', 'Epic Experiment', 'Surge of Salvation', 'Memory Lapse', 'Spectral Procession', 'Galerider Sliver', 'Drown in Ichor', 'Tezzeret''s Gambit', 'Search for Azcanta', 'Soul Snare', 'Stone Haven Outfitter', 'Of One Mind', 'Seismic Assault', 'Locket of Yesterdays', 'Squee, Goblin Nabob', 'Putrid Imp', 'Solitary Confinement', 'Raffine''s Informant', 'Dakmor Salvage', 'Sunpetal Grove', 'Priest of the Haunted Edge', 'Ashnod, Flesh Mechanist', 'Fire Prophecy', 'Dragon''s Hoard', 'Simian Sling', 'Heliod''s Intervention', 'Second Sunrise', 'Sprite Dragon', 'Silverblade Paladin', 'Doomed Traveler', 'Silverbluff Bridge', 'Sinew Sliver', 'Marble Diamond', 'Eiganjo Castle', 'Martyr of Sands', 'Bone Shards', 'Cliffside Lookout', 'Sever the Bloodline', 'Battle of Frost and Fire', 'Stupor', 'Oona''s Prowler', 'Vivid Marsh', 'Thornglint Bridge', 'King Darien XLVIII', 'Evangel of Synthesis', 'Urban Evolution', 'Odds // Ends', 'Halimar Excavator', 'Vampire Lacerator', 'Castigate', 'Corrupted Conviction', 'Fruit of Tizerus', 'Festering Newt', 'Crux of Fate', 'Increasing Ambition', 'Xerex Strobe-Knight', 'Vivid Crag', 'Earthquake', 'Bloodbraid Elf', 'Vines of Vastwood', 'Hypergenesis', 'Electrolyze', 'Nullpriest of Oblivion', 'Gadrak, the Crown-Scourge', 'Turnabout', 'Rakdos Guildgate', 'Lantern-Lit Graveyard', 'Racers'' Ring', 'Izzet Charm', 'Aetherling', 'Sunken Hollow', 'Trace of Abundance', 'Duplicant', 'Silversmote Ghoul', 'Timeless Dragon', 'Titania, Protector of Argoth', 'Misery Charm', 'Dead of Winter', 'Kiora, the Crashing Wave', 'Plated Geopede', 'Madcap Experiment', 'Cathedral of War', 'Council''s Judgment', 'Geothermal Bog', 'Haunted Fengraf', 'Abundant Harvest', 'No Escape', 'Westvale Abbey', 'The Seedcore', 'Lavaclaw Reaches', 'All That Glitters', 'Ensoul Artifact', 'Combat Thresher', 'Territorial Kavu', 'Energy Refractor', 'Archangel of Wrath', 'Cabal Ritual', 'Thassa''s Intervention', 'Kruphix''s Insight', 'Smother', 'Djinn of the Fountain', 'Gallia of the Endless Dance', 'Auriok Sunchaser', 'Flametongue Kavu', 'Platinum Angel', 'Woodfall Primus', 'Combat Research', 'Faith''s Reward', 'Rune Snag', 'Fiery Gambit', 'Throat Slitter', 'Nimble Trapfinder', 'Shrapnel Blast', 'Night Market Lookout', 'Secluded Steppe', 'Change the Equation', 'Mana Clash', 'Jor Kadeen, First Goldwarden', 'Altered Ego', 'Ruin Crab', 'Buried Ruin', 'Emmara, Soul of the Accord', 'Myr Superion', 'Green Sun''s Twilight', 'Woodland Cemetery', 'Fae of Wishes', 'Fracturing Gust', 'Valiant Changeling', 'Grim Haruspex', 'Cataclysmic Gearhulk', 'Leonin Warleader', 'Declaration in Stone', 'Elderscale Wurm', 'Xenagos, the Reveler', 'Sleight of Hand', 'Vraska, Relic Seeker', 'Search for Tomorrow', 'Consul''s Lieutenant', 'Resolute Reinforcements', 'Hard Evidence', 'Malicious Malfunction', 'Adanto Vanguard', 'Mnemonic Sphere', 'Giant Killer', 'Haunted Dead', 'Kogla, the Titan Ape', 'Arbalest Engineers', 'Kabira Takedown', 'Melira, Sylvok Outcast', 'Staff of Domination', 'Eidolon of Blossoms', 'Vampiric Rites', 'Ossification', 'Lotus Cobra', 'Silumgar, the Drifting Death', 'Sea-Dasher Octopus', 'Seething Song', 'Gather the Townsfolk', 'Bogardan Hellkite', 'Become Immense', 'Sudden Edict', 'General Ferrous Rokiric', 'Mindcrank', 'Rocco, Cabaretti Caterer', 'Tocatli Honor Guard', 'Leather Armor', 'Sire of Insanity', 'Night of Souls'' Betrayal', 'Snow-Covered Plains', 'Fight as One', 'Progenitor Exarch', 'Morsel Theft', 'Timeless Witness', 'Healer''s Hawk', 'Bitter Ordeal', 'Phyrexian Revoker', 'Krosan Grip', 'Moorland Haunt', 'Felidar Retreat', 'Yavimaya Coast', 'Bloodvial Purveyor', 'Sunlit Marsh', 'Sheoldred''s Edict', 'Exclude', 'Hypnotic Specter', 'Wizard''s Retort', 'Liliana Vess', 'Murderous Cut', 'Spirited Companion', 'Needle Spires', 'Rootbound Crag', 'Remorseful Cleric', 'Third Path Iconoclast', 'Varolz, the Scar-Striped', 'Ogre Slumlord', 'Secluded Courtyard', 'Rift Bolt', 'Rampant Growth', 'Faerie Vandal', 'Unsubstantiate', 'Argentum Masticore', 'Sol Talisman', 'Upheaval', 'Stoic Rebuttal', 'Anoint with Affliction', 'Evacuation', 'Cartel Aristocrat', 'Shadow Prophecy', 'Sylvan Scrying', 'Lazotep Chancellor', 'Demonic Bargain', 'Silent Gravestone', 'Torens, Fist of the Angels', 'Commune with Nature', 'Tendo Ice Bridge', 'Thopter Spy Network', 'Mothdust Changeling', 'Raven''s Crime', 'Frost Titan', 'Sinister Concoction', 'Nekrataal', 'Rakdos''s Return', 'Prosperous Thief', 'Decree of Justice', 'Destiny Spinner', 'Witching Well', 'Mistcutter Hydra', 'Herd Migration', 'Frantic Inventory', 'Gideon Jura', 'Yisan, the Wanderer Bard', 'Zephyr Singer', 'Choked Estuary', 'Hostage Taker', 'Runed Halo', 'Myth Realized', 'Monument to Perfection', 'Brave the Elements', 'Tooth and Nail', 'Geomancer''s Gambit', 'Glacial Fortress', 'Invasion of New Capenna', 'Angel of Serenity', 'Duress', 'Reveillark', 'Spikefield Hazard', 'Genesis Wave', 'Gift of Immortality', 'Delver of Secrets', 'Big Game Hunter', 'Vindicate', 'Orzhov Guildgate', 'Wild Cantor', 'Gloomshrieker', 'Invasion of Ergamon', 'Zombie Infestation', 'Maestros Charm', 'Aether Spellbomb', 'Lose Focus', 'Heap Doll', 'Bring the Ending', 'Silundi Vision', 'Thopter Mechanic', 'Dross Skullbomb', 'Delay', 'Tempest Djinn', 'Ambush Viper', 'Seedcradle Witch', 'Nature''s Lore', 'Avacyn''s Pilgrim', 'Tribute to Hunger', 'Spell Burst', 'Game Trail', 'Joint Exploration', 'Birds of Paradise', 'Might of Old Krosa', 'Approach of the Second Sun', 'Simian Spirit Guide', 'Oath of Kaya', 'Rabbit Battery', 'Mountain Valley', 'Breya''s Apprentice', 'Kemba, Kha Enduring', 'Augur of Bolas', 'Commit // Memory', 'Farseek', 'Archaeomancer', 'Faeburrow Elder', 'See Beyond', 'Triumphant Adventurer', 'Forked Bolt', 'Archpriest of Shadows', 'Stinkdrinker Bandit', 'Succumb to Temptation', 'Scuttling Doom Engine', 'Gravelgill Duo', 'Grenzo, Dungeon Warden', 'Lizard Blades', 'Invasion of Azgol', 'Eternal Scourge', 'Zur''s Weirding', 'Mindsplice Apparatus', 'Drowned Catacomb', 'Forbidden Alchemy', 'Rakdos Charm', 'Mortuary Mire', 'Maze''s End', 'Barbarian Ring', 'Wrenn''s Resolve', 'Tribal Flames', 'Postmortem Lunge', 'Argentum Armor', 'Voyaging Satyr', 'Orzhov Charm', 'Toolcraft Exemplar', 'Angel of Condemnation', 'Viscera Seer', 'Blood on the Snow', 'Yorion, Sky Nomad', 'Lavinia of the Tenth', 'Scrapwork Mutt', 'Orzhov Basilica', 'Frontier Bivouac', 'World Shaper', 'Invasion of Amonkhet', 'Goblin Bombardment', 'Kessig Wolf Run', 'Invigorate', 'Pardic Miner', 'Dryad Militant', 'Quest for the Holy Relic', 'Phyrexian Censor', 'Elves of Deep Shadow', 'Sultai Charm', 'Spellweaver Helix', 'Pain Seer', 'Black Sun''s Zenith', 'Hooting Mandrills', 'Temple of Mystery', 'Vampire Nighthawk', 'Etherium Sculptor', 'Helm of the Host', 'Harmonize', 'Cleansing Wildfire', 'Dead Weight', 'Quiet Speculation', 'Thaumatic Compass', 'Nimble Larcenist', 'Blood Artist', 'Dying to Serve', 'Empyrial Armor', 'Darksteel Colossus', 'Hesitation', 'Talisman of Unity', 'Inscribed Tablet', 'Briarbridge Tracker', 'Dregscape Zombie', 'Bogbrew Witch', 'Garruk Wildspeaker', 'Sphinx''s Herald', 'Forgotten Cave', 'Perilous Myr', 'Hieroglyphic Illumination', 'Rise and Shine', 'Fieldmist Borderpost', 'Circuit Mender', 'Solemn Simulacrum', 'Mina and Denn, Wildborn', 'Chain Lightning', 'Grave Scrabbler', 'Tendrils of Agony', 'Go for the Throat', 'Voltage Surge', 'Fact or Fiction', 'Sacred Peaks', 'Reflector Mage', 'Ivory Tower', 'Commune with Spirits', 'Disciple of the Vault', 'Curse of Exhaustion', 'Aetherblade Agent', 'Terastodon', 'Wandering Fumarole', 'Mistvault Bridge', 'Bastion of Remembrance', 'Tilling Treefolk', 'Crack the Earth', 'Dream Trawler', 'Frantic Search', 'Blade Splicer', 'Stromkirk Noble', 'Abundant Growth', 'Marwyn, the Nurturer', 'The Underworld Cookbook', 'Mirror Entity', 'Gruul Spellbreaker', 'Price of Progress', 'Valakut Exploration', 'Lagrella, the Magpie', 'Ornithopter', 'Snow-Covered Swamp', 'Thragtusk', 'Elvish Mystic', 'Drowner of Hope', 'Sin Prodder', 'Kjeldoran Outpost', 'Dispatch', 'Ghostfire Blade', 'Groundswell', 'Collected Conjuring', 'Karumonix, the Rat King', 'Floriferous Vinewall', 'Repudiate // Replicate', 'Drowned Rusalka', 'Lightning Spear', 'Dimensional Infiltrator', 'Nissa, Worldwaker', 'Rishkar, Peema Renegade', 'Experimental Augury', 'Rotting Rats', 'Abyssal Persecutor', 'Nested Shambler', 'Golgari Rot Farm', 'Chaotic Transformation', 'Jukai Naturalist', 'Recurring Nightmare', 'Ancient Ziggurat', 'Hope of Ghirapur', 'Mistvein Borderpost', 'Lost Legacy', 'Commune with the Gods', 'Ichorclaw Myr', 'Possibility Storm', 'Kemba, Kha Regent', 'Steppe Lynx', 'Wrath of God', 'Midnight Guard', 'Call to the Grave', 'Cryptic Caves', 'Murderous Redcap', 'Pyrite Spellbomb', 'Leonin Arbiter', 'Demigod of Revenge', 'Mindslaver', 'Kher Keep', 'Knight of the Reliquary', 'Sheltered Thicket', 'Unctus, Grand Metatect', 'Duneblast', 'Mouth of Ronom', 'Embodiment of Fury', 'Lingering Souls', 'Shizo, Death''s Storehouse', 'Kor Skyfisher', 'Goblin Electromancer', 'Terminate', 'Divest', 'Boreal Shelf', 'Luminarch Ascension', 'Obzedat, Ghost Council', 'Hyena Umbra', 'Basilisk Collar', 'Slagstorm', 'Marit Lage''s Slumber', 'Seal of Fire', 'Sandsteppe Citadel', 'Saffi Eriksdotter', 'Folio of Fancies', 'Tolarian Terror', 'Kozilek''s Predator', 'Ground Seal', 'Desperate Ritual', 'Moderation', 'Akoum Hellhound', 'Serra Ascendant', 'Restoration Angel', 'Lay Down Arms', 'Draugr Necromancer', 'Pyroclasm', 'Nissa, Steward of Elements', 'Forsake the Worldly', 'Llanowar Tribe', 'Elspeth Conquers Death', 'Overgrowth', 'Devil''s Play', 'Memoricide', 'Pack Rat', 'Din of the Fireherd', 'Elvish Rejuvenator', 'Genesis Ultimatum', 'Glimpse of Tomorrow', 'Otherworldly Journey', 'Carven Caryatid', 'Teferi, Mage of Zhalfir', 'Kefnet the Mindful', 'Jokulhaups', 'Arguel''s Blood Fast', 'Bubbling Muck', 'Vraska''s Contempt', 'Mistblade Shinobi', 'Seal of Removal', 'Skyclave Shade', 'Herald of the Pantheon', 'True Believer', 'Sins of the Past', 'Metalwork Colossus', 'Terramorphic Expanse', 'Phyrexian Dreadnought', 'Ally Encampment', 'Swooping Lookout', 'Arch of Orazca', 'Boros Guildgate', 'Concealing Curtains', 'Wonder', 'Canyon Slough', 'Time of Need', 'Sea Gate Oracle', 'Sweltering Suns', 'Consume the Meek', 'Vault of the Archangel', 'Dokuchi Silencer', 'Oracle of Tragedy', 'Disenchant', 'Universal Automaton', 'Yawgmoth''s Bargain', 'Dead // Gone', 'Vadrik, Astral Archmage', 'Vessel of Nascency', 'Ancient Stirrings', 'Cathartic Reunion', 'Armored Scrapgorger', 'Gruul Guildgate', 'Vigor', 'Savage Lands', 'Teneb, the Harvester', 'Ulamog''s Crusher', 'Stoke the Flames', 'Blightbelly Rat', 'Condemn', 'Norn''s Inquisitor', 'Dire-Strain Rampage', 'Pharika''s Cure', 'Glistener Elf', 'Greater Tanuki', 'Fallaji Archaeologist', 'Farhaven Elf', 'Hall of Oracles', 'Godo, Bandit Warlord', 'Sarkhan the Masterless', 'Shriekmaw', 'Sterling Grove', 'Stinkweed Imp', 'Brain Freeze', 'Herd Baloth', 'Falkenrath Pit Fighter', 'Demonic Dread', 'Angel of Grace', 'Graven Lore', 'Sign in Blood', 'Master of Death', 'Sulfur Falls', 'Syphon Life', 'Tangle', 'Caves of Koilos', 'Moment of Truth', 'Scrapheap Scrounger', 'Worship', 'Ertai''s Scorn', 'Fade from Memory', 'Tectonic Edge', 'Battlefield Forge', 'Stasis Snare', 'The Flame of Keld', 'Hanweir Garrison', 'Shard Volley', 'Deep Forest Hermit', 'Ruric Thar, the Unbowed', 'Azorius Charm', 'Scrabbling Claws', 'Unburial Rites', 'Erebos, Bleak-Hearted', 'Oni-Cult Anvil', 'Silumgar''s Scorn', 'Nightscape Familiar', 'Wing Commando', 'Weathered Wayfarer', 'Faithless Salvaging', 'Corpse Cur', 'Impulse', 'Contaminated Aquifer', 'Fangren Marauder', 'Big Score', 'Lochmere Serpent', 'Grand Arbiter Augustin IV', 'Skirk Prospector', 'Dread Return', 'Hideous End', 'Phantasmal Image', 'Wayward Guide-Beast', 'Ulcerate', 'Diffusion Sliver', 'Elas il-Kor, Sadistic Pilgrim', 'Ajani, Adversary of Tyrants', 'Nimble Obstructionist', 'Pillage', 'Mirage Mirror', 'Ardent Recruit', 'Prophetic Prism', 'Into the Story', 'Arbor Elf', 'Predatory Sliver', 'Dark Prophecy', 'Cultivate', 'Nevermore', 'Venser, the Sojourner', 'Glamerdye', 'Glint-Sleeve Siphoner', 'Fearless Fledgling', 'Jwari Shapeshifter', 'Mesmeric Fiend', 'Sarkhan, the Dragonspeaker', 'Unholy Heat', 'Goldmire Bridge', 'Dawn of Hope', 'Bedlam Reveler', 'Resurgent Belief', 'Sorin, Vengeful Bloodlord', 'Kazandu Blademaster', 'Tainted Indulgence', 'Shape Anew', 'Seal of Cleansing', 'Drake Haven', 'Day of Judgment', 'Shalai, Voice of Plenty', 'Expedition Envoy', 'Bloodsoaked Champion', 'Blanchwood Prowler', 'Alms of the Vein', 'Engulf the Shore', 'Wolfbriar Elemental', 'Ivy Lane Denizen', 'Lightning Strike', 'Elvish Visionary', 'Elvish Archdruid', 'Voldaren Pariah', 'Llanowar Mentor', 'Tavern Scoundrel', 'Pariah', 'Spell Pierce', 'Mana Leak', 'Thawing Glaciers', 'Blight Mamba'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.6, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Archon of Sun''s Grace', 'Hypergenesis', 'Nissa, Steward of Elements', 'The Flame of Keld', 'Aether Spellbomb', 'Mesa Enchantress', 'Destroy Evil', 'Stoke the Flames', 'Terrarion', 'Tendrils of Agony', 'Farseek', 'Vigor', 'Nimbus Maze', 'Guildmages'' Forum', 'Emmara, Soul of the Accord', 'Malcator, Purity Overseer', 'Frost Marsh', 'Blanchwood Prowler', 'Briarbridge Tracker', 'White Sun''s Zenith', 'Oona, Queen of the Fae', 'Resurgent Belief', 'Runed Halo', 'Unlucky Witness', 'Kaito, Dancing Shadow', 'Sacred Peaks', 'Biting-Palm Ninja', 'Archpriest of Shadows', 'Dreams of Steel and Oil', 'Goblin Kaboomist', 'Azorius Guildgate', 'Case the Joint', 'Scour All Possibilities', 'Heap Doll', 'Seedcradle Witch', 'Kaya, Ghost Assassin', 'River of Tears', 'Possibility Storm', 'Sultai Charm', 'Wood Elves', 'Dream Trawler', 'Rakdos Charm', 'Unburial Rites', 'Artistic Refusal', 'Raven''s Crime', 'Serrated Scorpion', 'Esper Charm', 'Gather the Townsfolk', 'Rites of Spring', 'Greater Tanuki', 'Inscription of Ruin', 'Rain of Tears', 'Malicious Malfunction', 'Geomancer''s Gambit', 'Rustvale Bridge', 'Raging Ravine', 'Glacial Fortress', 'Titania, Protector of Argoth', 'Dispatch', 'Huatli, Radiant Champion', 'Dreadhorde Butcher', 'True Believer', 'Blessed Alliance', 'Syphon Life', 'Arguel''s Blood Fast', 'Lotus Cobra', 'Dragonskull Summit', 'Forbid', 'Anafenza, the Foremost', 'Raise the Alarm', 'Mistvault Bridge', 'Burning of Xinye', 'Elves of Deep Shadow', 'Approach of the Second Sun', 'Rakdos Cackler', 'Pyretic Ritual', 'Engulf the Shore', 'Fieldmist Borderpost', 'Invasion of Kylem', 'Kogla, the Titan Ape', 'Forgotten Cave', 'Slagstorm', 'Bloodvial Purveyor', 'Assault // Battery', 'Karumonix, the Rat King', 'Grand Arbiter Augustin IV', 'Impulse', 'Luminarch Ascension', 'Shalai, Voice of Plenty', 'Nullpriest of Oblivion', 'Groundswell', 'Dread Return', 'Secluded Steppe', 'Ancient Stirrings', 'Verduran Enchantress', 'Progenitor Exarch', 'Ashnod, Flesh Mechanist', 'Wizard''s Retort', 'Oracle of Mul Daya', 'Port Town', 'Mindsplice Apparatus', 'Viashino Pyromancer', 'Rakdos''s Return', 'Upheaval', 'Lavaclaw Reaches', 'Shimmerdrift Vale', 'Snow-Covered Swamp', 'Goblin Electromancer', 'Dauntless Bodyguard', 'Jungle Shrine', 'Temple of Malady', 'Augur of Bolas', 'Explore', 'Combat Thresher', 'Nezumi Graverobber', 'Prosperous Thief', 'Dovin''s Acuity', 'Moorland Haunt', 'Metalwork Colossus', 'Kemba, Kha Enduring', 'Erebos, Bleak-Hearted', 'Shrapnel Blast', 'Goldmire Bridge', 'Ajani, Adversary of Tyrants', 'Voidwing Hybrid', 'Aetherspouts', 'Dissipate', 'Divest', 'Crawling Barrens', 'Restoration Angel', 'Rise // Fall', 'Rally the Ancestors', 'Nezahal, Primal Tide', 'Ghostly Flicker', 'Hyena Umbra', 'Eldrazi Displacer', 'Elvish Mystic', 'Vampiric Rites', 'Fabricate', 'Drowned Rusalka', 'No Escape', 'Kiora Bests the Sea God', 'Maze''s End', 'Pillar of the Paruns', 'Flaying Tendrils', 'Genesis Hydra', 'Faerie Vandal', 'Helm of the Host', 'Ral, Izzet Viceroy', 'Ghostfire Blade', 'Fearless Fledgling', 'Hada Freeblade', 'Llanowar Elves', 'Stormfist Crusader', 'Vraska''s Contempt', 'Shadow Prophecy', 'Pyrite Spellbomb', 'Vivid Marsh', 'Divinity of Pride', 'Fetid Heath', 'Vampire Hexmage', 'Nine Lives', 'Crack the Earth', 'Rocco, Cabaretti Caterer', 'Might of Old Krosa', 'Change the Equation', 'Bitter Ordeal', 'Precursor Golem', 'Herd Migration', 'Fireblade Charger', 'Stubborn Denial', 'Vivid Grove', 'Jwari Shapeshifter', 'Magister of Worth', 'Lazotep Chancellor', 'Gutterbones', 'Yahenni''s Expertise', 'Mouth of Ronom', 'Patchwork Automaton', 'Slaughter Pact', 'Voldaren Pariah', 'Woodland Cemetery', 'Commune with the Gods', 'Thrun, Breaker of Silence', 'Combat Research', 'Vraan, Executioner Thane', 'Circular Logic', 'Venser, the Sojourner', 'Thundermaw Hellkite', 'Go for the Throat', 'Doomskar', 'Shambling Vent', 'Arch of Orazca', 'Elixir of Immortality', 'Buried Ruin', 'High-Speed Hoverbike', 'Prophetic Prism', 'Day of Judgment', 'Wayward Guide-Beast', 'Shizo, Death''s Storehouse', 'Sylvan Scrying', 'Master of Etherium', 'Angel of Despair', 'Judith, the Scourge Diva', 'Cauldron Familiar', 'Gideon''s Lawkeeper', 'Kabira Takedown', 'Epic Experiment', 'Unctus, Grand Metatect', 'Languish', 'Bloodline Keeper', 'Hooting Mandrills', 'Elas il-Kor, Sadistic Pilgrim', 'Myr Superion', 'Wing Commando', 'Remorseful Cleric', 'Stupor', 'Armored Scrapgorger', 'Victim of Night', 'Ethersworn Sphinx', 'The Seedcore', 'Tocatli Honor Guard', 'Timeless Dragon', 'Pardic Miner', 'Brave the Sands', 'Kunoros, Hound of Athreos', 'Doom Blade', 'Chittering Rats', 'Tezzeret''s Gambit', 'Botanical Plaza', 'Sorin, Vengeful Bloodlord', 'Kiora, the Crashing Wave', 'Cloudshredder Sliver', 'Smallpox', 'Gavony Township', 'Desperate Ritual', 'Talisman of Unity', 'Pharika''s Libation', 'Ardent Recruit', 'Thopter Mechanic', 'Goblin Dark-Dwellers', 'Inkwell Leviathan', 'Temple of Mystery', 'Recruitment Officer', 'Mistvein Borderpost', 'Shriekmaw', 'Sterling Grove', 'Greater Gargadon', 'Savage Lands', 'Aegis of the Gods', 'Dusk // Dawn', 'Blazing Rootwalla', 'Choked Estuary', 'Big Game Hunter', 'Cataclysmic Gearhulk', 'Summary Dismissal', 'Cabaretti Courtyard', 'Smother', 'Dimir Guildgate', 'Thassa''s Intervention', 'Idyllic Tutor', 'Alms of the Vein', 'Into the Story', 'Tangled Islet', 'Vraska''s Fall', 'Froghemoth', 'Karn''s Bastion', 'Sandwurm Convergence', 'Crystal Grotto', 'Scrapheap Scrounger', 'Nimble Trapfinder', 'Dread Wanderer', 'Disciple of Bolas', 'Thaumatic Compass', 'Chandra, Pyromaster', 'Spectral Shift', 'Death Cloud', 'Vessel of Nascency', 'Genesis Wave', 'Makeshift Mannequin', 'Trace of Abundance', 'Torens, Fist of the Angels', 'Peek', 'Wall of Omens', 'Big Score', 'Faith''s Reward', 'Corpse Cur', 'Fyndhorn Elves', 'Nimble Obstructionist', 'Devious Cover-Up', 'Gateway Plaza', 'Darksteel Citadel', 'Duneblast', 'Shigeki, Jukai Visionary', 'Xenagos, the Reveler', 'Bone Shards', 'Vault of the Archangel', 'Isolated Chapel', 'Vines of Vastwood', 'Spikefield Hazard', 'Chaotic Transformation', 'Adanto Vanguard', 'Ral, Storm Conduit', 'Wolfbriar Elemental', 'Grolnok, the Omnivore', 'Silent Gravestone', 'Protect the Negotiators', 'Angel of Condemnation', 'Jukai Naturalist', 'Psychic Possession', 'Frostwalk Bastion', 'Tear Asunder', 'The Scorpion God', 'Mirror Entity', 'Spell Pierce', 'Chain Lightning', 'Genesis Ultimatum', 'Memory Lapse', 'Bolas''s Citadel', 'Boreal Shelf', 'Bitter Reunion', 'Saproling Migration', 'Molten Tributary', 'Phyrexian Unlife', 'Folio of Fancies', 'Fertile Ground', 'Ajani, Mentor of Heroes', 'Akiri, Fearless Voyager', 'Ephara, God of the Polis', 'Invisible Stalker', 'Skirk Prospector', 'Chief of the Scale', 'Murderous Cut', 'Joint Exploration', 'Caldera Hellion', 'Bring the Ending', 'Stirring Wildwood', 'Hieroglyphic Illumination', 'Dead // Gone', 'Diabolic Tutor', 'Gnat Miser', 'Doomed Traveler', 'Fetid Pools', 'Concealing Curtains', 'Veinfire Borderpost', 'Kitchen Imp', 'Dark Prophecy', 'Sorcerer''s Wand', 'Throne of the God-Pharaoh', 'Triumphant Adventurer', 'Bloodsoaked Champion', 'Miasmic Mummy', 'Winds of Abandon', 'Smoldering Marsh', 'Commune with Spirits', 'Geothermal Bog', 'Platinum Angel', 'Snow-Covered Plains', 'Felidar Retreat', 'Baneful Omen', 'Shard Volley', 'Perilous Myr', 'Sunlit Marsh', 'Kor Skyfisher', 'Spatial Contortion', 'Ignite Memories', 'Brokers Hideout', 'Sculpting Steel', 'Halana and Alena, Partners', 'Terminate', 'Soul Warden', 'Open the Armory', 'Ensoul Artifact', 'Ayara, First of Locthwain', 'World Shaper', 'Invasion of Kaladesh', 'Mikokoro, Center of the Sea', 'Ossification', 'Kitesail Freebooter', 'Tamiyo, Collector of Tales', 'Disrupting Shoal', 'Altered Ego', 'Geyadrone Dihada', 'Tocasia''s Dig Site', 'Arcane Sanctum', 'Disciple of the Vault', 'Cleansing Wildfire', 'Fact or Fiction', 'Counterflux', 'Tectonic Edge', 'Frantic Search', 'Boon-Bringer Valkyrie', 'Murderous Redcap', 'Knight of Glory', 'Eiganjo Castle', 'Archangel of Wrath', 'Mystic Monastery', 'Flesh Reaver', 'Consult the Necrosages', 'Seismic Assault', 'Bump in the Night', 'Ruins of Trokair', 'Unsubstantiate', 'Tezzeret the Schemer', 'Hour of Promise', 'Crux of Fate', 'Izzet Charm', 'Myr Battlesphere', 'Knight of the Reliquary', 'Stinkweed Imp', 'Forsake the Worldly', 'Banishing Slash', 'Pain Seer', 'Healer''s Hawk', 'Jace Beleren', 'Repeal', 'Ancient Amphitheater', 'Vampire Lacerator', 'Etherium Sculptor', 'Fiery Gambit', 'Empyrial Armor', 'Rotting Rats', 'Quiet Speculation', 'Plated Geopede', 'Ghost Quarter', 'Monument to Perfection', 'Llanowar Augur', 'Zuran Orb', 'Aetherblade Agent', 'Kemba, Kha Regent', 'Otherworldly Journey', 'Sea Gate Oracle', 'Rootbound Crag', 'Temple of Plenty', 'Ayli, Eternal Pilgrim', 'Drowned Catacomb', 'Embodiment of Fury', 'Commune with Nature', 'Apostle''s Blessing', 'Ashen Rider', 'Thousand-Faced Shadow', 'Floriferous Vinewall', 'Tuktuk the Explorer', 'Yasharn, Implacable Earth', 'Unmarked Grave', 'Revitalize', 'Glint-Sleeve Siphoner', 'Gruul Turf', 'Brave the Elements', 'Silverbluff Bridge', 'Herd Baloth', 'Dokuchi Silencer', 'Sin Prodder', 'Goblin Bombardment', 'Sylvan Caryatid', 'Wildfield Borderpost', 'Kumano Faces Kakkazan', 'Rune Snag', 'Zombie Infestation', 'Dead Weight', 'Glimmerpost', 'Raze to the Ground', 'Riveteers Charm', 'Abyssal Persecutor', 'Dregscape Zombie', 'Prohibit', 'Sol Talisman', 'Moon-Circuit Hacker', 'Cremate', 'Malakir Rebirth', 'Hinterland Harbor', 'Fallen Shinobi', 'Tyrant''s Choice', 'Vedalken Heretic', 'Flametongue Kavu', 'Orcish Lumberjack', 'Pariah', 'Boros Guildgate', 'Abiding Grace', 'Annex Sentry', 'Firewild Borderpost', 'Teshar, Ancestor''s Apostle', 'Expedition Envoy', 'Ivy Lane Denizen', 'Touch the Spirit Realm', 'Ghostly Pilferer', 'Vexing Shusher', 'Galvanic Relay', 'Tresserhorn Sinks', 'Smuggler''s Copter', 'Demonic Bargain', 'Demolition Field', 'Knowledge Pool', 'Reinforced Ronin', 'Mishra''s Research Desk', 'Nimble Larcenist', 'Timeless Witness', 'Oracle of Tragedy', 'Founding the Third Path', 'Eternal Scourge', 'Weathered Wayfarer', 'Squee, Goblin Nabob', 'Glorybringer', 'Phantasmal Image', 'Dead of Winter', 'Gideon Jura', 'Herald of the Pantheon', 'Time of Need', 'Earthquake', 'Experimental Augury', 'Stormrider Spirit', 'Wonder', 'Council''s Judgment', 'See Beyond', 'Into the Roil', 'Koth, Fire of Resistance', 'Cloudpost', 'Notorious Throng', 'Elite Inquisitor', 'Jace, Architect of Thought', 'Faerie Miscreant', 'Sphere of Safety', 'Glistener Elf', 'Drainpipe Vermin', 'Prologue to Phyresis', 'Thornglint Bridge', 'Oath of Teferi', 'Stone Haven Outfitter', 'Settle the Wreckage', 'Honor of the Pure', 'Pyroclasm', 'Ancient Ziggurat', 'Bloodchief''s Thirst', 'Nomad Outpost', 'Graaz, Unstoppable Juggernaut', 'Terastodon', 'Jokulhaups', 'Cabal Initiate', 'Kozilek''s Predator', 'Djinn of the Fountain', 'Kalastria Healer', 'Tattermunge Maniac', 'Jor Kadeen, First Goldwarden', 'Seething Song', 'Surrak, the Hunt Caller', 'Hornet Queen', 'Mulch', 'Acquisitions Expert', 'Yavimaya Iconoclast', 'Stern Dismissal', 'Mishra''s Factory', 'Abzan Charm', 'Empyrial Plate', 'Detention Sphere', 'Krosan Grip', 'Servo Exhibition', 'Grave Scrabbler', 'Mystical Teachings', 'Duress', 'Bloodthrone Vampire', 'Shardless Agent', 'Fire Prophecy', 'Orzhov Basilica', 'Stinkdrinker Bandit', 'Electrolyze', 'Opulent Palace', 'Nekrataal', 'Disenchant', 'Blue Sun''s Zenith', 'Weapons Trainer', 'Gravelgill Duo', 'Soltari Priest', 'Vraska, Relic Seeker', 'Hall of Oracles', 'Twinshot Sniper', 'Oath of Kaya', 'Vampire Neonate', 'Convolute', 'Ammit Eternal', 'Lightning Strike', 'Ghitu Lavarunner', 'Bogardan Hellkite', 'Mortuary Mire', 'The Mending of Dominaria', 'Presence of Gond', 'Tooth and Nail', 'Rule of Law', 'Elspeth Conquers Death', 'Staff of Domination', 'Venerated Loxodon', 'Sea-Dasher Octopus', 'Giant Killer', 'Leonin Arbiter', 'Mirran Crusader', 'Llanowar Mentor', 'Mulldrifter', 'Sleight of Hand', 'Radha, Heart of Keld', 'Fierce Empath', 'Midnight Reaper', 'Thornwood Falls', 'Porphyry Nodes', 'Swiftfoot Boots', 'Putrid Goblin', 'Voidslime', 'Chief of the Foundry', 'Ground Seal', 'Thopter Spy Network', 'Canopy Vista', 'Hesitation', 'Elvish Archdruid', 'Tanglepool Bridge', 'Godo, Bandit Warlord', 'Secluded Courtyard', 'Llanowar Tribe', 'Lightning Spear', 'Silversmote Ghoul', 'Ishkanah, Grafwidow', 'Narcomoeba', 'Silumgar''s Scorn', 'Tranquil Thicket', 'Nameless Inversion', 'Blade Splicer', 'Dakmor Salvage', 'Moderation', 'Ponder', 'Quicken', 'Frost Titan', 'The Antiquities War', 'Search for Azcanta', 'Archangel Avacyn', 'Valiant Changeling', 'Gruul Spellbreaker', 'Ally Encampment', 'Nether Spirit', 'Wasteland Strangler', 'Unbreakable Formation', 'Psychatog', 'Leonin Warleader', 'Succumb to Temptation', 'Varolz, the Scar-Striped', 'Ravenous Squirrel', 'Careful Cultivation', 'King Darien XLVIII', 'Fumigate', 'Voltage Surge', 'Relic Seeker', 'Kefnet the Mindful', 'Vivid Crag', 'Dying to Serve', 'Gitaxian Probe', 'Ride Down', 'Mountain Valley', 'Hero''s Downfall', 'Reckoner''s Bargain', 'Benevolent Bodyguard', 'Late to Dinner', 'Demigod of Revenge', 'Tendo Ice Bridge', 'Cultivate', 'Chandra, Fire Artisan', 'Rix Maadi Reveler', 'Scab-Clan Berserker', 'Disallow', 'Cryptic Caves', 'Racers'' Ring', 'Ambush Viper', 'Fangren Marauder', 'Gilt-Leaf Archdruid', 'Drowner of Hope', 'Battlefield Forge', 'Thrash // Threat', 'Pore Over the Pages', 'Ichorclaw Myr', 'Contaminated Aquifer', 'Memoricide', 'Volt Charge', 'Jwari Disruption', 'Avacyn''s Pilgrim', 'Swooping Lookout', 'Battle of Wits', 'Mana Clash', 'Call to the Grave', 'Grand Abolisher', 'Think Twice', 'Shimmer Dragon', 'Cabal Therapist', 'Soul Snare', 'Cathartic Reunion', 'Martyr of Sands', 'Curse of Exhaustion', 'Sarkhan, the Dragonspeaker', 'Sheoldred''s Edict', 'Seeker of the Way', 'Endbringer', 'Rites of Initiation', 'Thawing Glaciers', 'Silundi Vision', 'Maestros Charm', 'Ancestral Blade', 'Teferi, Mage of Zhalfir', 'Leather Armor', 'Coiling Oracle', 'Hanweir Garrison', 'Izzet Guildgate', 'Vadrik, Astral Archmage', 'Seal of Fire', 'Grave Titan', 'Xerex Strobe-Knight', 'Corrupted Crossroads', 'Temple of Enlightenment', 'Eerie Ultimatum', 'Sylvan Advocate', 'Thragtusk', 'Commit // Memory', 'Fae of Wishes', 'Enchantress''s Presence', 'Deprive', 'Tangle', 'Marwyn, the Nurturer', 'Sandsteppe Citadel', 'Sylvan Library', 'Throat Slitter', 'Turnabout', 'Exclude', 'Shivan Reef', 'Kjeldoran Outpost', 'Predatory Sliver', 'Famished Paladin', 'Anafenza, Kin-Tree Spirit', 'Dimir Aqueduct', 'Blood Artist', 'Open the Gates', 'Oona''s Prowler', 'Feed the Swarm', 'Bogbrew Witch', 'Yawgmoth''s Bargain', 'Temple of Abandon', 'Woe Strider', 'Solemn Simulacrum', 'Negate', 'Mausoleum Secrets', 'Obzedat, Ghost Council', 'Gift of Immortality', 'Brineborn Cutthroat', 'Gather the Pack', 'Birds of Paradise', 'Witching Well', 'Empty the Warrens', 'Nissa, Worldwaker', 'Scattered Groves', 'Mardu Charm', 'Leonin Relic-Warder', 'Talisman of Curiosity', 'Lantern-Lit Graveyard', 'Thrill of Possibility', 'Night of Souls'' Betrayal', 'Orzhov Guildgate', 'Skyshroud Elf', 'Din of the Fireherd', 'Heliod''s Pilgrim', 'Arlinn Kord', 'Barter in Blood', 'Knight of New Alara', 'Discovery // Dispersal', 'Scarab Feast', 'Oust', 'Corrupted Conviction', 'Figure of Destiny', 'Festering Newt', 'Razortide Bridge', 'Anticipate', 'Cartel Aristocrat', 'Rust Goliath', 'Teneb, the Harvester', 'Recurring Nightmare', 'Chief Engineer', 'Guile', 'Gnawing Vermin', 'Sculpted Perfection', 'Sunpetal Grove', 'Faithless Salvaging', 'Vault Skirge', 'Diffusion Sliver', 'Tidehollow Sculler', 'Worship', 'Mazemind Tome', 'Kher Keep', 'Bident of Thassa', 'Kazandu Blademaster', 'Deep Forest Hermit', 'Deep Analysis', 'Darksteel Colossus', 'Orim''s Chant', 'Aetherling', 'Surge of Salvation', 'Tribal Flames', 'Altar of the Brood', 'Rise and Shine', 'Phyrexian Revoker', 'Chandra, Flamecaller', 'Supreme Will', 'Invoke Calamity', 'Precinct Captain', 'Gallia of the Endless Dance', 'Battle of Frost and Fire', 'Riveteers Overlook', 'Gloomshrieker', 'Mistveil Plains', 'Kitchen Finks', 'Lost Legacy', 'Invasion of Azgol', 'Frenetic Sliver', 'Breya''s Apprentice', 'Slogurk, the Overslime', 'Erebos''s Intervention', 'Energy Refractor', 'Jungle Hollow', 'Eidolon of Blossoms', 'Green Sun''s Twilight', 'Valakut Exploration', 'Carnophage', 'Changeling Outcast', 'Urban Evolution', 'Whispersilk Cloak', 'Blight Mamba', 'Lose Focus', 'Grafted Butcher', 'The Celestus', 'Flame Rift', 'Invasion of Ergamon', 'Crawling Chorus', 'Ashenmoor Liege', 'Sinister Concoction', 'Treasure Cruise', 'Sunken Hollow', 'Check for Traps', 'Temple of Silence', 'Nested Shambler', 'Purify the Grave', 'Fracturing Gust', 'Dark-Dweller Oracle', 'Mirage Mirror', 'Obstinate Baloth', 'Arbor Elf', 'Assemble the Legion', 'Night Market Lookout', 'Ruin Crab', 'Madcap Experiment', 'Liquimetal Torque', 'Faeburrow Elder', 'Raffine''s Informant', 'Black Sun''s Zenith', 'Evolving Wilds', 'Cathedral of War', 'Grim Haruspex', 'Wandering Fumarole', 'Nightscape Familiar', 'Phoenix Chick', 'Dark Ritual', 'Brainstone', 'Meeting of Minds', 'Poet''s Quill', 'Heartless Act', 'Vapor Snag', 'Midnight Guard', 'Distorted Curiosity', 'Grenzo, Dungeon Warden', 'Myth Realized', 'Mina and Denn, Wildborn', 'Delay', 'Blood on the Snow', 'Gleeful Demolition', 'Rishkar, Peema Renegade', 'Sarkhan the Masterless', 'Skyclave Shade', 'Stromkirk Noble', 'Bontu''s Last Reckoning', 'Wilt', 'Lay Down Arms', 'Forging the Anchor', 'Scrapwork Mutt', 'Judge''s Familiar', 'Forked Bolt', 'Resolute Reinforcements', 'Invasion of Regatha', 'Fleecemane Lion', 'Orzhov Charm', 'Locket of Yesterdays', 'Ertai''s Scorn', 'Tilling Treefolk', 'Altar of the Goyf', 'Mwonvuli Acid-Moss', 'Bloodchief Ascension', 'Mothdust Changeling', 'Forbidden Alchemy', 'Ransack the Lab', 'Frontier Bivouac', 'Yisan, the Wanderer Bard', 'Norn''s Inquisitor', 'Network Disruptor', 'Tavern Scoundrel', 'Canyon Slough', 'Delver of Secrets', 'Galerider Sliver', 'Dismal Backwater', 'Pack Rat', 'Unholy Heat', 'Consul''s Lieutenant', 'Doom Foretold', 'Blightning', 'Mindslaver', 'Zur''s Weirding', 'Satyr Wayfinder', 'Circuit Mender', 'Smokestack', 'Rally the Peasants', 'Viscera Seer', 'Rift Bolt', 'Arcbound Ravager', 'Mastermind''s Acquisition', 'Spellweaver Helix', 'Evacuation', 'Dawn of Hope', 'Angrath, the Flame-Chained', 'Vampire Nighthawk', 'Grapple with the Past', 'Cliffside Lookout', 'Demonic Dread', 'The Underworld Cookbook', 'Lurrus of the Dream-Den', 'Eldrazi Skyspawner', 'Caves of Koilos', 'Golgari Rot Farm', 'Curiosity', 'Haunted Fengraf', 'Kargan Warleader', 'Burst Lightning', 'Executioner''s Capsule', 'Mindcrank', 'Deafening Clarion', 'Dark Petition', 'Sire of Insanity', 'Acidic Slime', 'Call of the Death-Dweller', 'Cut Down', 'Glimpse of Tomorrow', 'Bilious Skulldweller', 'Toolcraft Exemplar', 'Sigrid, God-Favored', 'Radiant Grove', 'Snow-Covered Mountain', 'The Birth of Meletis', 'Utter End', 'Ingenious Infiltrator', 'Reveillark', 'Experimental Synthesizer', 'Garruk Wildspeaker', 'Timely Reinforcements', 'Artisan of Kozilek', 'Wildborn Preserver', 'Temple of Triumph', 'Commence the Endgame', 'Heliod''s Intervention', 'Territorial Kavu', 'Venser, Shaper Savant', 'Hard Evidence', 'Scuttling Doom Engine', 'Sever the Bloodline', 'Graven Lore', 'Summer Bloom', 'Ruric Thar, the Unbowed', 'Duplicant', 'Sheltered Thicket', 'Wild Cantor', 'Kruphix''s Insight', 'Ivory Tower', 'Angel of Serenity', 'Elemental Masterpiece', 'Braids, Cabal Minion', 'Oona''s Grace', 'Argentum Masticore', 'Invasion of Amonkhet', 'Pull from Tomorrow', 'Dire-Strain Rampage', 'Shape Anew', 'Icehide Golem', 'Ovika, Enigma Goliath', 'Bedlam Reveler', 'Bubbling Cauldron', 'Abundant Growth', 'Gigadrowse', 'Rabbit Battery', 'Flooded Grove', 'Pillage', 'Become Immense', 'Angel of Grace', 'Bloodbraid Elf', 'Maelstrom Pulse', 'Stasis Snare', 'Invasion of Zendikar', 'Condemn', 'Inscribed Tablet', 'Dimensional Infiltrator', 'Consume the Meek', 'Marauding Blight-Priest', 'Lodestone Golem', 'Azorius Charm', 'Venser, Corpse Puppet', 'Hope of Ghirapur', 'Chamber Sentry', 'Tainted Indulgence', 'Wrench Mind', 'Spirited Companion', 'Terminus', 'Strike It Rich', 'Restore Balance', 'Fiery Temper', 'Zhalfirin Shapecraft', 'Necrogen Spellbomb', 'Elderscale Wurm', 'Stoic Rebuttal', 'Auriok Sunchaser', 'Consuming Vapors', 'Obliterate', 'Tribute to Hunger', 'Falkenrath Pit Fighter', 'Akoum Hellhound', 'Nevermore', 'Graven Cairns', 'Scrabbling Claws', 'Brain Freeze', 'Ethereal Armor', 'Drown in Ichor', 'Sinew Sliver', 'Anoint with Affliction', 'Search for Tomorrow', 'Kessig Wolf Run', 'Universal Automaton', 'Carven Caryatid', 'Arcum''s Astrolabe', 'Rakdos Guildgate', 'Saffi Eriksdotter', 'Shred Memory', 'Sweltering Suns', 'Chief of the Edge', 'Sin Collector', 'Ulamog''s Crusher', 'Lagrella, the Magpie', 'Sigil of the Empty Throne', 'Spell Burst', 'Cabal Ritual', 'Mistcutter Hydra', 'Waking the Trolls', 'Yorion, Sky Nomad', 'Rampant Growth', 'Elvish Rejuvenator', 'Sudden Edict', 'Sign in Blood', 'Control Magic', 'Bubbling Muck', 'Kami of False Hope', 'Ulvenwald Hydra', 'Marit Lage''s Slumber', 'General Ferrous Rokiric', 'Stone Rain', 'Archaeomancer', 'Phyrexian Dreadnought', 'Graveborn Muse', 'Collected Conjuring', 'Union of the Third Path', 'Second Sunrise', 'Vindicate', 'Knight of the White Orchid', 'Idyllic Beachfront', 'Silverblade Paladin', 'Lochmere Serpent', 'Quest for the Holy Relic', 'Overgrowth', 'Lingering Souls', 'Decree of Justice', 'Primal Command', 'Farhaven Elf', 'Champion of Wits', 'Voyaging Satyr', 'Siege Rhino', 'Hideous End', 'Hostage Taker', 'Silver-Fur Master', 'All That Glitters', 'Basking Rootwalla', 'Arbalest Engineers', 'Hissing Quagmire', 'Drake Haven', 'Clifftop Retreat', 'Obscura Charm', 'Lavinia of the Tenth', 'Castigate', 'Solitary Confinement', 'Postmortem Lunge', 'Invigorate', 'Scrying Sheets', 'Tempest Djinn', 'Self-Assembler', 'Loxodon Smiter', 'Pharika''s Cure', 'Basilisk Collar', 'Celestial Colonnade', 'Elvish Visionary', 'Sunstrike Legionnaire', 'Far // Away', 'Frantic Inventory', 'Bituminous Blast', 'Wanderwine Hub', 'Invasion of New Capenna', 'Seal of Cleansing', 'Tidespout Tyrant', 'Squadron Hawk', 'Abundant Harvest', 'Melira, the Living Cure', 'Needle Spires', 'Sulfur Falls', 'Yavimaya Coast', 'Gruul Guildgate', 'Ulcerate', 'Destiny Spinner', 'Declaration in Stone', 'Blightbelly Rat', 'Master of Death', 'Fade from Memory', 'Tolsimir, Friend to Wolves', 'Silumgar, the Drifting Death', 'Glass of the Guildpact', 'Zephyr Singer', 'Ornithopter', 'Simian Sling', 'Fight as One', 'Moment of Truth', 'Evangel of Synthesis', 'Ranger of Eos', 'Murmuring Bosk', 'Springleaf Drum', 'Anger of the Gods', 'Of One Mind', 'Increasing Ambition', 'Westvale Abbey', 'Devil''s Play', 'Selesnya Guildgate', 'Agonizing Remorse', 'Leech Gauntlet', 'Izzet Boilerworks', 'Thraben Inspector', 'Temple of Deceit', 'Sphinx''s Herald', 'Tomebound Lich', 'Repudiate // Replicate', 'Third Path Iconoclast', 'Steppe Lynx', 'Grove of the Guardian', 'Oni-Cult Anvil', 'Nature''s Lore', 'Argentum Armor', 'Slagwoods Bridge', 'Inevitable Betrayal', 'Dryad Militant', 'Phyrexian Censor', 'Grand Architect', 'Misery Charm', 'Tezzeret, Artifice Master', 'Gift of Estates', 'Melira, Sylvok Outcast', 'Priest of the Haunted Edge', 'Haunted Mire', 'Halimar Excavator', 'Hypnotic Specter', 'Ogre Slumlord', 'Dakkon, Shadow Slayer', 'Obscura Storefront', 'Felidar Cub', 'Sunblade Samurai', 'Dragon''s Hoard', 'General''s Enforcer', 'Draugr Necromancer', 'Game Trail', 'Sins of the Past', 'Odds // Ends', 'Curious Homunculus', 'Out of Time', 'Wrenn''s Resolve', 'Glamerdye', 'Kambal, Consul of Allocation', 'Merciless Eviction', 'Mnemonic Sphere', 'Mistblade Shinobi', 'Tribute to Horobi', 'Liliana Vess', 'Kappa Tech-Wrecker', 'Stir the Grave', 'Fallaji Archaeologist', 'Seal of Removal', 'Colossal Skyturtle', 'Nephalia Drownyard', 'Vryn Wingmare', 'Gadrak, the Crown-Scourge', 'Anguished Unmaking', 'Putrid Imp', 'Dross Skullbomb', 'Bastion of Remembrance', 'Simian Spirit Guide', 'Solemnity', 'Sprite Dragon', 'Scatter Ray', 'Haunted Dead', 'Drossforge Bridge', 'Reflector Mage', 'Incinerate', 'Putrefy', 'Barbed Sextant', 'Ramunap Excavator', 'Polukranos, World Eater', 'Fruit of Tizerus', 'Price of Progress', 'Lizard Blades', 'Mesmeric Fiend', 'Simic Guildgate', 'Tolarian Terror', 'Tymaret, Chosen from Death', 'Fiery Justice', 'Kor Firewalker', 'Harmonize', 'Terramorphic Expanse', 'Marble Diamond', 'Wrath of God', 'Barbarian Ring', 'Mind''s Desire', 'Serra Ascendant', 'Wooded Bastion', 'Return to the Ranks', 'Steel Overseer', 'Mana Leak', 'Golgari Guildgate', 'Gideon''s Intervention', 'Woodfall Primus', 'Spectral Procession', 'Oblivion Ring', 'Morsel Theft'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Graven Cairns', 'Presence of Gond', 'Quiet Speculation', 'Unlucky Witness', 'Ral, Izzet Viceroy', 'Blanchwood Prowler', 'Thrash // Threat', 'Check for Traps', 'Crawling Barrens', 'Voltage Surge', 'Sorin, Vengeful Bloodlord', 'Lay Down Arms', 'Marit Lage''s Slumber', 'Vraska, Relic Seeker', 'Impulse', 'Volt Charge', 'Golgari Guildgate', 'Kor Firewalker', 'Bone Shards', 'Ral, Storm Conduit', 'Briarbridge Tracker', 'Jwari Shapeshifter', 'Wall of Omens', 'Changeling Outcast', 'Venerated Loxodon', 'Misery Charm', 'Skyclave Shade', 'Duneblast', 'Bloodvial Purveyor', 'Third Path Iconoclast', 'Precinct Captain', 'Priest of the Haunted Edge', 'Invasion of Kaladesh', 'Shizo, Death''s Storehouse', 'Cartel Aristocrat', 'Sylvan Caryatid', 'Chandra, Fire Artisan', 'Ghostfire Blade', 'Marwyn, the Nurturer', 'Archaeomancer', 'Sleight of Hand', 'Diabolic Tutor', 'Bubbling Muck', 'Network Disruptor', 'Disrupting Shoal', 'Elvish Mystic', 'Norn''s Inquisitor', 'Ivory Tower', 'Boon-Bringer Valkyrie', 'Open the Gates', 'Enchantress''s Presence', 'Twinshot Sniper', 'Universal Automaton', 'Liliana Vess', 'Locket of Yesterdays', 'Elvish Rejuvenator', 'Mistveil Plains', 'Ghostly Pilferer', 'Sandwurm Convergence', 'Smokestack', 'Shred Memory', 'Vines of Vastwood', 'Goldmire Bridge', 'Elite Inquisitor', 'Skyshroud Elf', 'River of Tears', 'Staff of Domination', 'Tocasia''s Dig Site', 'Toolcraft Exemplar', 'Silundi Vision', 'Geothermal Bog', 'Deafening Clarion', 'Selesnya Guildgate', 'Cauldron Familiar', 'Shivan Reef', 'Lightning Strike', 'Joint Exploration', 'Aetherspouts', 'Hope of Ghirapur', 'Recruitment Officer', 'Stern Dismissal', 'Smuggler''s Copter', 'Tribute to Horobi', 'Shardless Agent', 'Ovika, Enigma Goliath', 'Haunted Mire', 'Blood on the Snow', 'Lurrus of the Dream-Den', 'Giant Killer', 'Fallen Shinobi', 'Ranger of Eos', 'Triumphant Adventurer', 'Ally Encampment', 'Oblivion Ring', 'Izzet Charm', 'Simic Guildgate', 'Sea Gate Oracle', 'Lavinia of the Tenth', 'Faeburrow Elder', 'Sunlit Marsh', 'Yahenni''s Expertise', 'Chittering Rats', 'Pack Rat', 'Kogla, the Titan Ape', 'Jace Beleren', 'Terramorphic Expanse', 'Serrated Scorpion', 'Dryad Militant', 'Nimble Obstructionist', 'Saproling Migration', 'Herald of the Pantheon', 'Blight Mamba', 'Eiganjo Castle', 'Dispatch', 'Elas il-Kor, Sadistic Pilgrim', 'Ignite Memories', 'Kozilek''s Predator', 'Burst Lightning', 'Voldaren Pariah', 'Faith''s Reward', 'Dark Prophecy', 'Necrogen Spellbomb', 'Resolute Reinforcements', 'Terastodon', 'Basilisk Collar', 'Ingenious Infiltrator', 'Annex Sentry', 'Heartless Act', 'Blood Artist', 'Voidslime', 'Ardent Recruit', 'Eidolon of Blossoms', 'Radha, Heart of Keld', 'Increasing Ambition', 'Deep Forest Hermit', 'Vraska''s Fall', 'Raging Ravine', 'Fevered Visions', 'Drowner of Hope', 'All That Glitters', 'Brainstone', 'Liquimetal Torque', 'Nissa, Worldwaker', 'Dusk // Dawn', 'Angel of Despair', 'Shard Volley', 'Tattermunge Maniac', 'Commune with the Gods', 'Coiling Oracle', 'Knight of New Alara', 'Viashino Pyromancer', 'Opulent Palace', 'Teferi, Mage of Zhalfir', 'Dreams of Steel and Oil', 'Halana and Alena, Partners', 'Hinterland Harbor', 'The Underworld Cookbook', 'Elspeth Conquers Death', 'Myth Realized', 'Crawling Chorus', 'Genesis Ultimatum', 'Varolz, the Scar-Striped', 'Stirring Wildwood', 'Judge''s Familiar', 'Phyrexian Censor', 'Jukai Naturalist', 'Vampiric Rites', 'Harmonize', 'Metalwork Colossus', 'Control Magic', 'Scrapwork Mutt', 'Folio of Fancies', 'Scab-Clan Berserker', 'Stubborn Denial', 'Genesis Hydra', 'Delver of Secrets', 'Orzhov Basilica', 'Malcator, Purity Overseer', 'Frantic Search', 'Jungle Shrine', 'Mirror Entity', 'Tribute to Hunger', 'Cryptic Caves', 'Go for the Throat', 'Scour All Possibilities', 'Koth, Fire of Resistance', 'Postmortem Lunge', 'Knight of the Reliquary', 'Sunken Hollow', 'Ethereal Haze', 'Gather the Pack', 'Sin Collector', 'Cabaretti Courtyard', 'Lantern-Lit Graveyard', 'Ammit Eternal', 'Glimpse of Tomorrow', 'Oona, Queen of the Fae', 'Swooping Lookout', 'Pyroclasm', 'Herd Migration', 'Heap Doll', 'Vessel of Nascency', 'Needle Spires', 'Gideon Jura', 'Commune with Spirits', 'Steel Overseer', 'Cliffside Lookout', 'Embodiment of Fury', 'Raffine''s Informant', 'Altar of the Goyf', 'Talisman of Curiosity', 'Greater Tanuki', 'Temple of Abandon', 'Rishkar, Peema Renegade', 'Bogardan Hellkite', 'Wilt', 'Rampant Growth', 'Kemba, Kha Enduring', 'Open the Armory', 'Curse of Exhaustion', 'Jwari Disruption', 'Shriekmaw', 'Champion of Wits', 'Mesa Enchantress', 'Sphinx''s Herald', 'Gutterbones', 'Mirage Mirror', 'Glimmerpost', 'Gleeful Demolition', 'Chandra, Flamecaller', 'Executioner''s Capsule', 'Phyrexian Revoker', 'Witching Well', 'Pharika''s Libation', 'Fierce Empath', 'Bilious Skulldweller', 'Circular Logic', 'Settle the Wreckage', 'Stone Haven Outfitter', 'Faithless Salvaging', 'Grand Arbiter Augustin IV', 'True Believer', 'Spell Burst', 'Servo Exhibition', 'Greater Gargadon', 'Angrath, the Flame-Chained', 'Knight of the White Orchid', 'Late to Dinner', 'Summary Dismissal', 'Darksteel Colossus', 'Porphyry Nodes', 'Dread Wanderer', 'Glorybringer', 'Lightning Spear', 'Murderous Redcap', 'Zephyr Singer', 'Monument to Perfection', 'Chief of the Scale', 'Bring the Ending', 'Invoke Calamity', 'Dimensional Infiltrator', 'Hieroglyphic Illumination', 'Lost Legacy', 'Oona''s Prowler', 'Fallaji Archaeologist', 'Gadrak, the Crown-Scourge', 'Diffusion Sliver', 'Mistvein Borderpost', 'Kappa Tech-Wrecker', 'Repeal', 'Vault of the Archangel', 'Terminate', 'Vampire Nighthawk', 'Fiery Gambit', 'Dimir Guildgate', 'Orzhov Charm', 'Yawgmoth''s Bargain', 'Accorder Paladin', 'Chaotic Transformation', 'Decree of Justice', 'Erebos''s Intervention', 'Kher Keep', 'Invasion of Kylem', 'Icehide Golem', 'Experimental Augury', 'Godo, Bandit Warlord', 'Notorious Throng', 'Temple of Triumph', 'Blightning', 'Disciple of the Vault', 'Fyndhorn Elves', 'Brineborn Cutthroat', 'Raze to the Ground', 'Scrabbling Claws', 'Bump in the Night', 'Pyretic Ritual', 'Goblin Electromancer', 'Frost Marsh', 'Mindcrank', 'Disenchant', 'Invasion of Amonkhet', 'Verduran Enchantress', 'Ancient Amphitheater', 'Hideous End', 'Karn''s Bastion', 'Gravelgill Duo', 'Caves of Koilos', 'Thousand-Faced Shadow', 'Psychic Possession', 'Lingering Souls', 'Sunstrike Legionnaire', 'Crack the Earth', 'Peek', 'Declaration in Stone', 'Fruit of Tizerus', 'Gilt-Leaf Archdruid', 'Evangel of Synthesis', 'Thrun, Breaker of Silence', 'Forbid', 'Phyrexian Dreadnought', 'Dragon''s Hoard', 'Search for Tomorrow', 'Flooded Grove', 'Scatter Ray', 'Forsake the Worldly', 'Woodland Cemetery', 'Memory Lapse', 'Nested Shambler', 'Frenetic Sliver', 'Abzan Charm', 'Nimble Trapfinder', 'Sunpetal Grove', 'Memoricide', 'Rites of Spring', 'Mana Clash', 'Magister of Worth', 'Canyon Slough', 'Gideon''s Intervention', 'Stormfist Crusader', 'Tymaret, Chosen from Death', 'Anticipate', 'Elemental Masterpiece', 'Shimmerdrift Vale', 'Scrying Sheets', 'Fetid Pools', 'Tooth and Nail', 'Felidar Cub', 'Divinity of Pride', 'Mountain Valley', 'Idyllic Tutor', 'Mulldrifter', 'Gruul Spellbreaker', 'Raven''s Crime', 'Mastermind''s Acquisition', 'Glistener Elf', 'Negate', 'Anger of the Gods', 'Kaito, Dancing Shadow', 'Oracle of Tragedy', 'Argentum Masticore', 'Blessed Alliance', 'Djinn of the Fountain', 'Dark Petition', 'Kami of False Hope', 'Invasion of Azgol', 'Simian Sling', 'Slaughter Pact', 'Time of Need', 'Mind''s Desire', 'Tamiyo, Collector of Tales', 'Bolas''s Citadel', 'Vivid Grove', 'The Flame of Keld', 'Phyrexian Missionary', 'Froghemoth', 'Tocatli Honor Guard', 'Slip Out the Back', 'Protect the Negotiators', 'Sylvan Advocate', 'Rally the Ancestors', 'Vampire Neonate', 'Holy Day', 'Feed the Swarm', 'Buried Ruin', 'Ghitu Lavarunner', 'Dakmor Salvage', 'Zhalfirin Shapecraft', 'Glacial Fortress', 'Mistblade Shinobi', 'Game Trail', 'Xerex Strobe-Knight', 'Mulch', 'Rust Goliath', 'Woodfall Primus', 'Akiri, Fearless Voyager', 'Bubbling Cauldron', 'Leech Gauntlet', 'No Escape', 'Bloodchief Ascension', 'Gideon''s Lawkeeper', 'Unburial Rites', 'Commit // Memory', 'Ulcerate', 'Wizard''s Retort', 'Spectral Procession', 'Kor Skyfisher', 'Firewild Borderpost', 'Commence the Endgame', 'Raise the Alarm', 'Kiora, the Crashing Wave', 'Deprive', 'Restoration Angel', 'Squadron Hawk', 'Oracle of Mul Daya', 'Sin Prodder', 'Honor of the Pure', 'Breya''s Apprentice', 'Bituminous Blast', 'Assault // Battery', 'Incinerate', 'Rites of Initiation', 'Rain of Tears', 'Altered Ego', 'General Ferrous Rokiric', 'Ossification', 'Figure of Destiny', 'Ulamog''s Crusher', 'Kitchen Imp', 'Cut Down', 'Ichorclaw Myr', 'Spikefield Hazard', 'Jungle Hollow', 'Ashen Rider', 'Silversmote Ghoul', 'Counterflux', 'Succumb to Temptation', 'Mishra''s Research Desk', 'Yorion, Sky Nomad', 'Vraan, Executioner Thane', 'Blade Splicer', 'Phoenix Chick', 'Rakdos''s Return', 'Stasis Snare', 'Ulvenwald Hydra', 'Grapple with the Past', 'Hanweir Garrison', 'Dead of Winter', 'Silverblade Paladin', 'Sandsteppe Citadel', 'Circuit Mender', 'Guildmages'' Forum', 'Mazemind Tome', 'High-Speed Hoverbike', 'Tidespout Tyrant', 'Anoint with Affliction', 'Spectral Shift', 'Sea-Dasher Octopus', 'Scattered Groves', 'Seeker of the Way', 'Predatory Sliver', 'Battle of Wits', 'Reveillark', 'Tomebound Lich', 'Rise and Shine', 'Condemn', 'Approach of the Second Sun', 'Prophetic Prism', 'Dovin''s Acuity', 'Doomskar', 'Mwonvuli Acid-Moss', 'Rakdos Guildgate', 'Silumgar''s Scorn', 'Apostle''s Blessing', 'Evacuation', 'Fetid Heath', 'Wasteland Strangler', 'Grand Abolisher', 'Reflector Mage', 'Seal of Removal', 'Nissa, Steward of Elements', 'Snow-Covered Mountain', 'Phantasmal Image', 'Moon-Circuit Hacker', 'Elderscale Wurm', 'Sarkhan the Masterless', 'Ephara, God of the Polis', 'Timely Reinforcements', 'Rise // Fall', 'Desperate Ritual', 'Orzhov Guildgate', 'Ancestral Blade', 'Mistcutter Hydra', 'Vivid Marsh', 'Stupor', 'Sins of the Past', 'Angel of Condemnation', 'Forbidden Alchemy', 'Wrath of God', 'See Beyond', 'Krenko, Tin Street Kingpin', 'Stinkweed Imp', 'Festering Newt', 'Pain Seer', 'Galerider Sliver', 'Auriok Sunchaser', 'Become Immense', 'Remorseful Cleric', 'Restore Balance', 'Kitesail Freebooter', 'Springleaf Drum', 'Gnat Miser', 'Seal of Cleansing', 'Llanowar Elves', 'Rally the Peasants', 'Fracturing Gust', 'Upheaval', 'Urban Evolution', 'Stoke the Flames', 'Change the Equation', 'Drown in Ichor', 'Throat Slitter', 'Ichor Drinker', 'Golgari Rot Farm', 'Valakut Exploration', 'Consume the Meek', 'Venser, the Sojourner', 'Luminarch Ascension', 'Call to the Grave', 'Goblin Dark-Dwellers', 'Contaminated Aquifer', 'Oni-Cult Anvil', 'Summer Bloom', 'Mikokoro, Center of the Sea', 'Armored Scrapgorger', 'Vryn Wingmare', 'Botanical Plaza', 'Nine Lives', 'Glamerdye', 'Spirited Companion', 'Dead // Gone', 'Battle of Frost and Fire', 'Exclude', 'Xenagos, the Reveler', 'Ruin Crab', 'Scuttling Doom Engine', 'Evolving Wilds', 'Tresserhorn Sinks', 'Brave the Sands', 'Adanto Vanguard', 'Eerie Ultimatum', 'Arlinn Kord', 'Altar of the Brood', 'Scarab Feast', 'Bident of Thassa', 'Temple of Silence', 'Fight as One', 'Wooded Bastion', 'Quicken', 'Slagwoods Bridge', 'Lochmere Serpent', 'Solitary Confinement', 'Hissing Quagmire', 'Gloomshrieker', 'Unholy Heat', 'Sultai Charm', 'Sinew Sliver', 'Vraska''s Contempt', 'Forked Bolt', 'Dire-Strain Rampage', 'Flesh Reaver', 'Anafenza, Kin-Tree Spirit', 'Floriferous Vinewall', 'Elixir of Immortality', 'Fact or Fiction', 'Oona''s Grace', 'Port Town', 'Knight of Glory', 'Melira, Sylvok Outcast', 'Founding the Third Path', 'The Seedcore', 'Lodestone Golem', 'Sphere of Safety', 'Fieldmist Borderpost', 'Crystal Grotto', 'Ayli, Eternal Pilgrim', 'Dismal Backwater', 'Whispersilk Cloak', 'Grand Architect', 'Erebos, Bleak-Hearted', 'Self-Assembler', 'Tempest Djinn', 'Mardu Charm', 'Ghost Quarter', 'Vigor', 'Darksteel Citadel', 'Phyrexian Unlife', 'Spatial Contortion', 'Mirran Crusader', 'Mnemonic Sphere', 'Rustvale Bridge', 'Delay', 'Thassa''s Intervention', 'Angel of Grace', 'Sheoldred''s Edict', 'Ghostly Flicker', 'Wildborn Preserver', 'Riveteers Overlook', 'Shalai, Voice of Plenty', 'Sylvan Library', 'Benevolent Bodyguard', 'Nevermore', 'Moment of Truth', 'Sterling Grove', 'Fiery Justice', 'Archangel Avacyn', 'Commune with Nature', 'Zur''s Weirding', 'Patchwork Automaton', 'Curious Homunculus', 'Nekrataal', 'Pull from Tomorrow', 'Otherworldly Journey', 'Galvanic Relay', 'Huatli, Radiant Champion', 'Tranquil Thicket', 'Mana Leak', 'Dark Ritual', 'Guile', 'Orcish Lumberjack', 'Midnight Guard', 'Doom Blade', 'Surrak, the Hunt Caller', 'Acidic Slime', 'Explore', 'Izzet Guildgate', 'Snow-Covered Plains', 'Oath of Teferi', 'Fiery Temper', 'Brave the Elements', 'Archangel of Wrath', 'Detention Sphere', 'Inscribed Tablet', 'Elves of Deep Shadow', 'Viscera Seer', 'Stone Rain', 'Frantic Inventory', 'Smallpox', 'Blue Sun''s Zenith', 'Tectonic Edge', 'Dakkon, Shadow Slayer', 'Carnophage', 'Oath of Kaya', 'Obzedat, Ghost Council', 'Tolsimir, Friend to Wolves', 'Shigeki, Jukai Visionary', 'Invasion of New Capenna', 'Etherium Sculptor', 'Surge of Salvation', 'Touch the Spirit Realm', 'Invasion of Ergamon', 'Relic Seeker', 'Trickbind', 'Loxodon Smiter', 'Llanowar Tribe', 'Alms of the Vein', 'Nullpriest of Oblivion', 'Vault Skirge', 'Dead Weight', 'Dawn of Hope', 'Aegis of the Gods', 'Rotting Rats', 'Snow-Covered Swamp', 'Temple of Deceit', 'Grolnok, the Omnivore', 'Revitalize', 'Dark-Dweller Oracle', 'Hooting Mandrills', 'Experimental Synthesizer', 'Abyssal Persecutor', 'Kazandu Blademaster', 'Careful Cultivation', 'Racers'' Ring', 'Hypnotic Specter', 'Ramunap Excavator', 'Halimar Excavator', 'Frost Titan', 'Poet''s Quill', 'Think Twice', 'Terrarion', 'Corrupted Conviction', 'Forgotten Cave', 'Ajani, Mentor of Heroes', 'Azorius Guildgate', 'Wing Commando', 'Drowned Rusalka', 'Ransack the Lab', 'Case the Joint', 'Out of Time', 'Concealing Curtains', 'Arguel''s Blood Fast', 'Smother', 'Empyrial Armor', 'Sigrid, God-Favored', 'Shrapnel Blast', 'Boros Guildgate', 'Hypergenesis', 'Sweltering Suns', 'Radiant Grove', 'Tavern Scoundrel', 'Wildfield Borderpost', 'Hyena Umbra', 'Westvale Abbey', 'Eldrazi Skyspawner', 'Helm of the Host', 'Fearless Fledgling', 'Emmara, Soul of the Accord', 'Yisan, the Wanderer Bard', 'Slogurk, the Overslime', 'Orim''s Chant', 'Dokuchi Silencer', 'Kefnet the Mindful', 'Elvish Visionary', 'Sol Talisman', 'Supreme Will', 'Kitchen Finks', 'Morsel Theft', 'Cathartic Reunion', 'Ride Down', 'Progenitor Exarch', 'Pharika''s Cure', 'Grave Scrabbler', 'Tribal Flames', 'King Darien XLVIII', 'Eternal Scourge', 'Silent Gravestone', 'Goblin Kaboomist', 'Flametongue Kavu', 'Discovery // Dispersal', 'Bloodchief''s Thirst', 'Kaya, Ghost Assassin', 'Sinister Concoction', 'Tidehollow Sculler', 'Engulf the Shore', 'Vapor Snag', 'The Celestus', 'Invasion of Zendikar', 'Narcomoeba', 'Mortuary Mire', 'Devious Cover-Up', 'Thaumatic Compass', 'Ertai''s Scorn', 'Idyllic Beachfront', 'Combat Research', 'Haunted Fengraf', 'Graven Lore', 'Pyrite Spellbomb', 'Invigorate', 'Mystic Monastery', 'Mouth of Ronom', 'Talisman of Unity', 'Veinfire Borderpost', 'Chain Lightning', 'Tendrils of Agony', 'Ravenous Squirrel', 'Gift of Estates', 'Venser, Shaper Savant', 'Lizard Blades', 'Energy Refractor', 'Vexing Shusher', 'Overgrowth', 'Cloudpost', 'Dream Trawler', 'Barter in Blood', 'Madcap Experiment', 'Dawn Charm', 'Haunted Dead', 'Ashnod, Flesh Mechanist', 'Fangren Marauder', 'Kunoros, Hound of Athreos', 'Venser, Corpse Puppet', 'Makeshift Mannequin', 'Crux of Fate', 'Timeless Witness', 'Sculpted Perfection', 'Aether Spellbomb', 'Teneb, the Harvester', 'Famished Paladin', 'Putrid Imp', 'Empty the Warrens', 'Esper Charm', 'Flaying Tendrils', 'Into the Story', 'Inevitable Betrayal', 'Groundswell', 'Reinforced Ronin', 'Mistvault Bridge', 'Pore Over the Pages', 'Sphinx''s Tutelage', 'Recommission', 'Secluded Steppe', 'Bedlam Reveler', 'Smoldering Marsh', 'Ivy Lane Denizen', 'Forging the Anchor', 'Maelstrom Pulse', 'Curiosity', 'Consul''s Lieutenant', 'Voidwing Hybrid', 'Serra Ascendant', 'Celestial Colonnade', 'Seal of Fire', 'Shape Anew', 'Trace of Abundance', 'Squee, Goblin Nabob', 'Vindicate', 'Possibility Storm', 'Grave Titan', 'Llanowar Mentor', 'Ethereal Armor', 'Colossal Skyturtle', 'Disallow', 'Miasmic Mummy', 'Rix Maadi Reveler', 'Turnabout', 'Silumgar, the Drifting Death', 'Collected Conjuring', 'Murmuring Bosk', 'Bitter Reunion', 'Kambal, Consul of Allocation', 'Thragtusk', 'Big Score', 'Rune Snag', 'Empyrial Plate', 'Kargan Warleader', 'Solemnity', 'Sarkhan, the Dragonspeaker', 'Temple of Enlightenment', 'Hour of Promise', 'Agonizing Remorse', 'Mothdust Changeling', 'Birds of Paradise', 'Vadrik, Astral Archmage', 'Ornithopter', 'Sculpting Steel', 'Gather the Townsfolk', 'Perilous Myr', 'Day of Judgment', 'Jace, Architect of Thought', 'White Sun''s Zenith', 'Valiant Changeling', 'Obstinate Baloth', 'Kruphix''s Insight', 'Merciless Eviction', 'Torens, Fist of the Angels', 'Pillage', 'Kiora Bests the Sea God', 'Council''s Judgment', 'Purify the Grave', 'Mina and Denn, Wildborn', 'Prologue to Phyresis', 'Stromkirk Noble', 'Nature''s Lore', 'Hornet Queen', 'Goblin Bombardment', 'Zombie Infestation', 'Vampire Hexmage', 'Sire of Insanity', 'Dread Return', 'Midnight Reaper', 'Kabira Takedown', 'Seedcradle Witch', 'Cataclysmic Gearhulk', 'Sign in Blood', 'Soltari Priest', 'Corrupted Crossroads', 'Far // Away', 'Expedition Envoy', 'Marble Diamond', 'Duskmantle Guildmage', 'Green Sun''s Twilight', 'Mindslaver', 'Tezzeret, Artifice Master', 'Tangle', 'Lose Focus', 'Fire Prophecy', 'Ishkanah, Grafwidow', 'Unctus, Grand Metatect', 'Temple of Mystery', 'Myr Battlesphere', 'Deep Analysis', 'Mindsplice Apparatus', 'Siege Rhino', 'Cabal Ritual', 'Primal Command', 'Ancient Stirrings', 'Tuktuk the Explorer', 'Tilling Treefolk', 'Vampire Lacerator', 'Throne of the God-Pharaoh', 'Farhaven Elf', 'Shadow Prophecy', 'Shimmer Dragon', 'Marauding Blight-Priest', 'The Mending of Dominaria', 'Distorted Curiosity', 'Aetherling', 'Choked Estuary', 'Bloodthrone Vampire', 'Gift of Immortality', 'Combat Thresher', 'Gigadrowse', 'Brokers Hideout', 'Big Game Hunter', 'Akoum Hellhound', 'Weathered Wayfarer', 'Abundant Harvest', 'Precursor Golem', 'Treasure Cruise', 'Maze''s End', 'Second Sunrise', 'Might of Old Krosa', 'Thundermaw Hellkite', 'Swiftfoot Boots', 'Jokulhaups', 'Abundant Growth', 'Hesitation', 'Felidar Retreat', 'Fae of Wishes', 'Elvish Archdruid', 'Tezzeret the Schemer', 'Graaz, Unstoppable Juggernaut', 'Wood Elves', 'Stoic Rebuttal', 'Dreadhorde Butcher', 'Avacyn''s Pilgrim', 'Herd Baloth', 'Frostwalk Bastion', 'Yavimaya Iconoclast', 'Leonin Relic-Warder', 'Karumonix, the Rat King', 'Thraben Inspector', 'Jor Kadeen, First Goldwarden', 'Rootbound Crag', 'Wrench Mind', 'Leonin Warleader', 'Devil''s Play', 'Biting-Palm Ninja', 'Timeless Dragon', 'Chief of the Foundry', 'Drainpipe Vermin', 'Martyr of Sands', 'Castigate', 'Hada Freeblade', 'Prohibit', 'Consuming Vapors', 'Bogbrew Witch', 'Odds // Ends', 'Secluded Courtyard', 'Arcum''s Astrolabe', 'Yasharn, Implacable Earth', 'Putrefy', 'Leather Armor', 'Teshar, Ancestor''s Apostle', 'Quest for the Holy Relic', 'Grenzo, Dungeon Warden', 'Of One Mind', 'Destiny Spinner', 'Glass of the Guildpact', 'Wandering Fumarole', 'Dragonskull Summit', 'Caldera Hellion', 'Knowledge Pool', 'Ground Seal', 'Scrapheap Scrounger', 'Moorland Haunt', 'Chief Engineer', 'Inscription of Ruin', 'Territorial Kavu', 'Tangled Islet', 'Nephalia Drownyard', 'Clifftop Retreat', 'Kemba, Kha Regent', 'Simian Spirit Guide', 'Return to the Ranks', 'Demigod of Revenge', 'Din of the Fireherd', 'Titania, Protector of Argoth', 'Wild Cantor', 'Drossforge Bridge', 'Victim of Night', 'Destroy Evil', 'Artistic Refusal', 'Myr Superion', 'Ponder', 'Chamber Sentry', 'Mesmeric Fiend', 'Doomed Traveler', 'Kessig Wolf Run', 'Lazotep Chancellor', 'Tendo Ice Bridge', 'Night of Souls'' Betrayal', 'Plated Geopede', 'Murderous Cut', 'Heliod''s Pilgrim', 'Arcane Sanctum', 'Benalish Sleeper', 'Sylvan Scrying', 'Black Sun''s Zenith', 'Psychatog', 'Disciple of Bolas', 'Gitaxian Probe', 'Blightbelly Rat', 'Ruins of Trokair', 'Bloodbraid Elf', 'Silverbluff Bridge', 'Defabricate', 'Corpse Cur', 'Sudden Edict', 'Woe Strider', 'Wrenn''s Resolve', 'Cremate', 'Molten Tributary', 'Recurring Nightmare', 'Draugr Necromancer', 'Bastion of Remembrance', 'Tainted Indulgence', 'Slagstorm', 'Thrill of Possibility', 'Cultivate', 'Arbor Elf', 'Rakdos Cackler', 'Unbreakable Formation', 'Sunblade Samurai', 'Izzet Boilerworks', 'Frontier Bivouac', 'Nightscape Familiar', 'Faerie Miscreant', 'Battlefield Forge', 'Wayward Guide-Beast', 'Obscura Charm', 'Azorius Charm', 'Obscura Storefront', 'World Shaper', 'Invasion of Regatha', 'Fumigate', 'Razortide Bridge', 'Rule of Law', 'Grafted Butcher', 'Healer''s Hawk', 'Artisan of Kozilek', 'Blazing Rootwalla', 'Languish', 'Faerie Vandal', 'Melira, the Living Cure', 'Hard Evidence', 'Kjeldoran Outpost', 'Weapons Trainer', 'Leonin Arbiter', 'Argentum Armor', 'Braids, Cabal Minion', 'Fleecemane Lion', 'Rakdos Charm', 'Endbringer', 'Barbed Sextant', 'Isolated Chapel', 'Banishing Slash', 'Gruul Turf', 'General''s Enforcer', 'Burning of Xinye', 'Bloodline Keeper', 'Drake Haven', 'Silver-Fur Master', 'Thornwood Falls', 'Convolute', 'Archon of Sun''s Grace', 'Platinum Angel', 'Gruul Guildgate', 'Tolarian Terror', 'Wolfbriar Elemental', 'Malicious Malfunction', 'Cloudshredder Sliver', 'Mausoleum Secrets', 'Gnawing Vermin', 'Duplicant', 'Cleansing Wildfire', 'Spellweaver Helix', 'Doom Foretold', 'Unmarked Grave', 'Dross Skullbomb', 'Judith, the Scourge Diva', 'Inkwell Leviathan', 'Soul Warden', 'Dauntless Bodyguard', 'Cabal Initiate', 'Grim Haruspex', 'Demonic Dread', 'Bloodsoaked Champion', 'Dissipate', 'Canopy Vista', 'Krosan Grip', 'Graveborn Muse', 'Polukranos, World Eater', 'Price of Progress', 'Abiding Grace', 'Seismic Assault', 'Barbarian Ring', 'Nimble Larcenist', 'Hero''s Downfall', 'Lagrella, the Magpie', 'Stormrider Spirit', 'Demonic Bargain', 'Ancient Ziggurat', 'Gavony Township', 'Baneful Omen', 'Sulfur Falls', 'Drowned Catacomb', 'Voyaging Satyr', 'Glint-Sleeve Siphoner', 'Demolition Field', 'Wonder', 'Terminus', 'Arcbound Ravager', 'Meeting of Minds', 'Master of Etherium', 'Flame Rift', 'Reckoner''s Bargain', 'Geyadrone Dihada', 'Fertile Ground', 'Thornglint Bridge', 'Waking the Trolls', 'Duress', 'Yavimaya Coast', 'Zuran Orb', 'Lavaclaw Reaches', 'Unsubstantiate', 'Howling Mine', 'Boreal Shelf', 'Solemn Simulacrum', 'Thawing Glaciers', 'Strike It Rich', 'Nezahal, Primal Tide', 'Nomad Outpost', 'The Birth of Meletis', 'The Antiquities War', 'Ayara, First of Locthwain', 'Jace, Memory Adept', 'Bladed Ambassador', 'Resurgent Belief', 'Aetherblade Agent', 'Repudiate // Replicate', 'Spell Pierce', 'Cabal Therapist', 'Genesis Wave', 'The Scorpion God', 'Moderation', 'Tyrant''s Choice', 'Satyr Wayfinder', 'Runed Halo', 'Ethersworn Sphinx', 'Fade from Memory', 'Rabbit Battery', 'Sprite Dragon', 'Obliterate', 'Dregscape Zombie', 'Assemble the Legion', 'Thopter Spy Network', 'Earthquake', 'Tezzeret''s Gambit', 'Consult the Necrosages', 'Vivid Crag', 'Sacred Peaks', 'Riveteers Charm', 'Lotus Cobra', 'Anguished Unmaking', 'Soul Snare', 'Sever the Bloodline', 'Brain Freeze', 'Pariah', 'Mishra''s Factory', 'Ogre Slumlord', 'Sheltered Thicket', 'Mystical Teachings', 'Ruric Thar, the Unbowed', 'Temple of Plenty', 'Ashenmoor Liege', 'Carven Caryatid', 'Union of the Third Path', 'Sorcerer''s Wand', 'Bitter Ordeal', 'Maestros Charm', 'Gallia of the Endless Dance', 'Pillar of the Paruns', 'Divest', 'Eldrazi Displacer', 'Epic Experiment', 'Falkenrath Pit Fighter', 'Seething Song', 'Nether Spirit', 'Acquisitions Expert', 'Tear Asunder', 'Dimir Aqueduct', 'Rocco, Cabaretti Caterer', 'Nimbus Maze', 'Kumano Faces Kakkazan', 'Chief of the Edge', 'Hall of Oracles', 'Worship', 'Tanglepool Bridge', 'Arbalest Engineers', 'Pardic Miner', 'Stinkdrinker Bandit', 'Nameless Inversion', 'Hostage Taker', 'Sigil of the Empty Throne', 'Grove of the Guardian', 'Fabricate', 'Putrid Goblin', 'Kalastria Healer', 'Fireblade Charger', 'Chandra, Pyromaster', 'Geomancer''s Gambit', 'Master of Death', 'Basking Rootwalla', 'Winds of Abandon', 'Gateway Plaza', 'Ajani, Adversary of Tyrants', 'Augur of Bolas', 'Vedalken Heretic', 'Llanowar Augur', 'Savage Lands', 'Saffi Eriksdotter', 'Temple of Malady', 'Night Market Lookout', 'Malakir Rebirth', 'Archpriest of Shadows', 'Electrolyze', 'Nezumi Graverobber', 'Wanderwine Hub', 'Dying to Serve', 'Bontu''s Last Reckoning', 'Garruk Wildspeaker', 'Search for Azcanta', 'Stir the Grave', 'Into the Roil', 'Invisible Stalker', 'Ensoul Artifact', 'Syphon Life', 'Ambush Viper', 'Skirk Prospector', 'Shambling Vent', 'Cathedral of War', 'Rift Bolt', 'Heliod''s Intervention', 'Arch of Orazca', 'Farseek', 'Call of the Death-Dweller', 'Angel of Serenity', 'Oust', 'Death Cloud', 'Thopter Mechanic', 'Anafenza, the Foremost', 'Utter End', 'Prosperous Thief', 'Steppe Lynx'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Evangel of Synthesis', 'Frost Marsh', 'Hero''s Downfall', 'Elves of Deep Shadow', 'Jace, Memory Adept', 'Vexing Shusher', 'Wing Commando', 'Hinterland Harbor', 'Buried Ruin', 'Viscera Seer', 'Decree of Justice', 'Anticipate', 'Territorial Kavu', 'Dawn Charm', 'Dauntless Bodyguard', 'Vivid Crag', 'Revitalize', 'Mistvein Borderpost', 'Squee, Goblin Nabob', 'Gutterbones', 'Gather the Pack', 'Phantasmal Image', 'Cabaretti Courtyard', 'Rally the Ancestors', 'Vapor Snag', 'Bitter Ordeal', 'Inscription of Ruin', 'Mina and Denn, Wildborn', 'Elvish Archdruid', 'Hooting Mandrills', 'Ingenious Infiltrator', 'Herd Baloth', 'Bubbling Muck', 'Angel of Despair', 'Disenchant', 'Knight of New Alara', 'Kiora, the Crashing Wave', 'Pack Rat', 'Circular Logic', 'Hornet Queen', 'Cabal Initiate', 'Combat Thresher', 'Judge''s Familiar', 'Folio of Fancies', 'Flooded Grove', 'Ulamog''s Crusher', 'Flaying Tendrils', 'Wolfbriar Elemental', 'Unlucky Witness', 'Trickbind', 'Mouth of Ronom', 'Kaito, Dancing Shadow', 'Deep Forest Hermit', 'Invasion of Amonkhet', 'Raging Ravine', 'Relic Seeker', 'Wizard''s Retort', 'Grolnok, the Omnivore', 'Shriekmaw', 'Venser, Shaper Savant', 'Dakmor Salvage', 'Pyrite Spellbomb', 'Combat Research', 'Krenko, Tin Street Kingpin', 'Yahenni''s Expertise', 'Oona''s Grace', 'Blightning', 'Hopeful Eidolon', 'Prosperous Thief', 'Ransack the Lab', 'Valiant Changeling', 'Huatli, Radiant Champion', 'Solemnity', 'Winds of Abandon', 'The Scorpion God', 'Jace, Architect of Thought', 'Mountain Valley', 'Doomed Traveler', 'Gitaxian Probe', 'Into the Story', 'Earthshaker Khenra', 'Pillar of the Paruns', 'Mothdust Changeling', 'Yorion, Sky Nomad', 'Gateway Plaza', 'Obstinate Baloth', 'Rakdos Guildgate', 'Touch the Spirit Realm', 'Master of Etherium', 'Darksteel Colossus', 'Resurgent Belief', 'Feed the Swarm', 'Pyretic Ritual', 'Glass of the Guildpact', 'Gleeful Demolition', 'Tezzeret the Schemer', 'Ashnod, Flesh Mechanist', 'Bogardan Hellkite', 'Graveborn Muse', 'Return to the Ranks', 'Nightscape Familiar', 'Witching Well', 'Nezumi Graverobber', 'Servo Exhibition', 'Froghemoth', 'Scatter Ray', 'Rakdos Charm', 'Dead of Winter', 'Resolute Reinforcements', 'Stasis Snare', 'Summer Bloom', 'Notorious Throng', 'Hypergenesis', 'Gruul Turf', 'Chief Engineer', 'Coiling Oracle', 'Cloudshredder Sliver', 'Pharika''s Cure', 'Phalanx Leader', 'Recurring Nightmare', 'Frontier Bivouac', 'Nether Spirit', 'Gods Willing', 'Zhalfirin Shapecraft', 'Haunted Dead', 'Ral, Izzet Viceroy', 'Deprive', 'Aetherspouts', 'Devious Cover-Up', 'Curiosity', 'Temple of Enlightenment', 'Ruin Crab', 'Sphere of Safety', 'Obliterate', 'Ertai''s Scorn', 'Kabira Takedown', 'Throat Slitter', 'Wrenn''s Resolve', 'Tezzeret, Artifice Master', 'Stubborn Denial', 'Commune with Spirits', 'Bedlam Reveler', 'Mazemind Tome', 'Midnight Guard', 'Barter in Blood', 'Agonizing Remorse', 'Emmara, Soul of the Accord', 'Melira, the Living Cure', 'Heliod''s Intervention', 'Rust Goliath', 'Orcish Lumberjack', 'Wandering Fumarole', 'Invasion of Regatha', 'The Celestus', 'Tempest Djinn', 'Gnawing Vermin', 'Commune with Nature', 'Vigor', 'Executioner''s Capsule', 'Sheltered Thicket', 'Rocco, Cabaretti Caterer', 'Secluded Courtyard', 'Silumgar''s Scorn', 'Corrupted Conviction', 'Fetid Pools', 'Duskmantle Guildmage', 'Mardu Charm', 'Eldrazi Skyspawner', 'Sorin, Vengeful Bloodlord', 'Mulldrifter', 'Varolz, the Scar-Striped', 'Botanical Plaza', 'Kaya, Ghost Assassin', 'Grand Architect', 'Snow-Covered Swamp', 'Chamber Sentry', 'Dusk // Dawn', 'Angel of Grace', 'Gideon''s Intervention', 'Altered Ego', 'Nimble Larcenist', 'Fight as One', 'Michiko''s Reign of Truth', 'Brave the Elements', 'Voidwing Hybrid', 'Bident of Thassa', 'Restore Balance', 'Brineborn Cutthroat', 'Rune Snag', 'Sinister Concoction', 'Into the Roil', 'Spatial Contortion', 'Sudden Edict', 'Godo, Bandit Warlord', 'Unbreakable Formation', 'Loxodon Smiter', 'Graaz, Unstoppable Juggernaut', 'Grand Abolisher', 'Myth Realized', 'Big Score', 'Sol Talisman', 'Scrapheap Scrounger', 'Incinerate', 'Think Twice', 'Wayward Guide-Beast', 'Basking Rootwalla', 'Brave the Sands', 'Zuran Orb', 'Ground Seal', 'Champion of Wits', 'Veinfire Borderpost', 'Go for the Throat', 'Bastion of Remembrance', 'Narcomoeba', 'Shrapnel Blast', 'Shizo, Death''s Storehouse', 'World Shaper', 'Rally the Peasants', 'Consuming Vapors', 'Dread Wanderer', 'Acidic Slime', 'Dark Prophecy', 'Springleaf Drum', 'Empty the Warrens', 'Cleansing Wildfire', 'Explore', 'Ayli, Eternal Pilgrim', 'Scrying Sheets', 'Inscribed Tablet', 'Stone Rain', 'Briarbridge Tracker', 'Blood on the Snow', 'Runed Halo', 'Urban Evolution', 'Jwari Shapeshifter', 'Jor Kadeen, First Goldwarden', 'Festering Newt', 'Volt Charge', 'Ishkanah, Grafwidow', 'Stir the Grave', 'Seedcradle Witch', 'Lingering Souls', 'Woodland Cemetery', 'Sunblade Samurai', 'Peek', 'Kitchen Finks', 'Llanowar Mentor', 'Changeling Outcast', 'Pariah', 'Merciless Eviction', 'Blightbelly Rat', 'Canyon Slough', 'Apostle''s Blessing', 'Azorius Guildgate', 'Founding the Third Path', 'Flametongue Kavu', 'Expedition Envoy', 'Cryptic Caves', 'Dimir Aqueduct', 'Graven Lore', 'Felidar Retreat', 'Bloodchief Ascension', 'Gruul Spellbreaker', 'Fabricate', 'Anafenza, Kin-Tree Spirit', 'Invasion of Kaladesh', 'Nissa, Worldwaker', 'Abzan Charm', 'Rain of Tears', 'Bloodline Keeper', 'Drowner of Hope', 'Dokuchi Silencer', 'Thrash // Threat', 'Stromkirk Noble', 'Utter End', 'Silver-Fur Master', 'Dark-Dweller Oracle', 'Kessig Wolf Run', 'Glaring Aegis', 'Koth, Fire of Resistance', 'Night Market Lookout', 'Leonin Arbiter', 'Yawgmoth''s Bargain', 'Sprite Dragon', 'Invasion of Kylem', 'Temple of Silence', 'Djinn of the Fountain', 'Vampire Nighthawk', 'Icehide Golem', 'Heartless Act', 'Boros Guildgate', 'Mulch', 'Dimir Guildgate', 'Careful Cultivation', 'Rishkar, Peema Renegade', 'Maze''s End', 'Adanto Vanguard', 'Galvanic Relay', 'Dreadhorde Butcher', 'Ranger of Eos', 'Llanowar Tribe', 'Greater Gargadon', 'Abundant Growth', 'Moon-Circuit Hacker', 'Sheoldred''s Edict', 'Disallow', 'Psychatog', 'Tattermunge Maniac', 'Phyrexian Missionary', 'Disciple of Bolas', 'Tymaret, Chosen from Death', 'Abyssal Persecutor', 'Mindcrank', 'Sigrid, God-Favored', 'Nissa, Steward of Elements', 'Hissing Quagmire', 'Hanweir Garrison', 'Altar of the Goyf', 'Arcane Sanctum', 'Lochmere Serpent', 'Weathered Wayfarer', 'Skyclave Shade', 'Izzet Boilerworks', 'Destiny Spinner', 'Forgotten Cave', 'Bubbling Cauldron', 'Geyadrone Dihada', 'Demigod of Revenge', 'Heliod''s Pilgrim', 'Fiery Gambit', 'Tainted Indulgence', 'Ajani, Adversary of Tyrants', 'Wild Cantor', 'Thousand-Faced Shadow', 'Sea-Dasher Octopus', 'Glorybringer', 'Universal Automaton', 'Tuktuk the Explorer', 'Perilous Myr', 'Blood Artist', 'Frantic Inventory', 'Forked Bolt', 'Grim Haruspex', 'Kiora Bests the Sea God', 'Myr Superion', 'Orzhov Charm', 'Riveteers Overlook', 'Lose Focus', 'Oblivion Ring', 'Ethersworn Sphinx', 'Evacuation', 'Benevolent Bodyguard', 'Case the Joint', 'Siege Rhino', 'Myr Battlesphere', 'Surrak, the Hunt Caller', 'Corrupted Crossroads', 'Choked Estuary', 'Inkwell Leviathan', 'Argentum Armor', 'Spectral Shift', 'Aetherblade Agent', 'Grave Titan', 'Llanowar Elves', 'Halimar Excavator', 'Blade Splicer', 'Fruit of Tizerus', 'Stone Haven Outfitter', 'Chittering Rats', 'Bladed Ambassador', 'Nimble Trapfinder', 'Shivan Reef', 'Cut Down', 'Angel of Serenity', 'Kor Skyfisher', 'Sign in Blood', 'Bituminous Blast', 'Chief of the Foundry', 'Contaminated Aquifer', 'Dregscape Zombie', 'Curious Homunculus', 'Fangren Marauder', 'True Believer', 'Idyllic Tutor', 'Marble Diamond', 'Mesa Enchantress', 'Hypnotic Specter', 'Crux of Fate', 'Terminate', 'Declaration in Stone', 'Thornwood Falls', 'Invigorate', 'Rise // Fall', 'Slagstorm', 'Seeker of the Way', 'Kozilek''s Predator', 'Prohibit', 'Consult the Necrosages', 'Sarkhan the Masterless', 'Blessed Alliance', 'Dakkon, Shadow Slayer', 'Chandra, Fire Artisan', 'Swooping Lookout', 'Terrarion', 'Eternal Scourge', 'Goblin Dark-Dwellers', 'Stupor', 'Solitary Confinement', 'Mindsplice Apparatus', 'Archangel of Wrath', 'Mnemonic Sphere', 'Bolas''s Citadel', 'Shred Memory', 'Avacyn''s Pilgrim', 'Gideon''s Lawkeeper', 'Mana Leak', 'Fallen Shinobi', 'Jungle Shrine', 'Summary Dismissal', 'Joint Exploration', 'Invasion of Zendikar', 'Abundant Harvest', 'Rift Bolt', 'Galerider Sliver', 'Rakdos Cackler', 'Kefnet the Mindful', 'Rampant Growth', 'Faeburrow Elder', 'Venser, the Sojourner', 'Geothermal Bog', 'Smother', 'Eldrazi Displacer', 'Dreams of Steel and Oil', 'Sin Collector', 'Swiftfoot Boots', 'Heap Doll', 'Murderous Cut', 'Arlinn Kord', 'Grave Scrabbler', 'Become Immense', 'Detention Sphere', 'Dragonskull Summit', 'Progenitor Exarch', 'Bloodthrone Vampire', 'Open the Armory', 'Commit // Memory', 'Memory Lapse', 'Howling Mine', 'Serrated Scorpion', 'Magister of Worth', 'Arcbound Ravager', 'Rootbound Crag', 'Kitesail Freebooter', 'Figure of Destiny', 'Lotus Cobra', 'Thundermaw Hellkite', 'Stinkdrinker Bandit', 'Dread Return', 'Drake Haven', 'Golgari Guildgate', 'Sire of Insanity', 'Fire Prophecy', 'Geomancer''s Gambit', 'Fiery Temper', 'Obscura Charm', 'White Sun''s Zenith', 'Annex Sentry', 'Succumb to Temptation', 'Selesnya Guildgate', 'Tocasia''s Dig Site', 'Teshar, Ancestor''s Apostle', 'Ancient Amphitheater', 'Stormrider Spirit', 'Crawling Barrens', 'Purify the Grave', 'Orim''s Chant', 'Halana and Alena, Partners', 'Battlefield Forge', 'Fetid Heath', 'Fieldmist Borderpost', 'Caves of Koilos', 'Soul Warden', 'Marauding Blight-Priest', 'Greater Tanuki', 'Mwonvuli Acid-Moss', 'Seismic Assault', 'Soltari Priest', 'Cathedral of War', 'Grapple with the Past', 'Zur''s Weirding', 'Eiganjo Castle', 'Morsel Theft', 'Sphinx''s Tutelage', 'Mana Clash', 'Fearless Fledgling', 'Ghostly Flicker', 'Chief of the Scale', 'Kazandu Blademaster', 'Genesis Wave', 'Goldmire Bridge', 'Ash Zealot', 'Sunpetal Grove', 'Cauldron Familiar', 'Control Magic', 'Yavimaya Coast', 'Mirran Crusader', 'Savage Lands', 'Radha, Heart of Keld', 'Triumphant Adventurer', 'Arbalest Engineers', 'Gift of Immortality', 'Nezahal, Primal Tide', 'Herd Migration', 'Eidolon of Blossoms', 'Razortide Bridge', 'Diffusion Sliver', 'Silumgar, the Drifting Death', 'Experimental Augury', 'Ossification', 'Voltage Surge', 'Precinct Captain', 'Toolcraft Exemplar', 'Duneblast', 'Raven''s Crime', 'Reflector Mage', 'Smuggler''s Copter', 'Tanglepool Bridge', 'Reckoner''s Bargain', 'Ponder', 'Presence of Gond', 'King Darien XLVIII', 'Cartel Aristocrat', 'Opulent Palace', 'Sterling Grove', 'Ayara, First of Locthwain', 'Cabal Therapist', 'Kami of False Hope', 'Syphon Life', 'Treasure Cruise', 'Dismal Backwater', 'Circuit Mender', 'Pharika''s Libation', 'Cultivate', 'The Flame of Keld', 'Terastodon', 'Throne of the God-Pharaoh', 'Energy Refractor', 'Patchwork Automaton', 'Ajani, Mentor of Heroes', 'Port Town', 'Dark Ritual', 'Weapons Trainer', 'Hieroglyphic Illumination', 'Argentum Masticore', 'Luminarch Ascension', 'Ramunap Excavator', 'Secluded Steppe', 'Tolarian Terror', 'Cathartic Reunion', 'Inevitable Betrayal', 'Archaeomancer', 'Riveteers Charm', 'Venser, Corpse Puppet', 'Consul''s Lieutenant', 'Temple of Plenty', 'Cliffside Lookout', 'Seal of Fire', 'Rites of Spring', 'Porphyry Nodes', 'Goblin Kaboomist', 'Endbringer', 'Sylvan Scrying', 'Shigeki, Jukai Visionary', 'Teneb, the Harvester', 'Barbed Sextant', 'Baneful Omen', 'Breya''s Apprentice', 'Unburial Rites', 'Glistener Elf', 'Gnat Miser', 'Ghitu Lavarunner', 'Malcator, Purity Overseer', 'Nature''s Lore', 'Vivid Marsh', 'Scrabbling Claws', 'Spectral Procession', 'Ral, Storm Conduit', 'Mistblade Shinobi', 'Time of Need', 'Forging the Anchor', 'Phyrexian Revoker', 'Gavony Township', 'Vampiric Rites', 'Quiet Speculation', 'Augur of Bolas', 'Elemental Masterpiece', 'Farseek', 'Oona, Queen of the Fae', 'Sinew Sliver', 'Union of the Third Path', 'Sunlit Marsh', 'Invasion of New Capenna', 'Tendo Ice Bridge', 'Rites of Initiation', 'Ethereal Haze', 'Drossforge Bridge', 'Oust', 'Chain Lightning', 'Fevered Visions', 'Ensoul Artifact', 'Deafening Clarion', 'Game Trail', 'Self-Assembler', 'General Ferrous Rokiric', 'Verduran Enchantress', 'Glimmerpost', 'Timely Reinforcements', 'Wall of Omens', 'Pore Over the Pages', 'Blanchwood Prowler', 'Dark Petition', 'Embodiment of Fury', 'Frost Titan', 'The Underworld Cookbook', 'Thrun, Breaker of Silence', 'Elderscale Wurm', 'Hall of Oracles', 'Lost Legacy', 'Corpse Cur', 'Recommission', 'Negate', 'Quicken', 'Cataclysmic Gearhulk', 'Crawling Chorus', 'Stinkweed Imp', 'Silent Gravestone', 'Shimmer Dragon', 'Nameless Inversion', 'Dissipate', 'Krosan Grip', 'Search for Tomorrow', 'Vivid Grove', 'Vampire Neonate', 'Izzet Charm', 'Lizard Blades', 'Alms of the Vein', 'Reinforced Ronin', 'Brokers Hideout', 'See Beyond', 'Out of Time', 'Vraska''s Fall', 'Lay Down Arms', 'Viashino Pyromancer', 'Mishra''s Factory', 'Nevermore', 'Doomskar', 'Phyrexian Unlife', 'Sphinx''s Herald', 'Pillage', 'Mirror Entity', 'Bloodvial Purveyor', 'Izzet Guildgate', 'Thornglint Bridge', 'Chief of the Edge', 'Fleecemane Lion', 'Fade from Memory', 'Mind''s Desire', 'Hour of Promise', 'Fact or Fiction', 'Birds of Paradise', 'Esper Charm', 'Seething Song', 'Worship', 'Primal Command', 'Murmuring Bosk', 'Bogbrew Witch', 'Bitter Reunion', 'Honor of the Pure', 'Gruul Guildgate', 'Venerated Loxodon', 'Floriferous Vinewall', 'Quest for the Holy Relic', 'Favored Hoplite', 'Bontu''s Last Reckoning', 'Guile', 'Thraben Inspector', 'Genesis Ultimatum', 'Burst Lightning', 'Azorius Charm', 'Wood Elves', 'Dragon''s Hoard', 'Mausoleum Secrets', 'Ally Encampment', 'Locket of Yesterdays', 'Seal of Removal', 'Hesitation', 'Ovika, Enigma Goliath', 'Vines of Vastwood', 'Otherworldly Journey', 'Gilt-Leaf Archdruid', 'Fracturing Gust', 'Blazing Rootwalla', 'Oath of Teferi', 'Electrolyze', 'Ambush Viper', 'Sylvan Library', 'Putrid Goblin', 'All That Glitters', 'Second Sunrise', 'Snow-Covered Plains', 'Mesmeric Fiend', 'Ancestral Blade', 'Wildfield Borderpost', 'Seal of Cleansing', 'Talisman of Unity', 'Far // Away', 'Hada Freeblade', 'Maestros Charm', 'Upheaval', 'Dispatch', 'The Seedcore', 'Falkenrath Pit Fighter', 'Phoenix Chick', 'Lurrus of the Dream-Den', 'Poet''s Quill', 'Aegis of the Gods', 'Temple of Abandon', 'Bump in the Night', 'Thrill of Possibility', 'Tranquil Thicket', 'Satyr Wayfinder', 'Duress', 'Leech Gauntlet', 'Chandra, Flamecaller', 'Necrogen Spellbomb', 'Yisan, the Wanderer Bard', 'Kappa Tech-Wrecker', 'Earthquake', 'Assemble the Legion', 'Temple of Mystery', 'Dead Weight', 'Ardent Recruit', 'Demonic Dread', 'Scour All Possibilities', 'Pyroclasm', 'Counterflux', 'Network Disruptor', 'Commune with the Gods', 'Ghostfire Blade', 'Talisman of Curiosity', 'Blue Sun''s Zenith', 'Discovery // Dispersal', 'Herald of the Pantheon', 'The Birth of Meletis', 'Bloodsoaked Champion', 'Deep Analysis', 'Vraan, Executioner Thane', 'Tolsimir, Friend to Wolves', 'Of One Mind', 'Archpriest of Shadows', 'Vraska, Relic Seeker', 'Squadron Hawk', 'Remorseful Cleric', 'Sultai Charm', 'Phyrexian Censor', 'Invoke Calamity', 'Hostage Taker', 'Golgari Rot Farm', 'Kambal, Consul of Allocation', 'Woe Strider', 'Stirring Wildwood', 'Dream Trawler', 'Drowned Catacomb', 'Knight of the White Orchid', 'Gloomshrieker', 'Malakir Rebirth', 'Jungle Hollow', 'Nomad Outpost', 'Ghostly Pilferer', 'Dovin''s Acuity', 'Vedalken Heretic', 'Garruk Wildspeaker', 'Tidespout Tyrant', 'Vindicate', 'Dimensional Infiltrator', 'Ethereal Armor', 'The Mending of Dominaria', 'Yavimaya Iconoclast', 'Ancient Ziggurat', 'Akoum Hellhound', 'Acquisitions Expert', 'Oni-Cult Anvil', 'Odds // Ends', 'Temple of Triumph', 'Glint-Sleeve Siphoner', 'Hyena Umbra', 'Unmarked Grave', 'Spellweaver Helix', 'Bring the Ending', 'Timeless Witness', 'Kargan Warleader', 'Defabricate', 'Angel of Condemnation', 'Increasing Ambition', 'Anger of the Gods', 'Smallpox', 'Lantern-Lit Graveyard', 'Settle the Wreckage', 'Invasion of Azgol', 'Oracle of Tragedy', 'Artisan of Kozilek', 'Lightning Spear', 'Lavaclaw Reaches', 'Sever the Bloodline', 'Barbarian Ring', 'Oracle of Mul Daya', 'Whispersilk Cloak', 'Ruins of Trokair', 'Shadow Prophecy', 'Kitchen Imp', 'Aetherling', 'Ichor Drinker', 'Drowned Rusalka', 'Wildborn Preserver', 'Slip Out the Back', 'Biting-Palm Ninja', 'Moderation', 'Tocatli Honor Guard', 'Sacred Peaks', 'Gigadrowse', 'Plated Geopede', 'Ancient Stirrings', 'Sarkhan, the Dragonspeaker', 'Fireblade Charger', 'Prologue to Phyresis', 'Arcum''s Astrolabe', 'Anoint with Affliction', 'Goblin Electromancer', 'Raise the Alarm', 'Sylvan Caryatid', 'Fiery Justice', 'Unholy Heat', 'Torens, Fist of the Angels', 'Jace Beleren', 'Oath of Kaya', 'Solemn Simulacrum', 'Putrid Imp', 'Gryff''s Boon', 'Knight of the Reliquary', 'Thragtusk', 'Tangle', 'Stormfist Crusader', 'Supreme Will', 'Terramorphic Expanse', 'Platinum Angel', 'Restoration Angel', 'The Antiquities War', 'Tidehollow Sculler', 'Sleight of Hand', 'Recruitment Officer', 'Lightning Strike', 'Draugr Necromancer', 'Ornithopter', 'Dying to Serve', 'Ignite Memories', 'Thirst for Meaning', 'Ogre Slumlord', 'Soul Snare', 'Vessel of Nascency', 'Priest of the Haunted Edge', 'Farhaven Elf', 'Ashenmoor Liege', 'Fyndhorn Elves', 'Kruphix''s Insight', 'Brainstone', 'Grand Arbiter Augustin IV', 'Sulfur Falls', 'Nested Shambler', 'Isolated Chapel', 'Faithless Salvaging', 'Third Path Iconoclast', 'Sigil of the Empty Throne', 'Phyrexian Dreadnought', 'Stern Dismissal', 'Might of Old Krosa', 'Madcap Experiment', 'Kumano Faces Kakkazan', 'Grove of the Guardian', 'Impulse', 'Grafted Butcher', 'Elvish Rejuvenator', 'Day of Judgment', 'Elspeth Conquers Death', 'Gideon Jura', 'Wasteland Strangler', 'Consume the Meek', 'Mistvault Bridge', 'Idyllic Beachfront', 'Archon of Sun''s Grace', 'Scab-Clan Berserker', 'Maelstrom Pulse', 'Mirage Mirror', 'Chandra, Pyromaster', 'Erebos''s Intervention', 'Desperate Ritual', 'Commence the Endgame', 'Forsake the Worldly', 'Drainpipe Vermin', 'Llanowar Augur', 'Graven Cairns', 'Tendrils of Agony', 'Ruric Thar, the Unbowed', 'Slaughter Pact', 'Demolition Field', 'Invisible Stalker', 'Raze to the Ground', 'Pain Seer', 'Precursor Golem', 'Reveillark', 'Sylvan Advocate', 'Unsubstantiate', 'Ephara, God of the Polis', 'Kogla, the Titan Ape', 'Crystal Grotto', 'Boon-Bringer Valkyrie', 'Predatory Sliver', 'Tresserhorn Sinks', 'Spell Burst', 'Overgrowth', 'Fallaji Archaeologist', 'Stoke the Flames', 'Saffi Eriksdotter', 'Rotting Rats', 'Ulcerate', 'Bone Shards', 'Moorland Haunt', 'Hard Evidence', 'No Escape', 'Doom Blade', 'Elite Inquisitor', 'Lodestone Golem', 'Evolving Wilds', 'Silversmote Ghoul', 'Flesh Reaver', 'Guildmages'' Forum', 'Tangled Islet', 'Mystic Monastery', 'Wrath of God', 'Grenzo, Dungeon Warden', 'Saproling Migration', 'Postmortem Lunge', 'Voyaging Satyr', 'Liquimetal Torque', 'Rabbit Battery', 'Sculpted Perfection', 'Fae of Wishes', 'Fertile Ground', 'Condemn', 'Scattered Groves', 'Akiri, Fearless Voyager', 'Tribute to Horobi', 'Lavinia of the Tenth', 'Ivory Tower', 'Carven Caryatid', 'Tilling Treefolk', 'Spirited Companion', 'Titania, Protector of Argoth', 'Tribal Flames', 'Serra Ascendant', 'Midnight Reaper', 'Moment of Truth', 'Caldera Hellion', 'Skyshroud Elf', 'Jukai Naturalist', 'Artistic Refusal', 'Divinity of Pride', 'Vadrik, Astral Archmage', 'Vampire Hexmage', 'Assault // Battery', 'Night of Souls'' Betrayal', 'Possibility Storm', 'Shalai, Voice of Plenty', 'Smoldering Marsh', 'Valakut Exploration', 'Xenagos, the Reveler', 'Mikokoro, Center of the Sea', 'Duplicant', 'Pull from Tomorrow', 'Knowledge Pool', 'Gather the Townsfolk', 'Norn''s Inquisitor', 'Master of Death', 'Din of the Fireherd', 'Ghost Quarter', 'Frantic Search', 'Diabolic Tutor', 'Tamiyo, Collector of Tales', 'Radiant Grove', 'Malicious Malfunction', 'Wilt', 'Bloodbraid Elf', 'Teferi, Mage of Zhalfir', 'Rix Maadi Reveler', 'Council''s Judgment', 'Kemba, Kha Enduring', 'Obzedat, Ghost Council', 'Mistveil Plains', 'Rakdos''s Return', 'Castigate', 'Sunstrike Legionnaire', 'Check for Traps', 'Karumonix, the Rat King', 'Holy Day', 'Marwyn, the Nurturer', 'Faerie Vandal', 'Zephyr Singer', 'Forbidden Alchemy', 'Temple of Deceit', 'Tear Asunder', 'Price of Progress', 'Repudiate // Replicate', 'Woodfall Primus', 'Ride Down', 'Exclude', 'Battle of Frost and Fire', 'Illuminator Virtuoso', 'Experimental Synthesizer', 'Vampire Lacerator', 'Auriok Sunchaser', 'Darksteel Citadel', 'Mastermind''s Acquisition', 'Cloudpost', 'Call to the Grave', 'Turnabout', 'Clifftop Retreat', 'Mistcutter Hydra', 'Tezzeret''s Gambit', 'Mortuary Mire', 'Scarab Feast', 'Repeal', 'Yasharn, Implacable Earth', 'Racers'' Ring', 'Eerie Ultimatum', 'Kunoros, Hound of Athreos', 'Invasion of Ergamon', 'Nephalia Drownyard', 'Celestial Colonnade', 'Hideous End', 'Skirk Prospector', 'Snow-Covered Mountain', 'Cremate', 'General''s Enforcer', 'Wonder', 'Carnophage', 'Thaumatic Compass', 'Bilious Skulldweller', 'Voidslime', 'Arch of Orazca', 'Fierce Empath', 'Sin Prodder', 'Benalish Sleeper', 'Westvale Abbey', 'Smokestack', 'Anafenza, the Foremost', 'Sweltering Suns', 'Disrupting Shoal', 'High-Speed Hoverbike', 'Tyrant''s Choice', 'Basilisk Collar', 'Surge of Salvation', 'Obscura Storefront', 'Ashen Rider', 'Genesis Hydra', 'Devil''s Play', 'Boreal Shelf', 'Arbor Elf', 'Mystical Teachings', 'Tavern Scoundrel', 'Convolute', 'Dire-Strain Rampage', 'Leonin Relic-Warder', 'Simian Sling', 'Tectonic Edge', 'Healer''s Hawk', 'Destroy Evil', 'Dryad Militant', 'Enchantress''s Presence', 'Blight Mamba', 'Thopter Mechanic', 'Collected Conjuring', 'Change the Equation', 'Lagrella, the Magpie', 'Drown in Ichor', 'Memoricide', 'Glamerdye', 'Victim of Night', 'Canopy Vista', 'Firewild Borderpost', 'Empyrial Plate', 'Sandwurm Convergence', 'Nine Lives', 'Spikefield Hazard', 'Melira, Sylvok Outcast', 'Search for Azcanta', 'Disciple of the Vault', 'Big Game Hunter', 'Brain Freeze', 'River of Tears', 'Altar of the Brood', 'Needle Spires', 'Demonic Bargain', 'Banishing Slash', 'Ichorclaw Myr', 'Erebos, Bleak-Hearted', 'Bloodchief''s Thirst', 'Scrapwork Mutt', 'Silundi Vision', 'Colossal Skyturtle', 'Shimmerdrift Vale', 'Hope of Ghirapur', 'Elvish Visionary', 'Engulf the Shore', 'Shape Anew', 'Nullpriest of Oblivion', 'Curse of Exhaustion', 'Anguished Unmaking', 'Tomebound Lich', 'Concealing Curtains', 'Ammit Eternal', 'Waking the Trolls', 'Nimbus Maze', 'Timeless Dragon', 'Helm of the Host', 'Twinshot Sniper', 'Rise and Shine', 'Trace of Abundance', 'Frostwalk Bastion', 'Orzhov Guildgate', 'Forbid', 'Elixir of Immortality', 'Braids, Cabal Minion', 'Shardless Agent', 'Faith''s Reward', 'Kemba, Kha Regent', 'Molten Tributary', 'Aether Spellbomb', 'Angrath, the Flame-Chained', 'Dead // Gone', 'Famished Paladin', 'Cabal Ritual', 'Vault Skirge', 'Gravelgill Duo', 'Crack the Earth', 'Voldaren Pariah', 'Wrench Mind', 'Kher Keep', 'Harmonize', 'Martyr of Sands', 'Meeting of Minds', 'Approach of the Second Sun', 'Zombie Infestation', 'Sea Gate Oracle', 'Elas il-Kor, Sadistic Pilgrim', 'Haunted Fengraf', 'Armored Scrapgorger', 'Rustvale Bridge', 'Glimpse of Tomorrow', 'Miasmic Mummy', 'Ulvenwald Hydra', 'Shard Volley', 'Elvish Mystic', 'Metalwork Colossus', 'Chaotic Transformation', 'Glacial Fortress', 'Kalastria Healer', 'Terminus', 'Jwari Disruption', 'Rule of Law', 'Raffine''s Informant', 'Psychic Possession', 'Divest', 'Gallia of the Endless Dance', 'Doom Foretold', 'Groundswell', 'Kjeldoran Outpost', 'Thawing Glaciers', 'Silverbluff Bridge', 'Dross Skullbomb', 'Giant Killer', 'Delay', 'Tribute to Hunger', 'Unctus, Grand Metatect', 'Monument to Perfection', 'Tooth and Nail', 'Dawn of Hope', 'Fumigate', 'Frenetic Sliver', 'Wooded Bastion', 'Sins of the Past', 'Leather Armor', 'Slogurk, the Overslime', 'Vryn Wingmare', 'Judith, the Scourge Diva', 'Felidar Cub', 'Haunted Mire', 'Archangel Avacyn', 'Abiding Grace', 'Call of the Death-Dweller', 'Simian Spirit Guide', 'Black Sun''s Zenith', 'Empyrial Armor', 'Gadrak, the Crown-Scourge', 'Nekrataal', 'Steel Overseer', 'Green Sun''s Twilight', 'Strike It Rich', 'Burning of Xinye', 'Marit Lage''s Slumber', 'Leonin Warleader', 'Makeshift Mannequin', 'Late to Dinner', 'Accorder Paladin', 'Silverblade Paladin', 'Protect the Negotiators', 'Temple of Malady', 'Death Cloud', 'Staff of Domination', 'Arguel''s Blood Fast', 'Shambling Vent', 'Kor Firewalker', 'Prophetic Prism', 'Wanderwine Hub', 'Polukranos, World Eater', 'Xerex Strobe-Knight', 'Orzhov Basilica', 'Flame Rift', 'Mishra''s Research Desk', 'Nimble Obstructionist', 'Sandsteppe Citadel', 'Battle of Wits', 'Scuttling Doom Engine', 'Sculpting Steel', 'Vault of the Archangel', 'Steppe Lynx', 'Liliana Vess', 'Ravenous Squirrel', 'Distorted Curiosity', 'Knight of Glory', 'Gift of Estates', 'Epic Experiment', 'Slagwoods Bridge', 'Oona''s Prowler', 'Sorcerer''s Wand', 'Ivy Lane Denizen', 'Faerie Miscreant', 'Lazotep Chancellor', 'Mindslaver', 'Goblin Bombardment', 'Sunken Hollow', 'Misery Charm', 'Simic Guildgate', 'Vraska''s Contempt', 'Putrefy', 'Spell Pierce', 'Etherium Sculptor', 'Murderous Redcap', 'Thassa''s Intervention', 'Stoic Rebuttal', 'Delver of Secrets', 'Open the Gates', 'Thopter Spy Network', 'Karn''s Bastion', 'Pardic Miner', 'Jokulhaups', 'Languish'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite

vorpal-buildbot commented 1 year ago

Exceeded slow_query limit (2.7 > 0.5) in mysql: ```

    SELECT

    d.id,
    d.finish,
    d.decklist_hash,
    cache.active_date,
    cache.wins,
    cache.losses,
    cache.draws,
    cache.color_sort,
    ct.name AS competition_type_name

    FROM
        deck AS d

    LEFT JOIN
        competition AS c ON d.competition_id = c.id
    LEFT JOIN
        competition_series AS cs ON cs.id = c.competition_series_id
    LEFT JOIN
        competition_type AS ct ON ct.id = cs.competition_type_id

    LEFT JOIN
        deck_cache AS cache ON d.id = cache.deck_id
    LEFT JOIN deck_cache AS season ON d.id = season.deck_id
    WHERE
        (d.id IN (SELECT deck_id FROM deck_card WHERE card IN ('Cleansing Wildfire', 'Rakdos Cackler', 'Solemn Simulacrum', 'Spell Burst', 'Ghost Quarter', 'Temple of Malady', 'Michiko''s Reign of Truth', 'Bogbrew Witch', 'Illuminator Virtuoso', 'Dawn of Hope', 'Bilious Skulldweller', 'Gift of Immortality', 'Commune with the Gods', 'Chief Engineer', 'Akiri, Fearless Voyager', 'Silverblade Paladin', 'Scattered Groves', 'Crawling Chorus', 'Fireblade Charger', 'Ground Seal', 'Gather the Townsfolk', 'Shape Anew', 'Stromkirk Noble', 'Ransack the Lab', 'Grove of the Guardian', 'Molten Tributary', 'Think Twice', 'Pariah', 'Tilling Treefolk', 'Utter End', 'Boros Guildgate', 'Sylvan Library', 'Tectonic Edge', 'Duress', 'Izzet Charm', 'Graaz, Unstoppable Juggernaut', 'Soltari Priest', 'Stormrider Spirit', 'Anafenza, the Foremost', 'Dark-Dweller Oracle', 'Bituminous Blast', 'Biting-Palm Ninja', 'Thirst for Meaning', 'Woodland Cemetery', 'Alms of the Vein', 'Hornet Queen', 'Founding the Third Path', 'Invigorate', 'Defabricate', 'Forbid', 'Mindsplice Apparatus', 'Kitchen Finks', 'Destroy Evil', 'Recruitment Officer', 'Bident of Thassa', 'Decree of Justice', 'Settle the Wreckage', 'Ancient Stirrings', 'The Birth of Meletis', 'Maze''s End', 'Phyrexian Unlife', 'Satyr Wayfinder', 'Hideous End', 'Bogardan Hellkite', 'Acidic Slime', 'Primal Command', 'Fabricate', 'Night Market Lookout', 'Deprive', 'Veinfire Borderpost', 'Elves of Deep Shadow', 'Protect the Negotiators', 'Lay Down Arms', 'Arbalest Engineers', 'Greater Tanuki', 'Koth, Fire of Resistance', 'Gloomshrieker', 'Kor Firewalker', 'Ride Down', 'Voidslime', 'Valiant Changeling', 'Liquimetal Torque', 'Steppe Lynx', 'Ichor Drinker', 'Tribal Flames', 'Gravelgill Duo', 'Ardent Recruit', 'Heliod''s Intervention', 'Divinity of Pride', 'Rustvale Bridge', 'Change the Equation', 'Nightscape Familiar', 'Cabal Ritual', 'Precinct Captain', 'Pain Seer', 'Fertile Ground', 'Leonin Arbiter', 'Battlefield Forge', 'Rites of Spring', 'Temple of Enlightenment', 'Sylvan Caryatid', 'Mistblade Shinobi', 'Seal of Cleansing', 'Ashenmoor Liege', 'Bolas''s Citadel', 'Vindicate', 'Doom Blade', 'Toolcraft Exemplar', 'Peek', 'Misery Charm', 'Garruk Wildspeaker', 'Putrid Imp', 'Murmuring Bosk', 'Empyrial Armor', 'Kambal, Consul of Allocation', 'Orcish Lumberjack', 'Become Immense', 'Forbidden Alchemy', 'Silversmote Ghoul', 'Port Town', 'Tezzeret, Artifice Master', 'Sylvan Scrying', 'Evangel of Synthesis', 'Second Sunrise', 'Boreal Shelf', 'Priest of the Haunted Edge', 'Mistcutter Hydra', 'Sinew Sliver', 'Prophetic Prism', 'Consult the Necrosages', 'Spirited Companion', 'Timeless Dragon', 'Luminarch Ascension', 'Grand Arbiter Augustin IV', 'Blood on the Snow', 'Altered Ego', 'Eiganjo Castle', 'Wall of Omens', 'Territorial Kavu', 'Invasion of Zendikar', 'Throat Slitter', 'Faerie Vandal', 'Temple of Deceit', 'Increasing Ambition', 'Otherworldly Journey', 'Nine Lives', 'Dispatch', 'Eldrazi Displacer', 'Augur of Bolas', 'Archpriest of Shadows', 'Gideon Jura', 'Mastermind''s Acquisition', 'Darksteel Colossus', 'Frostwalk Bastion', 'Gift of Estates', 'Orim''s Chant', 'Invoke Calamity', 'Yavimaya Coast', 'Hall of Oracles', 'Ephara, God of the Polis', 'Glass of the Guildpact', 'Acquisitions Expert', 'Bubbling Cauldron', 'Kjeldoran Outpost', 'Buried Ruin', 'Wolfbriar Elemental', 'Disrupting Shoal', 'Rise // Fall', 'Smokestack', 'Wrath of God', 'Dead // Gone', 'Worship', 'Fumigate', 'Delay', 'Canopy Vista', 'Consume the Meek', 'Vigor', 'Burst Lightning', 'Argentum Masticore', 'Expedition Envoy', 'Siege Rhino', 'Zephyr Singer', 'World Shaper', 'Reveillark', 'Fleecemane Lion', 'Obscura Storefront', 'Upheaval', 'Shambling Vent', 'Drowner of Hope', 'Wayward Guide-Beast', 'Dakkon, Shadow Slayer', 'Kemba, Kha Regent', 'Seal of Fire', 'Chittering Rats', 'Dovin''s Acuity', 'Maelstrom Pulse', 'Purify the Grave', 'Aetherling', 'Kiora, the Crashing Wave', 'Vampire Lacerator', 'Tocasia''s Dig Site', 'Mindcrank', 'Thopter Mechanic', 'Rally the Ancestors', 'Oust', 'Quiet Speculation', 'Judith, the Scourge Diva', 'Voidwing Hybrid', 'Earthshaker Khenra', 'Heap Doll', 'Trickbind', 'Thundermaw Hellkite', 'Sculpted Perfection', 'Forging the Anchor', 'Pyrite Spellbomb', 'Yisan, the Wanderer Bard', 'Wasteland Strangler', 'Curse of Exhaustion', 'Wildborn Preserver', 'King Darien XLVIII', 'Trace of Abundance', 'Shimmer Dragon', 'Restore Balance', 'Negate', 'Possibility Storm', 'Talisman of Unity', 'Pardic Miner', 'Tamiyo, Collector of Tales', 'Temple of Plenty', 'Gutterbones', 'Temple of Mystery', 'Stupor', 'Apostle''s Blessing', 'Sphinx''s Tutelage', 'Seal of Removal', 'Thraben Inspector', 'Kumano Faces Kakkazan', 'Commune with Spirits', 'Tanglepool Bridge', 'Wrenn''s Resolve', 'Loxodon Smiter', 'Deep Analysis', 'Lantern-Lit Graveyard', 'Elvish Mystic', 'Sever the Bloodline', 'Botanical Plaza', 'Oracle of Mul Daya', 'Knight of Glory', 'Tresserhorn Sinks', 'Froghemoth', 'Unholy Heat', 'Network Disruptor', 'Frantic Inventory', 'Devious Cover-Up', 'Slogurk, the Overslime', 'Oni-Cult Anvil', 'Notorious Throng', 'Flaying Tendrils', 'Curiosity', 'Myth Realized', 'Leather Armor', 'Reckless Charge', 'Sunlit Marsh', 'Experimental Augury', 'Witching Well', 'Obzedat, Ghost Council', 'Sorin, Vengeful Bloodlord', 'Braids, Cabal Minion', 'Yawgmoth''s Bargain', 'Angel of Condemnation', 'Thawing Glaciers', 'Inscribed Tablet', 'Hero''s Downfall', 'Platinum Angel', 'Embodiment of Fury', 'Mishra''s Research Desk', 'Corpse Cur', 'Abyssal Persecutor', 'Wood Elves', 'Cut Down', 'Tocatli Honor Guard', 'Ponder', 'Llanowar Mentor', 'Sol Talisman', 'Sacred Peaks', 'Bedlam Reveler', 'Glacial Fortress', 'Combat Thresher', 'The Scorpion God', 'Raven''s Crime', 'No Escape', 'Falkenrath Pit Fighter', 'Sculpting Steel', 'Heartless Act', 'Reckoner''s Bargain', 'Liliana Vess', 'Dragonskull Summit', 'Malicious Malfunction', 'Maestros Charm', 'Corrupted Crossroads', 'Waking the Trolls', 'Kor Skyfisher', 'Fetid Heath', 'Gnawing Vermin', 'Fae of Wishes', 'Barbed Sextant', 'Tooth and Nail', 'Spatial Contortion', 'Syphon Life', 'Dragon''s Hoard', 'Hissing Quagmire', 'Cabal Therapist', 'Explore', 'Sprite Dragon', 'Shard Volley', 'Lotus Cobra', 'Simic Guildgate', 'Of One Mind', 'Tavern Scoundrel', 'Solitary Confinement', 'Riveteers Charm', 'Aetherspouts', 'Merciless Eviction', 'Hyena Umbra', 'Evacuation', 'Gird for Battle', 'Odds // Ends', 'Bloodline Keeper', 'Thrash // Threat', 'Glorybringer', 'Hesitation', 'Thousand-Faced Shadow', 'Barter in Blood', 'See Beyond', 'Cabaretti Courtyard', 'Sandwurm Convergence', 'Secluded Steppe', 'Nature''s Lore', 'Stinkdrinker Bandit', 'Scatter Ray', 'Sinister Concoction', 'White Sun''s Zenith', 'Flame Rift', 'Haunted Fengraf', 'Universal Automaton', 'Vadrik, Astral Archmage', 'Zhalfirin Shapecraft', 'Stoic Rebuttal', 'Argentum Armor', 'Mystical Teachings', 'Perilous Myr', 'Skyshroud Elf', 'Skyclave Shade', 'Dreadhorde Butcher', 'Tendo Ice Bridge', 'Goblin Electromancer', 'Marwyn, the Nurturer', 'Simian Sling', 'Gitaxian Probe', 'Meeting of Minds', 'Gateway Plaza', 'Gigadrowse', 'Nekrataal', 'Temple of Triumph', 'Shardless Agent', 'Drowned Catacomb', 'Altar of the Brood', 'Distorted Curiosity', 'Scour All Possibilities', 'Burning of Xinye', 'Pack Rat', 'Lizard Blades', 'Kalastria Healer', 'Big Game Hunter', 'Artistic Refusal', 'Ruin Crab', 'Throne of the God-Pharaoh', 'Thornwood Falls', 'Venser, Corpse Puppet', 'Sire of Insanity', 'Grand Architect', 'Sunpetal Grove', 'Canyon Slough', 'Mausoleum Secrets', 'Skirk Prospector', 'Vraska, Relic Seeker', 'Feed the Swarm', 'Grapple with the Past', 'Gruul Turf', 'Delver of Secrets', 'Ral, Storm Conduit', 'Elvish Archdruid', 'Marauding Blight-Priest', 'Halimar Excavator', 'Cathartic Reunion', 'Forked Bolt', 'Mishra''s Factory', 'Lose Focus', 'Chandra, Flamecaller', 'Approach of the Second Sun', 'Verduran Enchantress', 'Ajani, Mentor of Heroes', 'Woe Strider', 'Briarbridge Tracker', 'Emmara, Soul of the Accord', 'Swooping Lookout', 'Temple of Silence', 'Combat Research', 'Supreme Will', 'Viashino Pyromancer', 'Snow-Covered Swamp', 'Torens, Fist of the Angels', 'Ral, Izzet Viceroy', 'Fyndhorn Elves', 'Chamber Sentry', 'Deep Forest Hermit', 'Rally the Peasants', 'Pull from Tomorrow', 'Nested Shambler', 'Postmortem Lunge', 'Hope of Ghirapur', 'Day of Judgment', 'Ivory Tower', 'Figure of Destiny', 'Wooded Bastion', 'River of Tears', 'Wing Commando', 'Chief of the Edge', 'Invasion of Kylem', 'Jace, Memory Adept', 'Fearless Fledgling', 'Altar of the Goyf', 'Dismal Backwater', 'Dread Return', 'Carnophage', 'Knight of the Reliquary', 'Duneblast', 'Dawn Charm', 'Elemental Masterpiece', 'Master of Death', 'Felidar Cub', 'Remorseful Cleric', 'Heliod''s Pilgrim', 'Invasion of New Capenna', 'Nimble Larcenist', 'Midnight Reaper', 'Elixir of Immortality', 'Ulamog''s Crusher', 'Felidar Retreat', 'Voldaren Pariah', 'Thrun, Breaker of Silence', 'Elspeth Conquers Death', 'Fiery Justice', 'Kessig Wolf Run', 'Vessel of Nascency', 'Psychic Possession', 'Squee, Goblin Nabob', 'Mikokoro, Center of the Sea', 'Faithless Salvaging', 'Nezahal, Primal Tide', 'Kiora Bests the Sea God', 'Choked Estuary', 'Discovery // Dispersal', 'Sorcerer''s Wand', 'Big Score', 'Poet''s Quill', 'Wonder', 'Crack the Earth', 'Rakdos Guildgate', 'Herd Migration', 'Llanowar Augur', 'Sigil of the Empty Throne', 'Spikefield Hazard', 'Idyllic Tutor', 'Ally Encampment', 'Jungle Shrine', 'Smuggler''s Copter', 'Relic Seeker', 'Arlinn Kord', 'Succumb to Temptation', 'Tymaret, Chosen from Death', 'Rain of Tears', 'Cabal Initiate', 'Grave Titan', 'Godo, Bandit Warlord', 'Basilisk Collar', 'Grolnok, the Omnivore', 'Gather the Pack', 'Cloudshredder Sliver', 'Death Cloud', 'Genesis Wave', 'Assault // Battery', 'Go for the Throat', 'Desperate Ritual', 'Vexing Shusher', 'Pharika''s Cure', 'Raise the Alarm', 'Disenchant', 'Agonizing Remorse', 'Glamerdye', 'Ensoul Artifact', 'Return to the Ranks', 'Faith''s Reward', 'Llanowar Tribe', 'Sterling Grove', 'Gideon''s Intervention', 'Predatory Sliver', 'Bubbling Muck', 'Lightning Strike', 'Might of Old Krosa', 'Vault of the Archangel', 'Chief of the Foundry', 'Ghostfire Blade', 'Dimensional Infiltrator', 'Artisan of Kozilek', 'Scab-Clan Berserker', 'Nimble Obstructionist', 'Graven Cairns', 'Duskmantle Guildmage', 'Unsubstantiate', 'Hostage Taker', 'Sunblade Samurai', 'Scrying Sheets', 'Frost Titan', 'Hypnotic Specter', 'Narcomoeba', 'Phyrexian Censor', 'Raze to the Ground', 'Howling Mine', 'Mortuary Mire', 'Unctus, Grand Metatect', 'Clifftop Retreat', 'Expedite', 'Ogre Slumlord', 'Tidehollow Sculler', 'Impulse', 'Ulvenwald Hydra', 'Incinerate', 'Zombie Infestation', 'Flooded Grove', 'Gadrak, the Crown-Scourge', 'Bone Shards', 'Ruric Thar, the Unbowed', 'Viscera Seer', 'Fangren Marauder', 'Evolving Wilds', 'Wandering Fumarole', 'Sphinx''s Herald', 'Ichorclaw Myr', 'Angrath, the Flame-Chained', 'Miasmic Mummy', 'Groundswell', 'Pyroclasm', 'Terramorphic Expanse', 'Simian Spirit Guide', 'Assemble the Legion', 'Eerie Ultimatum', 'Malcator, Purity Overseer', 'Spectral Procession', 'Mouth of Ronom', 'Karumonix, the Rat King', 'Genesis Ultimatum', 'Turnabout', 'Phalanx Leader', 'Springleaf Drum', 'Putrid Goblin', 'Snow-Covered Mountain', 'Reinforced Ronin', 'Guildmages'' Forum', 'Galvanic Relay', 'Raging Ravine', 'Crux of Fate', 'Jace, Architect of Thought', 'Malakir Rebirth', 'Abiding Grace', 'Joint Exploration', 'Overgrowth', 'True Believer', 'Izzet Guildgate', 'Thassa''s Intervention', 'Hooting Mandrills', 'Gilt-Leaf Archdruid', 'Kappa Tech-Wrecker', 'Out of Time', 'Goblin Kaboomist', 'Yasharn, Implacable Earth', 'Sin Collector', 'Blightbelly Rat', 'Stone Rain', 'Honor of the Pure', 'Collected Conjuring', 'Lagrella, the Magpie', 'Zur''s Weirding', 'Westvale Abbey', 'Circular Logic', 'Ambush Viper', 'Zuran Orb', 'Kher Keep', 'Ossification', 'Radha, Heart of Keld', 'Vampiric Rites', 'Grand Abolisher', 'Dryad Militant', 'Bontu''s Last Reckoning', 'Empty the Warrens', 'Sarkhan the Masterless', 'Frenetic Sliver', 'Auriok Sunchaser', 'Birds of Paradise', 'Whispersilk Cloak', 'Timely Reinforcements', 'Arcum''s Astrolabe', 'Glint-Sleeve Siphoner', 'Silumgar''s Scorn', 'Seismic Assault', 'Surge of Salvation', 'Kogla, the Titan Ape', 'Bastion of Remembrance', 'Dokuchi Silencer', 'Brokers Hideout', 'Eldrazi Skyspawner', 'Tranquil Thicket', 'Sea Gate Oracle', 'Akroan Crusader', 'Diffusion Sliver', 'Tribute to Hunger', 'Silent Gravestone', 'Mirage Mirror', 'Late to Dinner', 'Benevolent Bodyguard', 'Fruit of Tizerus', 'Detention Sphere', 'Weapons Trainer', 'Executioner''s Capsule', 'Pyretic Ritual', 'Inkwell Leviathan', 'Dark Ritual', 'Ovika, Enigma Goliath', 'Commence the Endgame', 'Unburial Rites', 'Shivan Reef', 'Precursor Golem', 'Valakut Exploration', 'Changeling Outcast', 'Union of the Third Path', 'Orzhov Basilica', 'Unmarked Grave', 'Arch of Orazca', 'Murderous Cut', 'Ethereal Armor', 'Fieldmist Borderpost', 'High-Speed Hoverbike', 'Brave the Elements', 'Leech Gauntlet', 'Triumphant Adventurer', 'Terminus', 'Lavinia of the Tenth', 'Counterflux', 'Oona''s Grace', 'Electrolyze', 'Talisman of Curiosity', 'Serrated Scorpion', 'Myr Battlesphere', 'Condemn', 'Smother', 'Obstinate Baloth', 'Bump in the Night', 'Graven Lore', 'Destiny Spinner', 'Sea-Dasher Octopus', 'Hard Evidence', 'Scarab Feast', 'Azorius Charm', 'Epic Experiment', 'Forsake the Worldly', 'Drowned Rusalka', 'Cultivate', 'Ranger of Eos', 'Slagstorm', 'Demolition Field', 'Green Sun''s Twilight', 'Selesnya Guildgate', 'Demonic Bargain', 'Riveteers Overlook', 'Case the Joint', 'Etherium Sculptor', 'Xerex Strobe-Knight', 'Ancient Amphitheater', 'Blightning', 'Morsel Theft', 'Disallow', 'Silumgar, the Drifting Death', 'Teferi, Mage of Zhalfir', 'Elvish Rejuvenator', 'Blade Splicer', 'Esper Charm', 'Quest for the Holy Relic', 'Stern Dismissal', 'Haunted Dead', 'Gods Willing', 'Moon-Circuit Hacker', 'Endbringer', 'Restoration Angel', 'Icehide Golem', 'Opulent Palace', 'Cartel Aristocrat', 'Flametongue Kavu', 'Idyllic Beachfront', 'Needle Spires', 'Angel of Grace', 'Duplicant', 'Call of the Death-Dweller', 'Shizo, Death''s Storehouse', 'Krosan Grip', 'Rampant Growth', 'Phantasmal Image', 'Servo Exhibition', 'Ingenious Infiltrator', 'Fallen Shinobi', 'Kitesail Freebooter', 'Guile', 'Inevitable Betrayal', 'Sin Prodder', 'Winds of Abandon', 'Elas il-Kor, Sadistic Pilgrim', 'Leonin Relic-Warder', 'Goblin Dark-Dwellers', 'Frost Marsh', 'Invasion of Amonkhet', 'Black Sun''s Zenith', 'Archangel Avacyn', 'Victim of Night', 'Earthquake', 'Corrupted Conviction', 'Tyrant''s Choice', 'Commune with Nature', 'Choking Sands', 'Runed Halo', 'Engulf the Shore', 'Consuming Vapors', 'Rix Maadi Reveler', 'Thopter Spy Network', 'Dire-Strain Rampage', 'Glistener Elf', 'Cremate', 'Jokulhaups', 'Check for Traps', 'Phyrexian Dreadnought', 'Abzan Charm', 'Fevered Visions', 'Dead of Winter', 'Mesmeric Fiend', 'Necrogen Spellbomb', 'Golgari Rot Farm', 'Gleeful Demolition', 'Putrefy', 'Vivid Grove', 'Shimmerdrift Vale', 'Dusk // Dawn', 'Bloodchief''s Thirst', 'Stirring Wildwood', 'Racers'' Ring', 'Serra Ascendant', 'Surrak, the Hunt Caller', 'Chandra, Pyromaster', 'Bitter Ordeal', 'Dissipate', 'Healer''s Hawk', 'Stinkweed Imp', 'Arguel''s Blood Fast', 'Oath of Kaya', 'Mirran Crusader', 'Geothermal Bog', 'Geomancer''s Gambit', 'Stormfist Crusader', 'Third Path Iconoclast', 'Mind''s Desire', 'Midnight Guard', 'Moment of Truth', 'The Mending of Dominaria', 'Sweltering Suns', 'Kitchen Imp', 'Favored Hoplite', 'Folio of Fancies', 'Dead Weight', 'Careful Cultivation', 'Into the Roil', 'Greater Gargadon', 'Rotting Rats', 'Ornithopter', 'Venerated Loxodon', 'Rule of Law', 'Fracturing Gust', 'Strike It Rich', 'Rakdos Charm', 'Resolute Reinforcements', 'Xenagos, the Reveler', 'Spectral Shift', 'Far // Away', 'Scrapwork Mutt', 'Ruins of Trokair', 'Council''s Judgment', 'Sandsteppe Citadel', 'Grim Haruspex', 'Mwonvuli Acid-Moss', 'Flesh Reaver', 'Tidespout Tyrant', 'Blessed Alliance', 'Prologue to Phyresis', 'Battle of Wits', 'Archon of Sun''s Grace', 'Kaya, Ghost Assassin', 'Fallaji Archaeologist', 'Nether Spirit', 'Kargan Warleader', 'Commit // Memory', 'Eternal Scourge', 'Saffi Eriksdotter', 'Scuttling Doom Engine', 'Dregscape Zombie', 'Ghitu Lavarunner', 'Inscription of Ruin', 'Caves of Koilos', 'Tattermunge Maniac', 'Anticipate', 'Divest', 'Tolarian Terror', 'Spell Pierce', 'Boon-Bringer Valkyrie', 'Repeal', 'Chain Lightning', 'Lost Legacy', 'Repudiate // Replicate', 'Open the Gates', 'Brain Freeze', 'Vraska''s Fall', 'Circuit Mender', 'Rishkar, Peema Renegade', 'Demigod of Revenge', 'Chandra, Fire Artisan', 'Ulcerate', 'Prosperous Thief', 'Baneful Omen', 'Unlucky Witness', 'Golgari Guildgate', 'Rocco, Cabaretti Caterer', 'Kunoros, Hound of Athreos', 'Yorion, Sky Nomad', 'Sylvan Advocate', 'Glimmerpost', 'Ethersworn Sphinx', 'Invisible Stalker', 'Rites of Initiation', 'Festering Newt', 'Vampire Neonate', 'Herald of the Pantheon', 'Game Trail', 'Draugr Necromancer', 'Melira, Sylvok Outcast', 'Blight Mamba', 'Krenko, Tin Street Kingpin', 'Kazandu Blademaster', 'Tribute to Horobi', 'Kabira Takedown', 'Kozilek''s Predator', 'Seedcradle Witch', 'Teneb, the Harvester', 'Grenzo, Dungeon Warden', 'Madcap Experiment', 'Rakdos''s Return', 'Basking Rootwalla', 'Master of Etherium', 'Banishing Slash', 'Stoke the Flames', 'Marit Lage''s Slumber', 'Curious Homunculus', 'Fight as One', 'Cloudpost', 'Vedalken Heretic', 'Bloodvial Purveyor', 'Volt Charge', 'Sheltered Thicket', 'The Underworld Cookbook', 'Terminate', 'Wanderwine Hub', 'Holy Day', 'Nameless Inversion', 'Wrench Mind', 'Blanchwood Prowler', 'Temple of Abandon', 'Open the Armory', 'Bring the Ending', 'Mardu Charm', 'Makeshift Mannequin', 'Carven Caryatid', 'Sins of the Past', 'Dying to Serve', 'Rootbound Crag', 'Nomad Outpost', 'Concealing Curtains', 'Azorius Guildgate', 'Angel of Serenity', 'Celestial Colonnade', 'Silver-Fur Master', 'Famished Paladin', 'Oblivion Ring', 'Bloodsoaked Champion', 'Recommission', 'Gryff''s Boon', 'Control Magic', 'Into the Story', 'Kami of False Hope', 'Mistveil Plains', 'Galerider Sliver', 'Invasion of Azgol', 'Patchwork Automaton', 'Orzhov Charm', 'Izzet Boilerworks', 'Rise and Shine', 'Nimble Trapfinder', 'Lurrus of the Dream-Den', 'Blazing Rootwalla', 'Fiery Temper', 'Avacyn''s Pilgrim', 'Yavimaya Iconoclast', 'Blue Sun''s Zenith', 'The Flame of Keld', 'Lodestone Golem', 'Ash Zealot', 'Doomed Traveler', 'Vraska''s Contempt', 'Mistvault Bridge', 'Voltage Surge', 'Adanto Vanguard', 'Rust Goliath', 'Arbor Elf', 'Abundant Harvest', 'Ghostly Pilferer', 'Scrabbling Claws', 'Hinterland Harbor', 'Metalwork Colossus', 'Invasion of Ergamon', 'Ajani, Adversary of Tyrants', 'Dread Wanderer', 'Seeker of the Way', 'Spellweaver Helix', 'Mulch', 'Stubborn Denial', 'Wild Cantor', 'Call to the Grave', 'Grafted Butcher', 'Woodfall Primus', 'Goldmire Bridge', 'Shadow Prophecy', 'Tear Asunder', 'Languish', 'Archaeomancer', 'Bitter Reunion', 'Price of Progress', 'Breya''s Apprentice', 'Fetid Pools', 'Soul Warden', 'Vivid Marsh', 'Wildfield Borderpost', 'Summary Dismissal', 'Genesis Hydra', 'Drake Haven', 'Vraan, Executioner Thane', 'Drainpipe Vermin', 'Ashen Rider', 'Radiant Grove', 'Mistvein Borderpost', 'Firewild Borderpost', 'Goblin Bombardment', 'Urban Evolution', 'Swiftfoot Boots', 'Isolated Chapel', 'Disciple of the Vault', 'Erebos''s Intervention', 'Vault Skirge', 'Pillar of the Paruns', 'Sign in Blood', 'Gruul Spellbreaker', 'Dimir Guildgate', 'Ashnod, Flesh Mechanist', 'Twinshot Sniper', 'Obliterate', 'Energy Refractor', 'Scrapheap Scrounger', 'Sphere of Safety', 'Tezzeret the Schemer', 'Fire Prophecy', 'Ancestral Blade', 'Tainted Indulgence', 'The Seedcore', 'Lightning Spear', 'Crawling Barrens', 'The Antiquities War', 'Contaminated Aquifer', 'Kefnet the Mindful', 'Raffine''s Informant', 'Steel Overseer', 'Plated Geopede', 'Razortide Bridge', 'Phyrexian Missionary', 'Grave Scrabbler', 'Vivid Crag', 'Dark Prophecy', 'Disciple of Bolas', 'Thrill of Possibility', 'Hanweir Garrison', 'Forgotten Cave', 'Moorland Haunt', 'Fiery Gambit', 'Mazemind Tome', 'Polukranos, World Eater', 'Frantic Search', 'Consul''s Lieutenant', 'Jwari Disruption', 'Marble Diamond', 'Rift Bolt', 'Prohibit', 'Graveborn Muse', 'Tolsimir, Friend to Wolves', 'Din of the Fireherd', 'Anger of the Gods', 'Knowledge Pool', 'Tempest Djinn', 'Leonin Warleader', 'Brave the Sands', 'Wizard''s Retort', 'Dreadhorde Invasion', 'Invasion of Regatha', 'Tangle', 'Nissa, Steward of Elements', 'Pharika''s Libation', 'Vryn Wingmare', 'Martyr of Sands', 'Blood Artist', 'Fact or Fiction', 'Rune Snag', 'Ayli, Eternal Pilgrim', 'Dimir Aqueduct', 'Nezumi Graverobber', 'Savage Lands', 'Battle of Frost and Fire', 'Ishkanah, Grafwidow', 'Squadron Hawk', 'Coiling Oracle', 'Stir the Grave', 'Giant Killer', 'Oracle of Tragedy', 'Ammit Eternal', 'Seething Song', 'Shred Memory', 'Castigate', 'All That Glitters', 'Resurgent Belief', 'Ignite Memories', 'Lavaclaw Reaches', 'Slip Out the Back', 'Staff of Domination', 'Sudden Edict', 'Psychatog', 'Judge''s Familiar', 'Jor Kadeen, First Goldwarden', 'Smoldering Marsh', 'Vampire Nighthawk', 'Glimpse of Tomorrow', 'Moderation', 'Pore Over the Pages', 'Reckless Rage', 'Norn''s Inquisitor', 'Lazotep Chancellor', 'Accorder Paladin', 'Gruul Guildgate', 'Jace Beleren', 'Mana Leak', 'Porphyry Nodes', 'Oona, Queen of the Fae', 'Summer Bloom', 'Invasion of Kaladesh', 'Brineborn Cutthroat', 'Benalish Sleeper', 'Fade from Memory', 'Declaration in Stone', 'Dream Trawler', 'Mirror Entity', 'Vapor Snag', 'The Celestus', 'Diabolic Tutor', 'Huatli, Radiant Champion', 'Jukai Naturalist', 'Hopeful Eidolon', 'Erebos, Bleak-Hearted', 'Devil''s Play', 'Magister of Worth', 'Night of Souls'' Betrayal', 'Timeless Witness', 'Geyadrone Dihada', 'Tangled Islet', 'Cauldron Familiar', 'Monument to Perfection', 'Anoint with Affliction', 'Aetherblade Agent', 'Sunstrike Legionnaire', 'Mystic Monastery', 'Nissa, Worldwaker', 'Caldera Hellion', 'Secluded Courtyard', 'Halana and Alena, Partners', 'Cliffside Lookout', 'Vampire Hexmage', 'Murderous Redcap', 'Archangel of Wrath', 'Teshar, Ancestor''s Apostle', 'Mindslaver', 'Stone Haven Outfitter', 'Llanowar Elves', 'Treasure Cruise', 'Recurring Nightmare', 'Ancient Ziggurat', 'Tezzeret''s Gambit', 'Bloodthrone Vampire', 'Thaumatic Compass', 'Nevermore', 'Mina and Denn, Wildborn', 'Quicken', 'Oona''s Prowler', 'Sultai Charm', 'Doomskar', 'Fierce Empath', 'Darksteel Citadel', 'Locket of Yesterdays', 'Kaito, Dancing Shadow', 'Barbarian Ring', 'Gnat Miser', 'Chief of the Scale', 'Reflector Mage', 'Karn''s Bastion', 'Myr Superion', 'Ravenous Squirrel', 'Mnemonic Sphere', 'Saproling Migration', 'Voyaging Satyr', 'Helm of the Host', 'Demonic Dread', 'Ghostly Flicker', 'Vines of Vastwood', 'Sulfur Falls', 'Sleight of Hand', 'Dross Skullbomb', 'Obscura Charm', 'Memoricide', 'Venser, the Sojourner', 'Cataclysmic Gearhulk', 'Colossal Skyturtle', 'Tomebound Lich', 'Floriferous Vinewall', 'Slaughter Pact', 'Convolute', 'Bladed Ambassador', 'Soul Snare', 'Dakmor Salvage', 'Silverbluff Bridge', 'Revitalize', 'Tuktuk the Explorer', 'Aegis of the Gods', 'Mothdust Changeling', 'Elvish Visionary', 'General''s Enforcer', 'Time of Need', 'Thornglint Bridge', 'Arcane Sanctum', 'Annex Sentry', 'Jwari Shapeshifter', 'Faeburrow Elder', 'Search for Azcanta', 'Faerie Miscreant', 'Mulldrifter', 'Mesa Enchantress', 'Crystal Grotto', 'Deafening Clarion', 'Hour of Promise', 'Kruphix''s Insight', 'Arcbound Ravager', 'Phoenix Chick', 'Anguished Unmaking', 'Rabbit Battery', 'Nephalia Drownyard', 'Enchantress''s Presence', 'Aether Spellbomb', 'Tendrils of Agony', 'Brainstone', 'Anafenza, Kin-Tree Spirit', 'Glaring Aegis', 'Empyrial Plate', 'Ethereal Haze', 'Thragtusk', 'Gavony Township', 'Shalai, Voice of Plenty', 'Ayara, First of Locthwain', 'Dreams of Steel and Oil', 'Mountain Valley', 'Kemba, Kha Enduring', 'Champion of Wits', 'Wilt', 'Search for Tomorrow', 'Gideon''s Lawkeeper', 'Hada Freeblade', 'Nullpriest of Oblivion', 'Hieroglyphic Illumination', 'Ertai''s Scorn', 'Terastodon', 'Snow-Covered Plains', 'Armored Scrapgorger', 'Satyr Hoplite', 'Herd Baloth', 'Frontier Bivouac', 'Self-Assembler', 'Angel of Despair', 'Sunken Hollow', 'Haunted Mire', 'Shrapnel Blast', 'Ramunap Excavator', 'Experimental Synthesizer', 'Smallpox', 'Lingering Souls', 'Lochmere Serpent', 'Slagwoods Bridge', 'Doom Foretold', 'Mana Clash', 'Drossforge Bridge', 'Exclude', 'Silundi Vision', 'Dauntless Bodyguard', 'Varolz, the Scar-Striped', 'Shriekmaw', 'Sarkhan, the Dragonspeaker', 'Orzhov Guildgate', 'Touch the Spirit Realm', 'Cathedral of War', 'Memory Lapse', 'Jungle Hollow', 'Shigeki, Jukai Visionary', 'Djinn of the Fountain', 'Nimbus Maze', 'Yahenni''s Expertise', 'Hypergenesis', 'Gallia of the Endless Dance', 'Cryptic Caves', 'Farhaven Elf', 'Solemnity', 'Progenitor Exarch', 'General Ferrous Rokiric', 'Chaotic Transformation', 'Defiant Strike', 'Melira, the Living Cure', 'Elite Inquisitor', 'Leonin Lightscribe', 'Abundant Growth', 'Sheoldred''s Edict', 'Drown in Ichor', 'Presence of Gond', 'Oath of Teferi', 'Eidolon of Blossoms', 'Dark Petition', 'Stasis Snare', 'Harmonize', 'Ivy Lane Denizen', 'Elderscale Wurm', 'Sigrid, God-Favored', 'Bloodbraid Elf', 'Akoum Hellhound', 'Terrarion', 'Venser, Shaper Savant', 'Unbreakable Formation', 'Weathered Wayfarer', 'Farseek', 'Knight of the White Orchid', 'Titania, Protector of Argoth', 'Phyrexian Revoker', 'Knight of New Alara', 'Pillage', 'Bloodchief Ascension'))) AND (TRUE)
    GROUP BY 
        d.id,
        d.competition_id, -- Every deck has only one competition_id but if we want to use competition_id in the HAVING clause we need this.
        season.season_id -- In theory this is not necessary as all decks are in a single season and we join on the date but MySQL cannot work that out so give it the hint it needs.

    HAVING
        TRUE
    ORDER BY
        active_date DESC, d.finish IS NULL, d.finish

```

[] (slow_query, 2.7, mysql)

Reported on decksite by mysql-perf

Location Hash: 06c3803cc2b9f219a83e956ba3c4440c64270e11

Labels: decksite