Changed to make single circ requests faster collab/miker/faster_bibs_by_item_age_depesz
authorLiam Whalen <whalen.ld@gmail.com>
Wed, 30 Oct 2013 03:13:38 +0000 (20:13 -0700)
committerLiam Whalen <whalen.ld@gmail.com>
Wed, 30 Oct 2013 03:13:38 +0000 (20:13 -0700)
commitab7045c0952f72cb54e3138a8906465283b41def
tree5c88ad5d39036e140a4fb0a4dc93afa7782ec827
parent69f83682e0f2c0e716485c7c2ade03b105d90200
Changed to make single circ requests faster

Added a check of the a_circ_libs paramter to see if the number of circ
libs is greater than 1, and if it is not, then exclude skeys check and
exclude calculating v_oldest.

Signed-off-by: Liam Whalen <whalen.ld@gmail.com>
Open-ILS/src/sql/Pg/999.functions.global.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.bibs_by_item_age.sql