diff options
author | Yorhel <git@yorhel.nl> | 2008-11-29 18:27:52 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-11-29 18:27:52 +0100 |
commit | 9d2976410afbc101574d7dfabbdb70b68bf8e419 (patch) | |
tree | df33cfd85f39b4edba6a36e3866b053206a6adc9 /lib/VNDB/Util/LayoutHTML.pm | |
parent | 2fccaa6db5ca4bf5e2c9f50b810ac24dc14c500e (diff) |
Caching the global database statistics
Because I can't say no to a performance increase of 4 to 7ms
for -every- pageview!
Makes use of postgresql triggers and stored procedures.
Diffstat (limited to 'lib/VNDB/Util/LayoutHTML.pm')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index 6f873ba8..79f9c252 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -109,7 +109,7 @@ sub _menu { [ threads => 'Threads' ], [ posts => 'Posts' ], ); - my $stats = $self->dbStats(map $$_[0], @stats); + my $stats = $self->dbStats; div class => 'menubox'; h2 'Database Statistics'; div; |