亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? perform.sgml

?? PostgreSQL7.4.6 for Linux
?? SGML
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
   would be inefficient, since the full Cartesian product of A and C   would have to be formed, there being no applicable condition in the   <literal>WHERE</> clause to allow optimization of the join.  (All   joins in the <productname>PostgreSQL</productname> executor happen   between two input tables, so it's necessary to build up the result   in one or another of these fashions.)  The important point is that   these different join possibilities give semantically equivalent   results but may have hugely different execution costs.  Therefore,   the planner will explore all of them to try to find the most   efficient query plan.  </para>  <para>   When a query only involves two or three tables, there aren't many join   orders to worry about.  But the number of possible join orders grows   exponentially as the number of tables expands.  Beyond ten or so input   tables it's no longer practical to do an exhaustive search of all the   possibilities, and even for six or seven tables planning may take an   annoyingly long time.  When there are too many input tables, the   <productname>PostgreSQL</productname> planner will switch from exhaustive   search to a <firstterm>genetic</firstterm> probabilistic search   through a limited number of possibilities.  (The switch-over threshold is   set by the <varname>geqo_threshold</varname> run-time   parameter.)   The genetic search takes less time, but it won't   necessarily find the best possible plan.  </para>  <para>   When the query involves outer joins, the planner has much less freedom   than it does for plain (inner) joins. For example, consider<programlisting>SELECT * FROM a LEFT JOIN (b JOIN c ON (b.ref = c.id)) ON (a.id = b.id);</programlisting>   Although this query's restrictions are superficially similar to the   previous example, the semantics are different because a row must be   emitted for each row of A that has no matching row in the join of B and C.   Therefore the planner has no choice of join order here: it must join   B to C and then join A to that result.  Accordingly, this query takes   less time to plan than the previous query.  </para>  <para>   Explicit inner join syntax (<literal>INNER JOIN</>, <literal>CROSS   JOIN</>, or unadorned <literal>JOIN</>) is semantically the same as   listing the input relations in <literal>FROM</>, so it does not need to   constrain the join order.  But it is possible to instruct the   <productname>PostgreSQL</productname> query planner to treat   explicit inner <literal>JOIN</>s as constraining the join order anyway.   For example, these three queries are logically equivalent:<programlisting>SELECT * FROM a, b, c WHERE a.id = b.id AND b.ref = c.id;SELECT * FROM a CROSS JOIN b CROSS JOIN c WHERE a.id = b.id AND b.ref = c.id;SELECT * FROM a JOIN (b JOIN c ON (b.ref = c.id)) ON (a.id = b.id);</programlisting>   But if we tell the planner to honor the <literal>JOIN</> order,   the second and third take less time to plan than the first.  This effect   is not worth worrying about for only three tables, but it can be a   lifesaver with many tables.  </para>  <para>   To force the planner to follow the <literal>JOIN</> order for inner joins,   set the <varname>join_collapse_limit</> run-time parameter to 1.   (Other possible values are discussed below.)  </para>  <para>   You do not need to constrain the join order completely in order to   cut search time, because it's OK to use <literal>JOIN</> operators   within items of a plain <literal>FROM</> list.  For example, consider<programlisting>SELECT * FROM a CROSS JOIN b, c, d, e WHERE ...;</programlisting>   With <varname>join_collapse_limit</> = 1, this   forces the planner to join A to B before joining them to other tables,   but doesn't constrain its choices otherwise.  In this example, the   number of possible join orders is reduced by a factor of 5.  </para>  <para>   Constraining the planner's search in this way is a useful technique   both for reducing planning time and for directing the planner to a   good query plan.  If the planner chooses a bad join order by default,   you can force it to choose a better order via <literal>JOIN</> syntax   --- assuming that you know of a better order, that is.  Experimentation   is recommended.  </para>  <para>   A closely related issue that affects planning time is collapsing of   subqueries into their parent query.  For example, consider<programlisting>SELECT *FROM x, y,    (SELECT * FROM a, b, c WHERE something) AS ssWHERE somethingelse;</programlisting>   This situation might arise from use of a view that contains a join;   the view's <literal>SELECT</> rule will be inserted in place of the view reference,   yielding a query much like the above.  Normally, the planner will try   to collapse the subquery into the parent, yielding<programlisting>SELECT * FROM x, y, a, b, c WHERE something AND somethingelse;</programlisting>   This usually results in a better plan than planning the subquery   separately.  (For example, the outer <literal>WHERE</> conditions might be such that   joining X to A first eliminates many rows of A, thus avoiding the need to   form the full logical output of the subquery.)  But at the same time,   we have increased the planning time; here, we have a five-way join   problem replacing two separate three-way join problems.  Because of the   exponential growth of the number of possibilities, this makes a big   difference.  The planner tries to avoid getting stuck in huge join search   problems by not collapsing a subquery if more than   <varname>from_collapse_limit</> <literal>FROM</> items would result in the parent   query.  You can trade off planning time against quality of plan by   adjusting this run-time parameter up or down.  </para>  <para>   <varname>from_collapse_limit</> and <varname>join_collapse_limit</>   are similarly named because they do almost the same thing: one controls   when the planner will <quote>flatten out</> subselects, and the   other controls when it will flatten out explicit inner joins.  Typically   you would either set <varname>join_collapse_limit</> equal to   <varname>from_collapse_limit</> (so that explicit joins and subselects   act similarly) or set <varname>join_collapse_limit</> to 1 (if you want   to control join order with explicit joins).  But you might set them   differently if you are trying to fine-tune the trade off between planning   time and run time.  </para> </sect1> <sect1 id="populate">  <title>Populating a Database</title>  <para>   One may need to do a large number of table insertions when first   populating a database. Here are some tips and techniques for making that as   efficient as possible.  </para>  <sect2 id="disable-autocommit">   <title>Disable Autocommit</title>   <indexterm zone="disable-autocommit">    <primary>autocommit</primary>   </indexterm>   <para>    Turn off autocommit and just do one commit at    the end.  (In plain SQL, this means issuing <command>BEGIN</command>    at the start and <command>COMMIT</command> at the end.  Some client    libraries may do this behind your back, in which case you need to    make sure the library does it when you want it done.)    If you allow each insertion to be committed separately,    <productname>PostgreSQL</productname> is doing a lot of work for each    row added.    An additional benefit of doing all insertions in one transaction    is that if the insertion of one row were to fail then the    insertion of all rows inserted up to that point would be rolled    back, so you won't be stuck with partially loaded data.   </para>  </sect2>  <sect2 id="populate-copy-from">   <title>Use <command>COPY FROM</command></title>   <para>    Use <command>COPY FROM STDIN</command> to load all the rows in one    command, instead of using a series of <command>INSERT</command>    commands.  This reduces parsing, planning, etc.  overhead a great    deal. If you do this then it is not necessary to turn off    autocommit, since it is only one command anyway.   </para>  </sect2>  <sect2 id="populate-rm-indexes">   <title>Remove Indexes</title>   <para>    If you are loading a freshly created table, the fastest way is to    create the table, bulk load the table's data using    <command>COPY</command>, then create any indexes needed for the    table.  Creating an index on pre-existing data is quicker than    updating it incrementally as each row is loaded.   </para>   <para>    If you are augmenting an existing table, you can drop the index,    load the table, then recreate the index. Of    course, the database performance for other users may be adversely     affected during the time that the index is missing.  One should also    think twice before dropping unique indexes, since the error checking    afforded by the unique constraint will be lost while the index is missing.   </para>  </sect2>  <sect2 id="populate-sort-mem">   <title>Increase <varname>sort_mem</varname></title>   <para>    Temporarily increasing the <varname>sort_mem</varname>    configuration variable when restoring large amounts of data can    lead to improved performance. This is because when a B-tree index    is created from scratch, the existing content of the table needs    to be sorted. Allowing the merge sort to use more buffer pages    means that fewer merge passes will be required.   </para>  </sect2>  <sect2 id="populate-analyze">   <title>Run <command>ANALYZE</command> Afterwards</title>   <para>    It's a good idea to run <command>ANALYZE</command> or <command>VACUUM    ANALYZE</command> anytime you've added or updated a lot of data,    including just after initially populating a table.  This ensures that    the planner has up-to-date statistics about the table.  With no statistics    or obsolete statistics, the planner may make poor choices of query plans,    leading to bad performance on queries that use your table.   </para>  </sect2>  </sect1> </chapter><!-- Keep this comment at the end of the fileLocal variables:mode:sgmlsgml-omittag:nilsgml-shorttag:tsgml-minimize-attributes:nilsgml-always-quote-attributes:tsgml-indent-step:1sgml-indent-data:tsgml-parent-document:nilsgml-default-dtd-file:"./reference.ced"sgml-exposed-tags:nilsgml-local-catalogs:("/usr/lib/sgml/catalog")sgml-local-ecat-files:nilEnd:-->

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
捆绑调教一区二区三区| 欧美三级在线播放| 国产精品亚洲成人| 激情综合色综合久久| 美国一区二区三区在线播放| 青青草视频一区| 蜜桃精品视频在线观看| 美女视频黄久久| 久色婷婷小香蕉久久| 激情综合色综合久久综合| 国产美女精品一区二区三区| 国产成人av一区二区三区在线| 国产成人精品免费看| 成人免费高清视频在线观看| 99久久国产综合精品女不卡| 一本大道久久a久久精二百| 欧美性生活一区| 精品日韩一区二区三区| 久久综合成人精品亚洲另类欧美 | 国产网站一区二区| 日本一区二区免费在线观看视频| 国产精品久久久久久一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 中文字幕一区在线观看| 一区二区免费在线| 婷婷久久综合九色综合伊人色| 免费观看一级欧美片| 国产高清精品久久久久| 91亚洲国产成人精品一区二区三 | 91在线观看成人| 91福利在线看| 伊人色综合久久天天| 日韩激情视频网站| 国产麻豆91精品| 91小视频免费看| 欧美一级高清片在线观看| 国产欧美日韩卡一| 一区二区三区免费观看| 捆绑调教美女网站视频一区| 成人av在线播放网站| 欧美日韩国产免费一区二区| 欧美成人在线直播| 国产精品麻豆欧美日韩ww| 午夜精品福利在线| 成人午夜激情在线| 制服丝袜中文字幕一区| 欧美激情在线观看视频免费| 亚洲国产美女搞黄色| 国产一区二区三区不卡在线观看 | 91蜜桃免费观看视频| 3d成人动漫网站| 一区在线中文字幕| 青娱乐精品视频| 色哟哟国产精品| 久久久久久久久一| 婷婷综合久久一区二区三区| 成人晚上爱看视频| 日韩丝袜美女视频| 一区二区高清视频在线观看| 国产精品996| 337p亚洲精品色噜噜狠狠| 亚洲色图色小说| 国产一区二区美女诱惑| 精品视频在线免费| 国产精品乱码一区二三区小蝌蚪| 青青草原综合久久大伊人精品 | 久久精品99国产精品| 91社区在线播放| 久久久精品国产免大香伊| 亚洲自拍偷拍图区| 成人97人人超碰人人99| 欧美成人精品3d动漫h| 亚洲国产精品久久艾草纯爱| 成人动漫视频在线| 久久免费美女视频| 久久成人久久爱| 538在线一区二区精品国产| 一区二区三区高清| 成人av电影观看| 欧美国产精品一区二区三区| 久久精品久久精品| 91精品国产综合久久蜜臀 | 国产成人综合在线观看| 欧美r级电影在线观看| 日韩电影免费在线观看网站| 欧洲亚洲精品在线| 亚洲色图欧美激情| jvid福利写真一区二区三区| 久久久久久**毛片大全| 黄色资源网久久资源365| 91精品国产丝袜白色高跟鞋| 亚洲亚洲精品在线观看| 91精品福利在线| 国产精品久久久久影院色老大| 国产成人综合在线观看| 欧美国产日本韩| 成人午夜短视频| 国产视频一区在线观看| 国产乱码精品一品二品| 久久99热国产| 欧美一卡二卡三卡四卡| 欧美a一区二区| 欧美一区二区日韩| 麻豆精品久久精品色综合| 日韩亚洲欧美在线| 国产综合久久久久久鬼色| 26uuu久久综合| 国产成人综合亚洲网站| 中文av一区二区| aaa欧美大片| 综合av第一页| 欧美三级在线视频| 青青草国产精品97视觉盛宴 | 一区二区三区蜜桃| 欧美三电影在线| 奇米影视一区二区三区| 欧美成人vr18sexvr| 国产一本一道久久香蕉| 国产精品每日更新| 欧美在线视频不卡| 麻豆视频一区二区| 亚洲国产高清不卡| 欧洲另类一二三四区| 免费av网站大全久久| 欧美精品一区男女天堂| 成人美女视频在线观看18| 亚洲精品视频在线看| 欧美喷水一区二区| 国产麻豆一精品一av一免费| 国产精品国产三级国产普通话蜜臀| 91同城在线观看| 日韩精品久久理论片| 久久久久成人黄色影片| 91同城在线观看| 日本成人在线看| 国产精品久久二区二区| 欧美日韩亚洲国产综合| 精品在线免费观看| √…a在线天堂一区| 欧美日韩成人综合在线一区二区| 久久国产成人午夜av影院| 国产精品亲子乱子伦xxxx裸| 欧美性猛交xxxxxxxx| 国内精品国产三级国产a久久| 国产精品盗摄一区二区三区| 欧美精品久久久久久久多人混战| 国产一区不卡在线| 一区二区三区在线观看欧美| 日韩欧美国产1| 99久久精品免费精品国产| 日韩精品色哟哟| 国产精品女主播av| 91精品国产福利| av不卡免费电影| 国内精品久久久久影院色| 亚洲一本大道在线| 中文字幕的久久| 日韩欧美美女一区二区三区| 99久久国产综合精品女不卡| 久久99精品国产| 亚洲一区二区三区四区的| 日本一区二区三区在线不卡| 欧美一区二区视频在线观看| www.亚洲色图| 精品一区二区三区在线观看国产| 亚洲人成网站精品片在线观看| 精品国产乱子伦一区| 欧美视频一区在线| 成人黄色免费短视频| 久久电影国产免费久久电影| 亚洲国产综合人成综合网站| 国产精品午夜在线观看| 日韩欧美成人一区二区| 精品视频色一区| 91年精品国产| 国产sm精品调教视频网站| 青青国产91久久久久久| 91网站最新网址| 国产成人aaa| 精品一区二区三区免费毛片爱| 亚洲一区二区精品视频| 亚洲女同女同女同女同女同69| 久久色视频免费观看| 欧美一区二区精品| 欧美视频一区二区在线观看| 不卡大黄网站免费看| 国产a精品视频| 国产自产v一区二区三区c| 男女性色大片免费观看一区二区| 一区二区三区欧美亚洲| 中文字幕佐山爱一区二区免费| 国产视频911| 久久先锋资源网| 日韩免费视频一区| 日韩午夜三级在线| 91精品国产综合久久久久久久久久| 欧美美女视频在线观看| 欧美三片在线视频观看| 欧美日韩免费电影| 欧美日韩一级二级|