2007-04-26

优化网页加载时间

关键字: 优化
同事共享的一篇关于优化网页加载时间的文章 Optimzing Page Load Time,还没认真看,先收藏了。
2007-04-11

mysql中的count

关键字: mysql 数据库
myisam的count(*)结果是直接读缓存的,因此不用时间。innodb的count(*)是运行时读取记录行数的。 同是myisam。count(*)与count(not_null_col)的结果及速度都一样。而count(null_col)结果只包含非null的记录数,并且要运行时读取记录行数。 如果count(*)的时间有where子句,count(*)是可以利用where中字段的索引进行行数统计。但count(col)不能,除非把col与where中的字段同时索引。
2007-04-05

why i can't take the fox with fire out of my eye

关键字: firefox plugin
how could i live without these plugins, which i can't find better alternatives. Firebug the best all-in-one web development toolkit LiveHttpHeaders http header inspector del.icio.us Bookmarks bookmark easy. what a nightmare the time without del.icio.us when using different machines/OSs ...
2006-11-25

好爽!groovy一下xml读取

关键字: groovy xml
接触groovy也有比较长一段时间了,刚接触时是刚得挺有趣的,学来玩玩。玩着到后来就忍不住引入到工作中了。多用于做些效率不重要的小任务。最近有个需求是定期从另一个网站提供的接口导入xml数据到数据库,数据量是比较少的。 在Java中我只用过dom4j做xml解释,对着一堆document, node, element之类的东西,还要一层一层的深入。。。想起都已经觉得烦 在groovy的文档上扫了一下,发现有个叫XmlSlurper的东东,提供的接口可以让我们像使用一个对象一样去读一个element,非常直观简单。 用文档中提供的XML为例: example.xml cl ...
Sam1860
搜索本博客
存档
最新评论