5 Sep
2025
5 Sep
'25
12:09 p.m.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28702 --- Comment #17 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- (In reply to Jonathan Druart from comment #16)
- } elsif ( $item->holds->waiting->count ) { + } elsif ( $item->_result->reserves->count && $item->holds->waiting->count ) { $status = 'other';
Any good reasons to not use $item->holds->count instead of $item->_result->reserves->count?
In my testing the original code generated a new database query, while the new code does not - we are trying to make sure we take advantage of the prefetch data, rather than hitting the DB again -- You are receiving this mail because: You are watching all bug changes.