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)
Fri, Apr 19, 7:51 PM
Unknown Object (File)
Fri, Apr 19, 1:52 PM
Unknown Object (File)
Thu, Apr 18, 7:07 AM
Unknown Object (File)
Mon, Apr 15, 2:09 PM
Unknown Object (File)
Thu, Apr 11, 11:16 PM
Unknown Object (File)
Thu, Apr 11, 4:35 AM
Unknown Object (File)
Feb 22 2024, 8:46 PM
Unknown Object (File)
Feb 22 2024, 1:09 PM
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