Skip to content

Commit

Permalink
Load created Vms in batches so they don't load all in memory
Browse files Browse the repository at this point in the history
Load created Vms in batches so they don't load all in memory
  • Loading branch information
Ladas committed Feb 24, 2017
1 parent 8b4ead3 commit bef53fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def self.post_refresh_ems(ems_id, update_start_time)
# Create queue items to do additional process like apply tags and link events
unless added_vms.empty?
added_vm_ids = []
added_vms.each do |v|
added_vms.find_each do |v|
v.post_create_actions_queue
added_vm_ids << v.id
end
Expand Down

0 comments on commit bef53fe

Please sign in to comment.