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>
Mon, 14 Sep 2015 13:02:22 +0000 (13:02 +0000)
commit80fffe0c06edb34368f0c3cf2fccbf04904c2004
tree467a7047a134c6bc1adf6185c83559d237206c4d
parenta26c15eac1ba3ed87fc6df6bcd702dfaa55f1cd4
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