X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FCookbook.pod;h=6717ea77f74f5453ae2f3f8e47bcdd2a6b9db12d;hb=a5b293612996cda25ce7e7bf1a5a5a23249c7b01;hp=83a633d5552269246d0e81441bebf85325fb4681;hpb=fa1620994ee0dd9cf8cc1a88c3aaaa9643669d50;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 83a633d..6717ea7 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -733,7 +733,7 @@ B test.pl ### The statement below will print print "I can do admin stuff\n" if $admin->can('do_admin_stuff'); -=head2 Skip object creation for faster results +=head2 Skip row object creation for faster results DBIx::Class is not built for speed, it's built for convenience and ease of use, but sometimes you just need to get the data, and skip the @@ -746,9 +746,20 @@ To do this simply use L. $rs->result_class('DBIx::Class::ResultClass::HashRefInflator'); my $hash_ref = $rs->find(1); - + Wasn't that easy? +=head2 Skip row object creation for faster results, but still inflate +column values to the corresponding objects + + my $rs = $schema->resultset('CD'); + + $rs->result_class(DBIx::Class::ResultClass::HashRefInflator->new ( + inflate_columns => 1 + )); + + my $hash_ref = $rs->find(1); + =head2 Get raw data for blindingly fast results If the L solution