class-dbi

Class::DBI - does it load all tables?

一世执手 提交于 2019-12-24 14:34:32
问题 We have a MySQL database with very big number of tables. Unfortunately in 2018 we still use Perl CGI. So loading time of a script is essential. DBIx::Class was ruled out by me because it loads about 1.6 sec (so long because it loads Perl definitions for all tables of the DB) what is clearly too much. How quickly Class::DBI loads? My main question: Does Perl load information about all available tables (like DBIx::Class does) when we use Class::DBI or does it load Perl definitions for only

Is there a way to caching mechanism for Class::DBI?

依然范特西╮ 提交于 2019-12-10 20:52:32
问题 I have a set of rather complex ORM modules that inherit from Class::DBI. Since the data changes quite infrequently, I am considering using a Caching/Memoization layer on top of this to speed things up. I found a module: Class::DBI::Cacheable but no rating or any reviews on RT. I would appreciate hearing from people who have used this or any other Class::DBI caching scheme. Thanks a ton. 回答1: I too have rolled my own ORM plenty of times I hate to say! Caching/Memoization is pretty easy if all