From: Brandon L. Black Date: Thu, 3 May 2007 03:03:06 +0000 (+0000) Subject: Merge 'trunk' into 'DBIx-Class-current' X-Git-Tag: v0.08010~150^2~82 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4aeeed8aba0096f1272b29d9dc794714201f232c;hp=ca83d811f3ce60ebb819ce9ad54179837f6157c6;p=dbsrgits%2FDBIx-Class.git Merge 'trunk' into 'DBIx-Class-current' r30777@brandon-blacks-computer (orig r3224): nigel | 2007-05-02 09:58:45 -0500 Documented use of cursor->next for fast but uncomfortable data fetches r30778@brandon-blacks-computer (orig r3225): blblack | 2007-05-02 22:02:14 -0500 revert part of 3220, apparently it is breaking cloning behavior in subtle ways that we have no tests for --- diff --git a/lib/DBIx/Class/Cursor.pm b/lib/DBIx/Class/Cursor.pm index 3c55b69..ded8b56 100644 --- a/lib/DBIx/Class/Cursor.pm +++ b/lib/DBIx/Class/Cursor.pm @@ -38,7 +38,8 @@ sub new { =head2 next -Virtual method. Advances the cursor to the next row. +Virtual method. Advances the cursor to the next row. Returns an array of +column values (the result of L method). =cut diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 369b89e..4dec7ae 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1121,6 +1121,22 @@ To do this simply use L. Wasn't that easy? +=head2 Get raw data for blindingly fast results + +If the C solution above is not fast enough for you, you +can use a DBIx::Class to return values exactly as they come out of the +data base with none of the convenience methods wrapped round them. + +This is used like so:- + + my $cursor = $rs->cursor + while (my @vals = $cursor->next) { + # use $val[0..n] here + } + +You will need to map the array offsets to particular columns (you can +use the I