Skip to content

Commit

Permalink
SQL sort is faster than ruby sort.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Mar 1, 2017
1 parent 916780d commit f9fe840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/evm_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def self.output_servers_status(servers)
def self.output_workers_status(servers)
data = []
servers.each do |s|
s.miq_workers.sort_by(&:type).each do |w|
s.miq_workers.order(:type).each do |w|
data <<
[w.type,
w.status,
Expand Down

0 comments on commit f9fe840

Please sign in to comment.