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>
Thu, 16 Apr 2009 15:46:02 +0000 (17:46 +0200)
commit70eee233a3c00d00abfc2d2da937681157b597fa
tree069e760a4a38ad34176675b57d9f2e626e00c336
parent4a72fca2bcdc7028337fb93c9c804a5d503e4692
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>
C4/Letters.pm