Displaying 1 result from an estimated 1 matches for "new_phrases".
2008 Oct 28
3
Backwards N+1 problem
...phrase], :limit => 10, :order => ''rank DESC'')
@Phrases = []
for definition in @definitions
@Phrases << definition.phrase(:include => [:definitions =>
:children])
end
@Phrases = @Phrases.uniq
if @Phrases != nil
@new_phrases = @Phrases.paginate(:page => params[:page], :order
=> ''word ASC'', :per_page => 5)
end ## if @phrase !=nil
end ##def index
The full capture can be found under my Five Runs Account
https://tuneup.fiveruns.com/runs/699
If you have any suggestions i would love f...