Introduce sth caching to Letters.pm
authorJoe Atzberger <joe.atzberger@liblime.com>
Fri, 27 Mar 2009 15:34:34 +0000 (10:34 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:08 +0000 (21:15 +0200)
commitfa491c3e33cefdb52d4d0b82a01af5ed91454af7
treefad0e3bd0a675c9082d436b25cadd6c9bae539f2
parentb7ad6f023a6353d0842efd332f7c5d1e433f9784
Introduce sth caching to Letters.pm

The re-creation of statement handles for the same queries, repeatedly,
seriously degrades the performance of notices.  This introduces new
class-level caching to avoid that problem.

Note: initial provisions
to do the same with caching of COLUMNS information about tables is
also included, but this would probably be most usefully implemented
in C4::Context (or a separate more central module).  The benefits of
caching that info would probably be even greater.  Note that this
proposed implementation might be obsoleted by ORM integration, where
DB structure info would already be cached.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
C4/Letters.pm