Page MenuHomePhabricator

Clean up virtual "_ft_rank" column for query construction of Ferret objects
ClosedPublic

Authored by epriestley on Oct 23 2017, 10:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 29, 6:05 AM
Unknown Object (File)
Wed, May 28, 8:26 AM
Unknown Object (File)
Mon, May 19, 8:01 PM
Unknown Object (File)
Sat, May 10, 7:27 AM
Unknown Object (File)
Tue, May 6, 10:40 AM
Unknown Object (File)
Apr 29 2025, 2:32 AM
Unknown Object (File)
Apr 27 2025, 5:59 PM
Unknown Object (File)
Apr 25 2025, 7:01 AM
Subscribers
None

Details

Summary

Ref T12974. Ferret object queries SELECT a virtual "_ft_rank" column for relevance ordering.

Currently, they always SELECT this column. That's fine and doesn't hurt anything, but makes developing and debugging things kind of a pain since every query has this , blah blah _ft_rank junk.

Instead, construct this column only if we're actually going to use it.

Mostly, this cleans up DarkConsole / query logs a bit.

Test Plan

Viewed normal query results on various pages, viewed global search results, ordered Maniphest tasks by normal stuff and by "Relevance".

Viewed DarkConsole, saw no more "_ft_rank" junk on normal pages.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster completed remote builds in B18735: Diff 44955.
This revision is now accepted and ready to land.Oct 23 2017, 11:00 PM
This revision was automatically updated to reflect the committed changes.