Revision d9a2ebac
Added by Ohad Levy almost 12 years ago
- ID d9a2ebac6e9ec0082e60265b794f54a29a1f7e65
app/models/environment.rb | ||
---|---|---|
end
|
||
|
||
def find_import_proxies
|
||
if (f = Feature.where(:name => "Puppet"))
|
||
if !f.empty? and (proxies=f.first.smart_proxies)
|
||
return proxies
|
||
end
|
||
end
|
||
[]
|
||
SmartProxy.joins(:features).where(:features => {:name => 'Puppet'})
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
[SQL optimizations] - many small optimizations
This is one of a few patches aim to improve Foreman performance