⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 collection-performance.html

📁 hibernate的一点学习资料!
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head>      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">   <title>Chapter&nbsp;13.&nbsp;&#29702;&#35299;&#38598;&#21512;&#31867;&#30340;&#24615;&#33021;&#65288;Understanding Collection Performance&#65289;</title><link rel="stylesheet" href="../styles/html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.60.1"><link rel="home" href="index.html" title="HIBERNATE - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;"><link rel="up" href="index.html" title="HIBERNATE - &#31526;&#21512;Java&#20064;&#24815;&#30340;&#20851;&#31995;&#25968;&#25454;&#24211;&#25345;&#20037;&#21270;"><link rel="previous" href="performance.html" title="Chapter&nbsp;12.&nbsp;&#24615;&#33021;&#25552;&#21319;&#65288;Improving Performance&#65289;"><link rel="next" href="query-criteria.html" title="Chapter&nbsp;14.&nbsp;&#26465;&#20214;&#26597;&#35810;(Criteria Query)"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter&nbsp;13.&nbsp;&#29702;&#35299;&#38598;&#21512;&#31867;&#30340;&#24615;&#33021;&#65288;Understanding Collection Performance&#65289;</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="performance.html">Prev</a>&nbsp;</td><th width="60%" align="center">&nbsp;</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="query-criteria.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="collection-performance"></a>Chapter&nbsp;13.&nbsp;&#29702;&#35299;&#38598;&#21512;&#31867;&#30340;&#24615;&#33021;&#65288;Understanding Collection Performance&#65289;</h2></div></div><div></div></div><p>        &#25105;&#20204;&#24050;&#32463;&#22312;&#38598;&#21512;&#31867;(collections)&#19978;&#38754;&#33457;&#20102;&#24456;&#22810;&#21475;&#33292;&#20102;&#12290;&#36825;&#19968;&#31456;&#65292;&#25105;&#20204;&#35201;&#30528;&#37325;&#20851;&#27880;&#38598;&#21512;&#31867;&#22312;&#36816;&#34892;&#26102;&#30340;&#19968;&#20123;&#38382;&#39064;&#12290;    </p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="collection-performance-taxonomy"></a>13.1.&nbsp;&#20998;&#31867;&#65288;Taxonomy&#65289;</h2></div></div><div></div></div><p>Hibernate&#23450;&#20041;&#20102;&#19977;&#31181;&#19981;&#21516;&#30340;&#22522;&#26412;&#38598;&#21512;&#31867;</p><div class="itemizedlist"><ul type="disc"><li><p>&#20540;&#38598;&#21512;</p></li><li><p>&#19968;&#23545;&#22810;&#20851;&#32852;</p></li><li><p>&#22810;&#23545;&#22810;&#20851;&#32852;</p></li></ul></div><p>            &#36825;&#20010;&#20998;&#31867;&#26041;&#27861;&#26159;&#26681;&#25454;&#19981;&#21516;&#30340;&#34920;&#21644;&#22806;&#38190;&#20851;&#31995;&#26469;&#21306;&#20998;&#30340;&#65292;&#20294;&#26159;&#27809;&#26377;&#30830;&#20999;&#30340;&#21578;&#35785;&#25105;&#20204;&#20851;&#31995;&#27169;&#22411;&#12290;&#35201;&#23436;&#25972;&#30340;&#20102;&#35299;&#20851;&#31995;&#32467;&#26500;&#21644;&#24615;&#33021;&#30340;&#21306;&#21035;&#65292;&#25105;&#20204;&#24517;&#39035;&#32771;&#34385;Hibernate&#20877;&#26356;&#26032;&#25110;&#32773;&#21024;&#38500;&#38598;&#21512;&#31867;&#35760;&#24405;&#26102;&#30340;&#20027;&#38190;&#32467;&#26500;&#12290;&#36825;&#26679;&#30340;&#35805;&#65292;&#25105;&#20204;&#20250;&#24471;&#21040;&#22914;&#19979;&#30340;&#20998;&#31867;&#65306;        </p><div class="itemizedlist"><ul type="disc"><li><p>&#26377;&#24207;&#38598;&#21512;&#31867;</p></li><li><p>&#38598;&#21512;&#65288;sets&#65289;</p></li><li><p>&#21253;&#65288;bags&#65289;</p></li></ul></div><p>            &#25152;&#26377;&#30340;&#26377;&#24207;&#38598;&#21512;&#31867;&#65288;map,list,array)&#37117;&#26377;&#19968;&#20010;&#30001;<tt class="literal">&lt;key&gt;</tt>&#21644;<tt class="literal">&lt;index&gt;</tt>&#32452;&#21512;&#30340;&#20027;&#38190;&#23383;&#27573;&#12290;&#36825;&#31181;&#38598;&#21512;&#31867;&#30340;&#26356;&#26032;&#38750;&#24120;&#39640;&#25928;&#8212;&#8212;&#20027;&#38190;&#26377;&#25928;&#22320;&#25490;&#20102;&#24207;&#65292;Hibernate&#35201;&#26356;&#26032;&#25110;&#32773;&#21024;&#38500;&#19968;&#20010;&#20803;&#32032;&#30340;&#26102;&#20505;&#21487;&#20197;&#24456;&#39640;&#25928;&#30340;&#25214;&#21040;&#23427;&#12290;        </p><p>            &#38598;&#21512;(Sets)&#26377;&#19968;&#20010;&#30001;<tt class="literal">&lt;key&gt;</tt>&#21644;&#26576;&#20010;&#20803;&#32032;&#23383;&#27573;&#32452;&#25104;&#30340;&#20027;&#38190;&#12290;&#23545;&#20110;&#26576;&#20123;&#20803;&#32032;&#31867;&#22411;&#65292;&#29305;&#21035;&#26159;&#32452;&#21512;&#20803;&#32032;&#20197;&#21450;&#22823;&#26412;&#25991;&#12289;&#20108;&#36827;&#21046;&#23383;&#27573;&#65292;&#25928;&#29575;&#20250;&#26469;&#30340;&#27604;&#36739;&#20302;&#65307;&#25968;&#25454;&#24211;&#26080;&#27861;&#23545;&#22797;&#26434;&#30340;&#20027;&#38190;&#26377;&#25928;&#32034;&#24341;&#12290;&#21478;&#19968;&#26041;&#38754;&#65292;&#23545;&#19968;&#23545;&#22810;&#20851;&#31995;&#25110;&#32773;&#22810;&#23545;&#22810;&#20851;&#31995;&#26469;&#35828;&#65292;&#29305;&#21035;&#26159;&#20351;&#29992;&#8220;&#20154;&#36896;&#8221;&#30340;&#26631;&#35782;&#31526;&#30340;&#26102;&#20505;&#65292;&#23427;&#30340;&#24615;&#33021;&#21516;&#26679;&#20986;&#33394;&#12290;&#65288;&#27880;&#65306;&#22914;&#26524;&#20320;&#24076;&#26395;<tt class="literal">SchemaExport</tt>&#20026;&#20320;&#21019;&#24314;&#19968;&#20010;<tt class="literal">&lt;set&gt;</tt>&#30340;&#20027;&#38190;&#65292;&#20320;&#24517;&#39035;&#25226;&#25152;&#26377;&#30340;&#23383;&#27573;&#37117;&#22768;&#26126;&#25104;<tt class="literal">non-null="true"</tt>&#12290;&#65289;        </p><p>            &#21253;(Bags)&#26159;&#26368;&#24046;&#21170;&#30340;&#12290;&#22240;&#20026;&#21253;&#20801;&#35768;&#20803;&#32032;&#20540;&#37325;&#22797;&#65292;&#20063;&#27809;&#26377;&#32034;&#24341;&#23383;&#27573;&#65292;&#25152;&#20197;&#26080;&#27861;&#23450;&#20041;&#20027;&#38190;&#12290;Hibernate&#27809;&#26377;&#21150;&#27861;&#26469;&#21306;&#20998;&#37325;&#22797;&#30340;&#34892;&#12290;Hibernate&#30340;&#22788;&#29702;&#26041;&#27861;&#26159;&#65292;&#27599;&#24403;&#26356;&#25913;&#30340;&#26102;&#20505;&#65292;&#23436;&#20840;&#21024;&#38500;&#65288;&#29992;&#19968;&#20010;<tt class="literal">DELETE</tt>),&#20877;&#37325;&#26032;&#21019;&#24314;&#36825;&#20010;&#38598;&#21512;&#31867;&#12290;&#36825;&#21487;&#33021;&#26159;&#25928;&#29575;&#26497;&#20302;&#30340;&#12290;        </p><p>            &#35831;&#27880;&#24847;&#65292;&#23545;&#20110;&#19968;&#23545;&#22810;&#20851;&#32852;&#65292;"&#20027;&#38190;"&#21487;&#33021;&#19981;&#26159;&#25968;&#25454;&#24211;&#34920;&#30340;&#29289;&#29702;&#20027;&#38190;&#8212;&#8212;&#24403;&#26102;&#23601;&#31639;&#32771;&#34385;&#36825;&#31181;&#24773;&#20917;&#65292;&#19978;&#38754;&#20998;&#31867;&#25551;&#36848;&#20173;&#28982;&#26159;&#27491;&#30830;&#30340;&#12290;(&#21453;&#26144;&#20102;Hibernate&#26159;&#22914;&#20309;&#22312;&#19981;&#21516;&#30340;&#38598;&#21512;&#31867;&#20013;&#8220;&#23450;&#20301;&#8221;&#26576;&#26465;&#35760;&#24405;&#30340;&#12290;)        </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="collection-performance-mostefficient-1"></a>13.2.&nbsp;Lists, maps &#21644;sets&#29992;&#20110;&#26356;&#26032;&#25928;&#29575;&#26368;&#39640;</h2></div></div><div></div></div><p>            &#26681;&#25454;&#25105;&#20204;&#19978;&#38754;&#30340;&#35752;&#35770;&#65292;&#26174;&#28982;&#26377;&#24207;&#31867;&#22411;&#21644;&#22823;&#22810;&#25968;set&#21487;&#20197;&#22312;&#22686;&#21152;/&#21024;&#38500;/&#20462;&#25913;&#20803;&#32032;&#30340;&#26102;&#20505;&#24471;&#21040;&#26368;&#22909;&#30340;&#24615;&#33021;&#12290;        </p><p>            &#20294;&#26159;&#65292;&#22312;&#22810;&#23545;&#22810;&#20851;&#32852;&#65292;&#25110;&#32773;&#23545;&#20540;&#20803;&#32032;&#32780;&#35328;&#65292;&#26377;&#24207;&#38598;&#21512;&#31867;&#27604;&#38598;&#21512;(set)&#26377;&#19968;&#20010;&#22909;&#22788;&#12290;&#22240;&#20026;<tt class="literal">Set</tt>&#30340;&#32467;&#26500;&#65292;&#22914;&#26524;&#8220;&#25913;&#21464;&#8221;&#20102;&#19968;&#20010;&#20803;&#32032;,Hibernate&#24182;&#19981;&#20250;<tt class="literal">UPDATE</tt>&#36825;&#19968;&#34892;&#12290;&#23545;<tt class="literal">Set</tt>&#26469;&#35828;&#65292;&#21482;&#26377;<tt class="literal">INSERT</tt>&#21644;<tt class="literal">DELETE</tt>&#25165;&#26377;&#25928;&#12290;&#27880;&#24847;&#36825;&#19968;&#27573;&#25551;&#36848;&#23545;&#19968;&#23545;&#22810;&#20851;&#32852;&#24182;&#19981;&#36866;&#29992;&#12290;        </p><p>            &#27880;&#24847;&#21040;&#25968;&#32452;&#26080;&#27861;&#24310;&#36831;&#36716;&#36733;&#65292;&#25105;&#20204;&#21487;&#20197;&#24471;&#20986;&#32467;&#35770;&#65292;list, map&#21644;set&#26159;&#26368;&#39640;&#25928;&#30340;&#38598;&#21512;&#31867;&#22411;&#12290;&#65288;&#24403;&#28982;&#65292;&#25105;&#20204;&#35686;&#21578;&#36807;&#20102;&#65292;&#30001;&#20110;&#38598;&#21512;&#20013;&#30340;&#20540;&#30340;&#20851;&#31995;&#65292;set&#21487;&#33021;&#24615;&#33021;&#19979;&#38477;&#12290;&#65289;        </p><p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -