Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Little bit of premature optimisation.

  • Loading branch information...
commit 8aaeec5f735e6eef1d8de3add1e744238669a72c 1 parent b770190
Dave Cross authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/Lystyng.pm
2  lib/Lystyng.pm
View
@@ -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,
Please sign in to comment.
Something went wrong with that request. Please try again.