<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>键者天行</title><link>http://blog.csdn.net/chensheng913/</link><description>天行键，君子以自强不息；地势坤，君子以厚德载物!</description><dc:language>zh-CN</dc:language><lastUpdateTime>Mon, 22 Sep 2008 17:52:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>chensheng913</dc:creator><title>Java程序员必须要了解的七个开源协议介绍 </title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx</link><pubDate>Mon, 22 Sep 2008 17:51:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2963048.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2963048.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2963048.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2963048</trackback:ping><description>Java程序员必须要了解的七个开源协议介绍。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2963048.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>JSP分页技术实现</title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx</link><pubDate>Mon, 22 Sep 2008 11:50:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2960603.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960603.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2960603.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2960603</trackback:ping><description>目前比较广泛使用的分页方式是将查询结果缓存在HttpSession或有状态bean中，翻页的时候从缓存中取出一页数据显示。这种方法有两个主要的缺点：一是用户可能看到的是过期数据；二是如果数据量非常大时第一次查询遍历结果集会耗费很长时间，并且缓存的数据也会占用大量内存，效率明显下降。
　　其它常见的方法还有每次翻页都查询一次数据库，从ResultSet中只取出一页数据（使用rs.last();rs.getRow()获得总计录条数，使用rs.absolute()定位到本页起始记录）。这种方式在某些数据库(如oracle)的JDBC实现中差不多也是需要遍历所有记录，实验证明在记录数很大时速度非常慢。
　　至于缓存结果集ResultSet的方法则完全是一种错误的做法。因为ResultSet在Statement或Connection关闭时也会被关闭，如果要使ResultSet有效势必长时间占用数据库连接。

　　因此比较好的分页做法应该是每次翻页的时候只从数据库里检索页面大小的块区的数据。这样虽然每次翻页都需要查询数据库，但查询出的记录数很少，网络传输数据量不大，如果使用连接池更可以略过&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2960603.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>JSP页面查询显示常用模式</title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960577.aspx</link><pubDate>Mon, 22 Sep 2008 11:45:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960577.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2960577.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960577.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2960577.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2960577</trackback:ping><description>JSP页面查询显示常用模式，提供三种解决方法。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2960577.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>一句把人逗乐的经典</title><link>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960403.aspx</link><pubDate>Mon, 22 Sep 2008 11:24:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960403.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/2960403.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2008/09/22/2960403.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/2960403.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2960403</trackback:ping><description>一句把人逗乐的经典,仅供娱乐！～&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/2960403.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>怎样成为优秀的软件模型设计者</title><link>http://blog.csdn.net/chensheng913/archive/2007/09/28/1804794.aspx</link><pubDate>Fri, 28 Sep 2007 13:04:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/09/28/1804794.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1804794.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/09/28/1804794.aspx#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1804794.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1804794</trackback:ping><description>我们期待自己成为一个优秀的软件模型设计者，但是，要怎样做，又从哪里开始呢？ &lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1804794.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>为你的程序锦上添花的五种程序组织形式</title><link>http://blog.csdn.net/chensheng913/archive/2007/06/22/1662436.aspx</link><pubDate>Fri, 22 Jun 2007 19:33:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/06/22/1662436.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1662436.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/06/22/1662436.aspx#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1662436.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1662436</trackback:ping><description>为你的程序锦上添花的五种程序组织形式，这五种组织形式,若加以灵活运用,相信能减少一些代码臭味。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1662436.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>oracle9i ---设置DBA认证方式</title><link>http://blog.csdn.net/chensheng913/archive/2007/04/26/1585663.aspx</link><pubDate>Thu, 26 Apr 2007 12:08:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/04/26/1585663.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1585663.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/04/26/1585663.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1585663.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1585663</trackback:ping><description>DBA在执行各种数据库操作时，要使用独立于数据库的方法进行认证。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1585663.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>数据库连接池的原理机制</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx</link><pubDate>Mon, 26 Mar 2007 13:20:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1541403.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/26/1541403.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1541403.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1541403</trackback:ping><description>对于共享资源，有一个很著名的设计模式：资源池（Resource  Pool）。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1541403.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>hibernate分页</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx</link><pubDate>Wed, 07 Mar 2007 11:20:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1522974.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/07/1522974.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1522974.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1522974</trackback:ping><description>分页在任何系统中都是非常头疼的事情，有的数据库在语法上支持分页，而有的数据库则需要使用可滚动游标来实现，并且在不支持可滚动游标的系统上只能使用单向游标逐步接近要取得的数据。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1522974.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>[业内传闻]Google总部不满 李开复你在做什么</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519522.aspx</link><pubDate>Fri, 02 Mar 2007 18:11:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519522.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1519522.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519522.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1519522.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1519522</trackback:ping><description>面对狭窄的权力空间，中国区总裁们是有心杀贼，无力回天。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1519522.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>利用java操作Excel文件</title><link>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx</link><pubDate>Fri, 02 Mar 2007 12:31:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1519050.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2007/03/02/1519050.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1519050.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1519050</trackback:ping><description>利用java操作Excel文件。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1519050.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>如何使用JavaScript进行可靠的继承调用</title><link>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx</link><pubDate>Thu, 28 Dec 2006 14:21:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1465741.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/12/28/1465741.aspx#Feedback</comments><slash:comments>24</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1465741.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1465741</trackback:ping><description>几乎每位在开发JavaScript时尝试应用面向对象技术的开发者，或多或少都会问自己一个问题：“如何调用父类（super class）的方法？”&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1465741.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>从JAR和zip档案文件中提取Java 资源</title><link>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx</link><pubDate>Tue, 31 Oct 2006 15:21:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1358595.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/31/1358595.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1358595.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1358595</trackback:ping><description>将一类 java 资源打包在一个 java archive (jar) 文件中是缩短下载时间、增强安全性和增强可管理性的极好方法。这篇技巧说明如何很容易地从 jar 文件中提取资源以供您自己使用。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1358595.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>Eclipse下实现软件项目的源码管理 </title><link>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx</link><pubDate>Mon, 23 Oct 2006 19:01:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1347034.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/23/1347034.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1347034.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1347034</trackback:ping><description>CVS很酷，但Subversion更酷。然而，如果你在使用Eclipse进行开发，那么你可能直到近来才能利用Subversion带来的优点。随着Subclipse的发行，Subversion可能会最终在你的Eclipse IDE环境充分发挥其威力而压倒CVS。
&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1347034.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chensheng913</dc:creator><title>Eclipse 的字符串分区共享优化机制</title><link>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx</link><pubDate>Mon, 23 Oct 2006 11:09:00 GMT</pubDate><guid>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx</guid><wfw:comment>http://blog.csdn.net/chensheng913/comments/1346300.aspx</wfw:comment><comments>http://blog.csdn.net/chensheng913/archive/2006/10/23/1346300.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chensheng913/comments/commentRss/1346300.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1346300</trackback:ping><description>在 Java/C# 这样基于引用语义处理字符串的语言中，作为不可变对象存在的字符串，如果内容相同，则可以通过某种机制实现重用。&lt;img src ="http://blog.csdn.net/chensheng913/aggbug/1346300.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>