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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -