We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ror_ecommerce/app/models/variant.rb
Line 189 in d4a00ef
in order to avoid the unnecessary order by primary key operation
The text was updated successfully, but these errors were encountered:
👍
Yeah I think the SQL caching is better with find_by now days. Not sure if that was the case when I originally created this method.
find_by
Sorry, something went wrong.
And I searched for other places, seems they can also be replaced:
app/controllers/shopping/orders_controller.rb: @order = Order.where(number: params[:id]).includes({order_items: :variant}).first app/controllers/wish_items_controller.rb: item = current_user.wish_list_items.where(variant_id: params[:variant_id]).first app/models/users_newsletter.rb: user = User.where(email: email).first app/models/cart.rb: variant = Variant.where(id: variant_id).first
No branches or pull requests
ror_ecommerce/app/models/variant.rb
Line 189 in d4a00ef
in order to avoid the unnecessary order by primary key operation
The text was updated successfully, but these errors were encountered: