LP1053397: Don't leak memory; Cache compiled ccraed values
authorMike Rylander <mrylander@gmail.com>
Tue, 18 Feb 2014 21:53:53 +0000 (16:53 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 18 Feb 2014 21:53:53 +0000 (16:53 -0500)
commite7a369e53b38e44b8dc16da3b485e1cfb8e4c1fd
tree76c2d1188b2ddb26a5a3e13080b14a5f44ceed45
parenta30e0d4b8db9d67b962f87dcda896c73c67079e8
LP1053397: Don't leak memory; Cache compiled ccraed values

We were leaking memory in a PLPGSQL function that compiles the
query_int from a ccraed value.  Stop doing that!

Also, implement a self-invalidating (upon table update) cache
for compiled composite attr defs.  This brings concerto reingest
down from 50+ seconds to under 10.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/QQQQ.MVF_CRA-upgrade.sql