Hi all, I have a performance problem on a page using sfDoctrinePager. It takes more than 5 seconds to display the page on local server.
Let's see the code in my actions.class about the pager : $this->product = $this->getRoute()->getObject(); $this->pager = new sfDoctrinePager( 'Product', sfConfig::get('app_max_products_on_shop')); $this->pager->setQuery($this->product->getShopProductsQuery($tri)); $this->pager->setPage($request->getParameter('page',1)); $this->pager->init(); In my template I'm using a partial : <?php include_partial('shop/list',array('products' => $pager->getResults())); ?> And in my partial "list" I have this : <?php foreach ($products as $i => $product): ?> <!-- code to display product list --> <?php endforeach; ?> Have anybody an idea about this performance problem ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en