webstaff: improve performance of open-ils.search.authority.simple_heading.from_xml
authorGalen Charlton <gmc@esilibrary.com>
Thu, 3 Sep 2015 21:13:27 +0000 (21:13 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 3 Sep 2015 21:13:27 +0000 (21:13 +0000)
commit5dc6b47ef2c2713d691abf29b9984b84c954b963
treefdec4a8d57434b32a68b11fb406a7782525c9150
parentad256c04d2aefc9ac999d63fe1a25d4e73cf7111
webstaff: improve performance of open-ils.search.authority.simple_heading.from_xml

Searching authority.record_entry by comparing are.simple_heading
with the results of authority.simple_normalize_heading() can result
in bad query plans; if we calculate the results of that function
first, we have a much better chance of hitting the index on
simple_heading.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Authority.pm