[Bast-commits] r8009 - DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual

castaway at dev.catalyst.perl.org castaway at dev.catalyst.perl.org
Wed Dec 2 13:19:41 GMT 2009

Author: castaway
Date: 2009-12-02 13:19:40 +0000 (Wed, 02 Dec 2009)
New Revision: 8009

Added note about prefetch and has_many related objects

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Joining.pod
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Joining.pod	2009-12-01 19:49:48 UTC (rev 8008)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Manual/Joining.pod	2009-12-02 13:19:40 UTC (rev 8009)
@@ -106,6 +106,11 @@
 from both tables in one query, preventing extra round-trips to the
 database. See the example above in L</WHAT ARE JOINS>.
+Three techniques are described here. Of the three, only the
+C<prefetch> technique will deal sanely with fetching related objects
+over a C<has_many> relation. The others work fine for 1 to 1 type
 =head2 Whole related objects
 To fetch entire related objects, eg CDs and all Track data, use the

More information about the Bast-commits mailing list