Ruby on Rails Wednesday, January 13, 2016


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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.

No comments:

Post a Comment