Skip to content
Browse files

Little bit of premature optimisation.

  • Loading branch information...
1 parent b770190 commit 8aaeec5f735e6eef1d8de3add1e744238669a72c @davorg committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Lystyng.pm
View
2 lib/Lystyng.pm
@@ -33,6 +33,8 @@ get '/user' => sub {
get '/user/:username' => sub {
if (my $user = resultset('User')->find({
username => params->{username},
+ }, {
+ prefetch => 'lists'
})) {
template 'user', {
user => $user,

0 comments on commit 8aaeec5

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