[Rt-commit] [rtir] 03/05: Remove an ORDER BY
Kevin Falcone
falcone at bestpractical.com
Wed Jul 3 20:19:54 EDT 2013
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 2.9-trunk
in repository rtir.
commit 97bf8744ee79e1b76d1bd9f88825f707734c1399
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Tue Jul 2 20:49:20 2013 -0400
Remove an ORDER BY
We don't need an ordered set of ids for the Ticket update and removing
it improves MySQL 5.5's UPDATE FROM SELECT performance.
---
etc/upgrade/2.9.0/content | 1 +
1 file changed, 1 insertion(+)
diff --git a/etc/upgrade/2.9.0/content b/etc/upgrade/2.9.0/content
index 3768a18..65e21a5 100644
--- a/etc/upgrade/2.9.0/content
+++ b/etc/upgrade/2.9.0/content
@@ -170,6 +170,7 @@ our @Final = (
$values->Limit( FIELD => 'Disabled', VALUE => 0 );
$values->Limit( FIELD => 'Content', VALUE => $state );
$values->Columns('ObjectId');
+ $values->OrderBy();
my $res = $RT::Handle->SimpleUpdateFromSelect(
'Tickets', { Status => $state }, $values->BuildSelectQuery
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Rt-commit
mailing list