Closed mjgardner closed 13 years ago
I've traced that particular query to &DBIx::Class::Schema::Loader::DBI::_table_columns, which is used to discover table column names. I assume that most of the other slow queries will have a similar rationale.
One way to speed things up is to pass a pre-existing DBIx::Class::Schema instead of a DSN and login information. Right now the only way to do that is in code; I'll work on an update to pass a class name from the command line.
As of 7aa8bf7 you can now use the --class_name
option (or constructor parameter) to point to an existing DBIx::Class::Schema.
From Josh at Shutterstock: