php - Yii Framework, reduce page loading time due to massive data in sql table -
i have table contains more 15k rows of records.
i'm pulling out data , displaying in jquery datatable plugin took few minutes display. suggestions how reduce page load time?
this how extract data in controller.
$model = property::model->with('estates','types','tenures','rooms','districts')->findall(); $this->render('index', compact('models','pages'));
use pagination , omit "with", way records eagerly loaded, needed display in cache. give try , you'll see immediate difference.
Comments
Post a Comment