Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > 097f1edaab350adade88693282b2d412

perl-Test-DBIC-ExpectedQueries-2.2.0-2.mga9.noarch.rpm

Description:

Ensure that only the DBIx::Class SQL queries you expect are executed while
a particular piece of code under test is run. Find the places in your code
where the unexpected queries are executed.

Avoiding the n+1 problem
When following a relation off a DBIC row object it's easy to overlook
the fact that it might be causing one query for each and every row in
the resultset. This can easily be solved by prefetching those
relations, but you have to know it happens first.

This module will help you finding unexpected queries, where they are
being caused, and to ensure you don't accidentally start running many
single-row queries in the future.

Sources packages:

Other version of this rpm: