https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28702
--- Comment #17 from Nick Clemens (kidclamp) <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] https://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/
