Page MenuHomePhabricator

D18728.diff
No OneTemporary

D18728.diff

diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
--- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
+++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php
@@ -1565,6 +1565,13 @@
return $select;
}
+ $vector = $this->getOrderVector();
+ if (!$vector->containsKey('rank')) {
+ // We only need to SELECT the virtual "_ft_rank" column if we're
+ // actually sorting the results by rank.
+ return $select;
+ }
+
if (!$this->ferretEngine) {
$select[] = '0 _ft_rank';
return $select;

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 24, 5:02 AM (15 h, 57 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7648001
Default Alt Text
D18728.diff (706 B)

Event Timeline