Skip to content
This repository
Browse code

Little bit of premature optimisation.

  • Loading branch information...
commit 8aaeec5f735e6eef1d8de3add1e744238669a72c 1 parent b770190
Dave Cross authored February 07, 2014

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  lib/Lystyng.pm
2  lib/Lystyng.pm
@@ -33,6 +33,8 @@ get '/user' => sub {
33 33
 get '/user/:username' => sub {
34 34
   if (my $user = resultset('User')->find({
35 35
     username => params->{username},
  36
+  }, {
  37
+    prefetch => 'lists'
36 38
   })) {
37 39
     template 'user', {
38 40
       user => $user,

0 notes on commit 8aaeec5

Please sign in to comment.
Something went wrong with that request. Please try again.