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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -