I know when I used the same procedure (just gii) for another table. that loaded fine, this ‘emap’ index page takes 30 seconds (I am counting the seconds manually on my watch)
If you are calling ‘index’ action, I’ll put a var_dump immediatety after the data provider initialization and getModel() call.
public function actionIndex()
{
$searchModel = new EmapSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
// This call is needed to load all data provider data
$item = $dataProvider->getModels();
var_dump('all items loaded');
exit; // action stops here
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $dataProvider,
]);
}
That suggestion peeked my interest. Although it was not a index problem, but another problem related to an event handler that was called many many times