|Date:||Thu, 27 Aug 2015 01:24:30 +0300|
|From:||Victor Porton <firstname.lastname@example.org>|
__PACKAGE__->load_namespaces; is very slow (almost 2 sec) on our MySQL DB with 250 tables (and some tables have really many columns).
The schema was generated with
It created 250 Result/*.pm files.
It seems that load_namespaces loads all of them. You need to implement lazy loading.
We throw away DBIx::Class and switch to Class::DBI. 2 sec is really too long.
-- Victor Porton -