Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Do not perform another sql if association is already loaded for empty hash

#5972

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.

Reported by Neeraj Singh · November 15th, 2010 @ 02:56 AM

State: committed
Milestone: 3.x
Assigned to: Aaron Patterson Aaron Patterson
Importance: Low

Activity

  1. Neeraj Singh
    Neeraj Singh
    • Assigned user set to Aaron Patterson

    Attached is patch with test.

    November 15th, 2010 @ 02:59 AM

  2. Repository
    Repository
    • 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 Do not perform another sql if association is already loaded for empty hash state:resolved] https://github.com/rails/rails/commit/7c5c1a07c03ec03536636c26e09b8...

    November 15th, 2010 @ 06:13 PM

  3. Aaron Patterson
    Aaron Patterson
    • State changed from resolved to committed

    Applied and pushed. Thanks!

    November 15th, 2010 @ 06:14 PM