Commit dfe61ae80134ff8d2531152ed453586f09bc7e35

Authored by AntonioTerceiro
1 parent eab5c7e5

ActionItem154: marking a potential performance bottleneck


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1389 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
app/models/profile.rb
@@ -209,6 +209,7 @@ class Profile < ActiveRecord::Base @@ -209,6 +209,7 @@ class Profile < ActiveRecord::Base
209 options 209 options
210 end 210 end
211 211
  212 + # FIXME this can be SLOW
212 def tags(public_only = false) 213 def tags(public_only = false)
213 totals = {} 214 totals = {}
214 articles.each do |article| 215 articles.each do |article|