Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15428321
D16423.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16423.id.diff
View Options
diff --git a/src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php b/src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php
--- a/src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php
+++ b/src/infrastructure/daemon/workers/query/PhabricatorWorkerArchiveTaskQuery.php
@@ -104,6 +104,8 @@
if ($this->dateCreatedBefore) {
return qsprintf($conn_r, 'ORDER BY dateCreated DESC, id DESC');
+ } else if ($this->dateModifiedSince) {
+ return qsprintf($conn_r, 'ORDER BY dateModified DESC, id DESC');
} else {
return qsprintf($conn_r, 'ORDER BY id DESC');
}
diff --git a/src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php b/src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php
--- a/src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php
+++ b/src/infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php
@@ -31,6 +31,9 @@
'leaseOwner' => array(
'columns' => array('leaseOwner', 'priority', 'id'),
),
+ 'key_modified' => array(
+ 'columns' => array('dateModified'),
+ ),
) + $parent[self::CONFIG_KEY_SCHEMA];
return $config;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 24, 7:33 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7483594
Default Alt Text
D16423.id.diff (1 KB)
Attached To
Mode
D16423: Add a missing table key to improve performance of "Recently Completed Tasks" query
Attached
Detach File
Event Timeline
Log In to Comment