http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9011

--- Comment #114 from Jonathan Druart <[email protected]> ---
Comment on attachment 39815
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39815
Bug 9011 [QA Followup]

Review of attachment 39815:
 --> 
(http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9011&attachment=39815)
-----------------------------------------------------------------

::: C4/Circulation.pm
@@ +3198,5 @@
>      }
>  
>      if ( C4::Context->preference('StoreLastBorrower') ) {
> +        # Do not delete the newest old_issue for any itemnumber
> +        $query .= " AND issue_id NOT IN ( SELECT issue_id FROM ( SELECT * 
> FROM old_issues ORDER BY issue_id DESC ) AS oi GROUP BY itemnumber ) ";

I think that the NOT IN clause should be avoid here.
It can cause the query to be very slow.
See bug 13740.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to