This project is archived and is in readonly mode.
Do not perform another sql if association is already loaded for empty hash
Reported by Neeraj Singh | November 15th, 2010 @ 02:56 AM | in 3.x
if association is already loaded and if a find
operation is performed on the already loaded association list
with an empty hash then do not perform another sql.
Comments and changes to this ticket
-
Neeraj Singh November 15th, 2010 @ 02:59 AM
- Assigned user set to Aaron Patterson
Attached is patch with test.
-
Repository November 15th, 2010 @ 06:13 PM
- State changed from new to resolved
(from [7c5c1a07c03ec03536636c26e09b80b29a59beed]) if association is already loaded and if a find operation is performed on the already loaded association list with an empty hash then do not perform another sql
[#5972 state:resolved] https://github.com/rails/rails/commit/7c5c1a07c03ec03536636c26e09b8...
-
Aaron Patterson November 15th, 2010 @ 06:14 PM
- State changed from resolved to committed
Applied and pushed. Thanks!
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 5972 Do not perform another sql if association is already loaded for empty hash [#5972 state:resolved] https://github.com/rails/rails/co...
- 6121 Do not perform another sql if association is already loaded for empty hash Similar to #5972 . This time for last method.