Conversation
|
I think it would be better to use a purpose-built select rather than adapting // ...
$select = $db->getTable('SimplePagesPage')->getSelect();
$select->reset(Zend_Db_Select::COLUMNS);
$select->from(array(), array("$alias.slug"));
$slugs = $db->fetchCol($select);Then you wouldn't need the changes you've done in the SimplePagesPage Table class. That snippet could go directly in the define_routes, or be a Generally, this change looks like makes sense, because the current system would add a large number of routes for a large number of pages, and you'd take the hit from all those extra routes on every page load, even those not actually showing a simple page. Out of curiosity, how many pages did you get up to when you started seeing performance issues? |
|
Hi, I replaced the I have a problem on a site with 70 pages and 200 items, but this is on a shared host I don't manage. I can't determine if the issue is linked to the server, mysql or php. Sincerely, Daniel Berthereau |
Hi,
An improvement of the routing system for simple pages, that was too slow when they are too many.
Sincerely,
Daniel Berthereau
Infodoc & Knowledge management