Page MenuHomePhabricator

Stop indexing the chunk data objects for large Files stored in multiple chunks
ClosedPublic

Authored by epriestley on Aug 3 2018, 9:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 23 2024, 4:32 AM
Unknown Object (File)
Oct 13 2024, 1:44 AM
Unknown Object (File)
Oct 9 2024, 9:48 AM
Unknown Object (File)
Sep 30 2024, 10:26 PM
Unknown Object (File)
Sep 30 2024, 1:27 PM
Unknown Object (File)
Sep 30 2024, 10:53 AM
Unknown Object (File)
Sep 6 2024, 7:45 PM
Unknown Object (File)
Sep 6 2024, 3:40 AM
Subscribers
None

Details

Summary

Ref T13164. See PHI766. Currently, when file data is stored in small chunks, we submit each chunk to the indexing engine.

However, chunks are never surfaced directly and can never be found via any search/query, so this work is pointless. Just skip it.

(It would be nice to do this a little more formally on IndexableInterface or similar as isThisAnIndexableObject(), but we'd have to add like a million empty "yes, index this always" methods to do that, and it seems unlikely that we'll end up with too many other objects like these.)

Test Plan
  • Ran bin/harbormaster rebuild-log --id ... --force before and after change, saw about 200 fewer queries after the change.
  • Uploaded a uniquely named file and searched for it to make sure I didn't break that.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable