http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9011 --- Comment #114 from Jonathan Druart <jonathan.druart@biblibre.com> --- 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.