Skip to content

Commit

Permalink
Merge pull request #14067 from Ladas/load_in_batches_in_post_refresh
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
kbrock authored Feb 24, 2017
2 parents 036a2cf + bef53fe commit 21a76e6
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 21a76e6

Please sign in to comment.