I am in the process of rewriting an old webapp, from pure PHP to F3.
The old app works well but is in dire need of an update for all sorts of reasons.
I am experiencing quite important performance issues in the f3 version, especially when accessing the DB.
The testing DB contains around 70K items and around 250 columns. It takes quite some time when I try to create a new one or modify an existing one.
The f3 version runs in a subdirectory of the PHP version, so the server can't be the issue.
I have tried on another server with a copy of the live database (200K rows). This returns 504 time outs.
I have included a simple execution time script like this:
function beforeroute()
{
$this->f3->set('SESSION.timestart', microtime(true));
$this->f3->set('SESSION.timestart', microtime(true));
......
function afterroute()
{
$exectime=(microtime(true) - $this->f3->get('SESSION.timestart'))/60;
$this->f3->logger->write($this->f3->get('PARAMS.0')." executed in ". $exectime, 'r');
......
which returns values well below 0.01.
I am puzzled what is causing this delay.
Could this still be a f3 thing or should I look elsewhere? Where?