I am trying to optimize a slow query with an includes statement. 


But a join table with a polymorphic association seem to be preventing it.


The following gist tries to illustrate the 
issue: https://gist.github.com/flemse/fdd51ff5ad29a1f57134


When running the code from the gist it will fail to load the join table and 
therefore fail.


Any help would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/e2dd9fbf-9e23-41a6-86fd-840e6c94d02a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to