Skip to content
New issue

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

Fix duplicate offense messages in RuboCop::Cop::Isucon::Mysql2::NPlusOneQuery #117

Open
sue445 opened this issue Nov 28, 2021 · 0 comments · May be fixed by #102
Open

Fix duplicate offense messages in RuboCop::Cop::Isucon::Mysql2::NPlusOneQuery #117

sue445 opened this issue Nov 28, 2021 · 0 comments · May be fixed by #102
Labels
bug Something isn't working

Comments

@sue445
Copy link
Owner

sue445 commented Nov 28, 2021

teacher = db.xquery('SELECT * FROM `users` WHERE `id` = ?', course[:teacher_id]).first
^^ This looks like N+1 query.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This looks like N+1 query.

@sue445 sue445 added the bug Something isn't working label Nov 28, 2021
@sue445 sue445 linked a pull request Nov 28, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant