Populate caches for related result sets even if they're empty
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 28 Mar 2014 16:48:17 +0000 (16:48 +0000)
committerPeter Rabbitson <ribasushi@cpan.org>
Thu, 19 Jun 2014 15:04:53 +0000 (17:04 +0200)
commitb6b8f72fff65a26976069f55cf134e6e607e6112
treedefc6938bd03bba209c6e2fd1e5b6cd1fe183f3c
parent1b658919f5ff67e9ac656daf6642a3bae8cec282
Populate caches for related result sets even if they're empty

This avoids unnecessary database hits when accessing prefetched related
resultsets with no rows.
Changes
lib/DBIx/Class/ResultSet.pm
t/prefetch/empty_cache.t [new file with mode: 0644]