2013年8月10日
摘要: 1. 尽可能的减少 HTTP 的请求数 [content]2. 使用 CDN(Content Delivery Network) [server]3. 添加 Expires 头(或者 Cache-control ) [server]4. Gzip 组件 [server]5. 将 CSS 样式放在页面的上方 [css]6. 将脚本移动到底部(包括内联的) [javascript]7. 避免使用 CSS 中的 expression_r_r_r_rs [css]8. 将 JavaScript 和 CSS 独立成外部文件 [javascript] [css]9. 减少 DNS 查询 [content] 阅读全文
posted @ 2013-08-10 12:05 网宗 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 2500万条数据测试select count(id) as total from content where status=1; 49秒钟,cpu暴涨select id from content where status=1; 30秒钟左右select count(id) as total from content where status=1 and sort=1 and ifphoto = 1 and ifattr=1 48秒钟,cpu暴涨20%select id as total from content where status=1 and sort=1 and ifphoto ... 阅读全文
posted @ 2013-08-10 11:39 网宗 阅读(241) 评论(0) 推荐(0) 编辑

糗乐网-糗事|乐事|天下事