Page MenuHomePhabricator

Add a key to improve Diffusion's cache fill history query
ClosedPublic

Authored by epriestley on Mar 11 2016, 1:36 AM.
Tags
None
Referenced Files
F15453258: D15460.id37257.diff
Sat, Mar 29, 10:30 AM
F15446105: D15460.id37256.diff
Thu, Mar 27, 5:13 PM
F15445731: D15460.id.diff
Thu, Mar 27, 3:43 PM
F15440502: D15460.diff
Wed, Mar 26, 1:01 PM
F15417889: D15460.id37256.diff
Thu, Mar 20, 7:12 PM
F15407974: D15460.id37256.diff
Tue, Mar 18, 8:32 PM
F15404236: D15460.id37257.diff
Tue, Mar 18, 6:53 AM
Unknown Object (File)
Feb 22 2025, 1:38 PM
Subscribers
None

Details

Summary

Ref T10560. I don't fully understand what MySQL is doing here, but it looks like this key improves the problematic dataset in practice.

(It makes sense that this key helps, I'm just not sure why the two separate keys and the UNION ALL are so bad.)

This key isn't hugely expensive to add, so we can try it and see if there are still issues.

Test Plan

Ran bin/storage adjust, saw key added to table. Used SHOW CREATE TABLE ... to verify the key exists. Used EXPLAIN SELECT ... to make sure MySQL actually uses it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable