Page MenuHomePhabricator

Create an index on harbormaster_buildlog to reduce page load times
ClosedPublic

Authored by hach-que on Aug 18 2014, 12:18 AM.
Tags
None
Referenced Files
F18879957: D10286.id.diff
Nov 6 2025, 7:30 PM
F18867205: D10286.id24772.diff
Nov 3 2025, 10:13 PM
F18864730: D10286.diff
Nov 3 2025, 8:27 AM
F18771606: D10286.id24802.diff
Oct 8 2025, 8:38 PM
F18758034: D10286.id24809.diff
Oct 5 2025, 8:32 PM
F18712104: D10286.id.diff
Sep 29 2025, 5:16 AM
F18673493: D10286.id24772.diff
Sep 25 2025, 10:50 AM
F18618291: D10286.diff
Sep 14 2025, 11:39 PM
Subscribers

Details

Summary

Resolves T5895. This reduces page load times significantly when looking at builds.

Test Plan

Viewed a build, saw the page load a lot faster.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que retitled this revision from to Create an index on harbormaster_buildlog to reduce page load times.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.
  • By convention, prefer to write this like other key patches (see below).
  • Prefer to provide an explicit key name.
  • Provide a database name explicitly.

I think this should work:

ALTER TABLE {$NAMESPACE}_harbormaster.harbormaster_buildlog
  ADD KEY `key_buildtarget` (buildTargetPHID);
This revision now requires changes to proceed.Aug 19 2014, 9:27 PM
hach-que edited edge metadata.

Update based on feedback

epriestley edited edge metadata.

Worked fine for me locally.

This revision is now accepted and ready to land.Aug 19 2014, 10:45 PM
hach-que updated this revision to Diff 24809.

Closed by commit rP6f85c22faffd (authored by @hach-que).