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)
Sat, Apr 6, 7:48 AM
Unknown Object (File)
Mar 19 2024, 8:34 AM
Unknown Object (File)
Feb 2 2024, 11:47 PM
Unknown Object (File)
Jan 16 2024, 5:31 PM
Unknown Object (File)
Jan 9 2024, 11:52 PM
Unknown Object (File)
Jan 9 2024, 6:37 PM
Unknown Object (File)
Jan 5 2024, 2:00 PM
Unknown Object (File)
Dec 29 2023, 2:47 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