]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP2041364: Attempt to speed up 852 insertion in marc_export
authorJason Stephenson <jason@sigio.com>
Fri, 27 Oct 2023 19:22:54 +0000 (15:22 -0400)
committerJane Sandberg <js7389@princeton.edu>
Sat, 11 Nov 2023 23:22:46 +0000 (15:22 -0800)
commit71b7e501a305a495b374d6971b185c02aae43672
tree8278d902e1dd839ae8ccda45db92c04bb885b612
parentdd778b5060fff492b1cdb83f3fa91ea7d3eb61ed
LP2041364: Attempt to speed up 852 insertion in marc_export

Instead of using MARC::Record->insert_grouped_field on the list of all
item tags (852), we now do insert_grouped_field only on the first item
tag and then use MARC::Record->insert_fields_after for the remainder
of the list. According to some testing this can provide a 78% speed
increase when adding item tags to records with many items.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/support-scripts/marc_export.in