Subject: | Join pruner can be more aggressive when {rows} == 1 |
Date: | Fri, 26 Jun 2015 18:50:17 +0200 |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | Peter Rabbitson <ribasushi [...] cpan.org> |
<ribasushi>
https://github.com/dbsrgits/dbix-class/blob/current/blead/lib/DBIx/Class/Storage/DBIHacks.pm#L375-L384
<ribasushi> this should be NOOPed when $attrs->{rows} == 1
<ribasushi> oh also ! offset
<ribasushi> you need to also check !$attrs->{software_limit}
<ribasushi> as it will *not* apply the limit db-side then
<ribasushi> note - this is a "20 seconds of thought" solution
<ribasushi> I will need to test every limit dialect, make sure it dtrt