Subject: | "prefetch" in Example not needed |
Hi,
following a brief discussion in IRC and a quick test, I've come to
the belief that "prefetch" in DBIx::Class::Manual::Example is not really
needed. I've attached a patch to the documentation module.
I think that it could be useful because it really surprised me to see
that "prefetch" there in the example, especially after reading the
relevant "prefetch" documentation!
Cheers,
Flavio.
PS: The patch has been formatted using "git", but "patch" should grok it
with no problem.
Subject: | 0001-Removed-prefetch-in-example-not-needed.patch |
From 808c73534e321f1b259f7a37d49a79102a15e619 Mon Sep 17 00:00:00 2001
From: Flavio Poletti <flavio@polettix.it>
Date: Wed, 1 Oct 2008 14:31:44 +0200
Subject: [PATCH] Removed "prefetch" in example - not needed.
0 2 lib/DBIx/Class/Manual/Example.pod
diff --git a/lib/DBIx/Class/Manual/Example.pod b/lib/DBIx/Class/Manual/Example.pod
index 2fa0492..884d7fc 100755
--- a/lib/DBIx/Class/Manual/Example.pod
+++ b/lib/DBIx/Class/Manual/Example.pod
@@ -220,7 +220,6 @@ testdb.pl:
},
{
join => [qw/ cd /],
- prefetch => [qw/ cd /]
}
);
while (my $track = $rs->next) {
@@ -273,7 +272,6 @@ testdb.pl:
},
{
join => [qw/ artist /],
- prefetch => [qw/ artist /]
}
);
while (my $cd = $rs->next) {
--
1.5.5.4