<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 175  文章 - 202  trackbacks - 0
    <2012年6月>
    272829303112
    3456789
    10111213141516
    17181920212223
    24252627282930
    1234567

    第一個Blog,記錄哈哈的生活

    常用鏈接

    留言簿(16)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    收藏夾

    Java links

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    http://dev.mysql.com/doc/refman/5.5/en/connector-j-reference-implementation-notes.html @import url(http://m.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);


    ResultSet

    By default, ResultSets are completely retrieved and stored in memory. In most cases this is the most efficient way to operate, and due to the design of the MySQL network protocol is easier to implement. If you are working with ResultSets that have a large number of rows or large values, and cannot allocate heap space in your JVM for the memory required, you can tell the driver to stream the results back one row at a time.

    To enable this functionality, create a Statement instance in the following manner:

    stmt = conn.createStatement(java.sql.ResultSet.TYPE_FORWARD_ONLY,
    java.sql.ResultSet.CONCUR_READ_ONLY);
    stmt.setFetchSize(Integer.MIN_VALUE);

    The combination of a forward-only, read-only result set, with a fetch size of Integer.MIN_VALUE serves as a signal to the driver to stream result sets row-by-row. After this, any result sets created with the statement will be retrieved row-by-row.

    There are some caveats with this approach. You must read all of the rows in the result set (or close it) before you can issue any other queries on the connection, or an exception will be thrown.

    The earliest the locks these statements hold can be released (whether they be MyISAM table-level locks or row-level locks in some other storage engine such as InnoDB) is when the statement completes.

    If the statement is within scope of a transaction, then locks are released when the transaction completes (which implies that the statement needs to complete first). As with most other databases, statements are not complete until all the results pending on the statement are read or the active result set for the statement is closed.

    Therefore, if using streaming results, process them as quickly as possible if you want to maintain concurrent access to the tables referenced by the statement producing the result set.

    posted on 2012-06-29 13:15 哈哈的日子 閱讀(474) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 人妻仑乱A级毛片免费看| 中文文字幕文字幕亚洲色| 一级毛片**免费看试看20分钟| 午夜a级成人免费毛片| 亚洲乱码国产乱码精华| 日韩免费高清视频| 污网站免费在线观看| 亚洲伊人成无码综合网| 97在线免费视频| 国产亚洲精品一品区99热| 青青青国产手机频在线免费观看 | 国产成人免费网站| 亚洲人妖女同在线播放| 免费的一级片网站| 无码AV动漫精品一区二区免费| 亚洲美女在线国产| a级毛片在线视频免费观看| 老色鬼久久亚洲AV综合| 成人免费AA片在线观看| 立即播放免费毛片一级| 亚洲色偷拍另类无码专区| 最近中文字幕完整版免费高清 | 亚洲精品乱码久久久久蜜桃| 免费人成无码大片在线观看| 久久99久久成人免费播放| 2022年亚洲午夜一区二区福利 | 亚洲Aⅴ无码一区二区二三区软件| 一级毛片正片免费视频手机看| 国产亚洲精品拍拍拍拍拍| 99久久久国产精品免费蜜臀| 亚洲欧美国产国产一区二区三区| 久久精品国产亚洲AV不卡| 6080午夜一级毛片免费看6080夜福利| 亚洲色偷偷色噜噜狠狠99网| 狠狠色婷婷狠狠狠亚洲综合| 亚洲精品在线免费观看视频| 免费福利资源站在线视频| 91亚洲va在线天线va天堂va国产| 日韩视频免费在线| 91成人在线免费视频| 日韩在线一区二区三区免费视频|