slow queries #3
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mjg/perl-App-DBCritic#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From Josh at Shutterstock:
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
7aa8bf7you can now use the--class_nameoption (or constructor parameter) to point to an existing DBIx::Class::Schema.