Elasticsearch let you count results for a query without fetching its results (documents), which is faster. Here is how to do this very easily when using FOSElasticaBundle
In Symfony, DoctrineBundle is responsible for the configuration and integration of Doctrine, including DBAL. Nonetheless, the bundle does not yet support DBAL cache configuration (but support it for the ORM part of Doctrine).
Your application is little slow, and you want what takes so long ? First reflex, go see the profiler’s timeline in the Symfony debug toolbar. Nice, but your service isn’t visible in the timeline, and you know your service do lot of work, which could be the reason of your slowness ! No problem, you can easily add its execution time on the timeline.
If you are using FOSUserBundle or your own user system, it’s really easy to know which of your users are online.
The goal of this blog is tp share some of my experience on the Symfony2 php web framework.
I’m trying to translate some of my articles to english, if you want me to translate a missing one, contact me : email@example.com