我由一個過客戶表,我讓所有的客戶數據 其中有大約15,000行,使用如何降低笨視圖加載時間
select * from customers order by createdate desc;
指數上createdate
列創建的查詢。 查詢是罰款不考慮太多的時間
但CI認爲加載我檢查這個使用剖析
$this->output->enable_profiler(TRUE);
輸出
BENCHMARKS
Loading Time: Base Classes 0.0231
Header 0.0010
customersView 0.5493 //this is a view taking more time
Footer 0.0554
Controller Execution Time (Customers/CustomersController) 1.2286
Total Execution Time 1.2519
DATABASE: vidyanidhi QUERIES: 2 (Hide)
0.0535 select * from customers where id=2568
0.1799 select * from customers order by createdate desc
頁採取以防萬一2分鐘 如何降低這個視圖在ci中的加載時間。請有人幫助我。
回報他們檢查您的控制檯概述腳本,其他的JS,CSS和圖像加載時間 –
@Shafiqul伊斯蘭教他們正在太少時間10毫秒左右, – Mahantesh
你展示你的代碼? –