GetIssuingRule submits a cascade of queries to the database to find its match. This could be optimized and cleaned up by retrieving them all at once.
Created attachment 2752 [details] Patch to refactor GetIssuingRule
This bug is mentioned in: Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013006.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013007.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013020.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013025.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013043.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013044.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013057.html Bug 5408 - Refactor GetIssuingRule and GetLoanLength http://lists.koha-community.org/pipermail/koha-patches/2010-November/013021.html
Is this bug still valid? I assume the patch will never be rebased by the original author.
(In reply to comment #3) > Is this bug still valid? I assume the patch will never be rebased by the > original author. Unlikely I agree, should we close this?
If you refer to the mailing list comments linked from here, I was told that Biblibre's approach to optimizing this section was being preferred over mine. Surprising that in two year's time neither my code nor theirs has actually been adopted to treat this poorly constructed functionality.
WONTFIXING this approach as Koha has changed quite a bit since 2010...