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

Use select_rows instead of select_one in select_value #20024

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented May 5, 2015

select_one create ActiveRecord::Result instance. It is better to use
select_rows instead of select_one for performance.

`select_one` create `ActiveRecord::Result` instance. It is better to use
`select_rows` instead of `select_one` for performance.
matthewd added a commit that referenced this pull request May 5, 2015
…ct_one_in_select_values

Use `select_rows` instead of `select_one` in `select_value`
@matthewd matthewd merged commit 2e9e90d into rails:master May 5, 2015
@kamipo kamipo deleted the use_select_rows_instead_of_select_one_in_select_values branch May 5, 2015 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants