]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Instead of selecting the whole data, just count it
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 3 Sep 2016 16:11:07 +0000 (18:11 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sat, 3 Sep 2016 16:11:07 +0000 (18:11 +0200)
commit543da3e0b7592b1a00a7c5baec1554460609d63f
treeb7e3ad3bbd69ff99e2d051a4381e2854706fad57
parent8f8654913ce82be12219a37a24630066bbe950c2
Instead of selecting the whole data, just count it

Instead of performing a complex select (to retrieve all data for entry, etc...) just select the counter and retrieve it.

Down from ~50ms to ~30ms on the unread page (with 500 items)
src/Wallabag/CoreBundle/Controller/DeveloperController.php
src/Wallabag/CoreBundle/Twig/WallabagExtension.php