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
Unknown Object (File)
Thu, May 29, 11:19 AM
Unknown Object (File)
Tue, May 27, 4:40 PM
Unknown Object (File)
Tue, May 27, 10:57 AM
Unknown Object (File)
Mon, May 26, 11:20 AM
Unknown Object (File)
Mon, May 19, 4:54 AM
Unknown Object (File)
Apr 24 2025, 9:33 PM
Unknown Object (File)
Apr 23 2025, 4:16 PM
Unknown Object (File)
Mar 29 2025, 10:30 AM
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