tramadol online no prescription buy provigil no prescription buy ultram without prescription buy ambien online without prescription klonopin online no prescription valium for sale soma for sale buy ativan online no prescription buy diazepam no prescription buy adipex without prescription buy xanax without prescription
eager-loading nested polymorphic associations
We have a controller action that performs n+1 queries to present associated models as nested hashes. The typical solution is to use :include to eager-load associations. Unfortunately, the models are related polymorphically, and :include can’t eager-load nested polymorphic associations. What can we do?
Because in rails it automatically puts a transaction around for DDL statements and rolls them back when things don’t work. Fixing this in mysql can be a huge pain.