You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jbuilder make SQL query for getting each product_side and each product_side_images. (N*M + 1 query)
Calling Product.includes(:product_side_images).references(:product_side_images) and iterating from all it product_side_images from console for example it did just one SQL query.
The text was updated successfully, but these errors were encountered:
It seems jbuilder make SQL query before render it jbuilder. Is not using ActiveRecord::Associations passed from controller correctly.
Example:
Jbuilder make SQL query for getting each product_side and each product_side_images. (N*M + 1 query)
Calling Product.includes(:product_side_images).references(:product_side_images) and iterating from all it product_side_images from console for example it did just one SQL query.
The text was updated successfully, but these errors were encountered: