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)
Mon, Apr 29, 2:59 PM
Unknown Object (File)
Fri, Apr 26, 4:53 PM
Unknown Object (File)
Wed, Apr 24, 10:52 PM
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
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
Branch
pathkey
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 11119
Build 13775: Run Core Tests
Build 13774: arc lint + arc unit