dongyuntao2000 2010-09-04 01:50
浏览 33
已采纳

显示记录的性能问题

I have a table with just 3,000 records.
I render these 3000 records in the home page without pagination, my client is not interested in pagination...

So to show page completely it takes around 1 min, 15 sec. What can be done to make the page load more quickly?

My table structure:

customer table

  • customer id
  • customer name
  • guider id
  • and few columns

guider table

  • guider id
  • guider name
  • and few columns
  • 写回答

6条回答 默认 最新

  • douxianxing5712 2010-09-04 02:25
    关注

    Where's the slow down? The query or the serving?

    If the former, see the comments above. If the latter:

    Enable gzip on the server. Otherwise capture the [HTML?] output to a file, compress it (zip), then serve it as a download. Same for any other format if you think something else can render it better than a browser (CSV and Open Office).

    If you're outputting the data into a HTML table then you may have an issue where the browser is waiting for the end of the table before rendering it. You can either break this into multiple table chunks like every 500 records/rows or try CSS "table-layout: fixed;".

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?

悬赏问题

  • ¥15 两台交换机分别是trunk接口和access接口为何无法通信,通信过程是如何?
  • ¥15 C语言使用vscode编码错误
  • ¥15 用KSV5转成本时,如何不生成那笔中间凭证
  • ¥20 ensp怎么配置让PC1和PC2通讯上
  • ¥50 有没有适合匹配类似图中的运动规律的图像处理算法
  • ¥15 dnat基础问题,本机发出,别人返回的包,不能命中
  • ¥15 请各位帮我看看是哪里出了问题
  • ¥15 vs2019的js智能提示
  • ¥15 关于#开发语言#的问题:FDTD建模问题图中代码没有报错,但是模型却变透明了
  • ¥15 uniapp的h5项目写一个抽奖动画