ror_ecommerce
ror_ecommerce copied to clipboard
count could be size , so that when it's loaded, the size will be faster than count
ror_ecommerce/app/views/admin/users/show.html.erb:22:
👍
After looking
User.includes([:shipments, :finished_orders, :return_authorizations])
I would have to have :shipments => [:order_items] in the includes. Unless I'm missing something :order_items aren't loaded so doing count might be better and from a memory footprint not loading the order_items is definitely better.
right, this will also be a good solution