LP#1306133: Avoid metabib.rec_descriptor where possible user/miker/lp1306133-optional-use-of-mrd
authorMike Rylander <mrylander@gmail.com>
Thu, 10 Apr 2014 17:03:30 +0000 (13:03 -0400)
committerMike Rylander <mrylander@gmail.com>
Thu, 10 Apr 2014 17:03:30 +0000 (13:03 -0400)
commita5af135193c091da1c18aafa52b0b046edeca782
treed1535203b90e9b8599ce0e780b0b8cc0f07300c5
parentce9f58a3a8293ebf9070587f7c4b5806e196ceb6
LP#1306133: Avoid metabib.rec_descriptor where possible

metabib.rec_descriptor has been a view over other data structures
for some time now, but with the advent of the new attribute infrastructure
it is a view over a view over a view, variously transforming IDs to
a slim table to an HSTORE structure and finally to a wide table. Thus,
it is extremely expensive to query. So we won't unless we're asked to.
Which, in the TPAC world, is 100% of the time.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm