Koha/tools
Nick Clemens 5ae5e4367b
Bug 35641: Reduce DB lookups when sending a list of barcodes to inventory
This patch does three things:
1 - Removes a specific query for withdrawn status of each item scanned - we can use the withdrawn field
2 - Removes a specific query for checkouts on each item scanned - we can use the onloan field
    a - additionally we don't need to fetch the checkout as we check it in to the homebranch,
    this is likely incorrect - we should use the current branch, but I preserve behavior for now
3 - Fetches the items ahead of time and builds a hash based on barcode, reduces DB lookups, may raise memory usage

To test:
1 - Checkout some items
2 - Withdraw some items
3 - Generate a lsit of barcodes including some checked out items and some withdrawn items
4 - Enter that list of barcodes into inventory tool
5 - Note your results
6 - Apply patch
7 - Issue the items again
8 - Repeat inventory
9 - Confirm results are the same as before patch

Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-01-16 12:06:11 +01:00
..
csv-profiles
access_files.pl
additional-contents.pl Bug 31383: (QA follow-up) Tidy 2023-10-20 14:44:03 -03:00
ajax-inventory.pl
automatic_item_modification_by_age.pl
batch_delete_records.pl
batch_extend_due_dates.pl Bug 26978: Add item type option to batch extend due date tool 2023-10-11 12:13:03 -03:00
batch_record_modification.pl
batch_records_ajax.pl
batchMod.pl Bug 34257: (QA follow-up): tidy up code 2023-09-12 09:45:05 -03:00
cleanborrowers.pl Bug 34441: Fixed Typo "Paramater" 2023-09-01 11:23:21 -03:00
copy-holidays.pl
csv-profiles.pl
exceptionHolidays.pl Bug 33667: Allow copying holidays to all libraries when editing 2023-07-06 10:08:45 -03:00
export.pl
holidays.pl
import_borrowers.pl
inventory.pl Bug 35641: Reduce DB lookups when sending a list of barcodes to inventory 2024-01-16 12:06:11 +01:00
letter.pl Bug 32986: (follow-up) Tidy conditional in letter.pl 2023-11-08 17:59:34 -03:00
manage-marc-import.pl
marc_modification_templates.pl
modborrowers.pl Bug 34818: (bug 21083 follow-up) Fix batch patron modification tool 2023-09-19 16:34:15 -03:00
newHolidays.pl
overduerules.pl
page.pl Bug 31383: Create a parent-child DB relation for additional content 2023-10-20 14:43:56 -03:00
picture-upload.pl
problem-reports.pl
quotes-upload.pl
quotes.pl
scheduler.pl Bug 34349: Validate/escape inputs for task scheduler 2023-09-25 18:18:38 -03:00
showdiffmarc.pl
stage-marc-import.pl Bug 33755: Set profile_id and add missing import 2023-08-15 12:16:59 +03:00
stockrotation.pl Bug 34773: Improve translation of title tags: Cataloging tools 2023-11-06 08:42:44 -03:00
tools-home.pl Bug 33595: (bug 26628 follow-up) Fix authorization for tools-home.pl 2023-05-16 11:47:15 +02:00
upload-cover-image.pl Bug 35291: (QA follow-up) Tidying script for QA test tools 2023-11-24 16:43:25 -03:00
upload-file.pl
upload.pl
viewlog.pl