久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <tfoot id='uwz5e'></tfoot>
  1. <legend id='uwz5e'><style id='uwz5e'><dir id='uwz5e'><q id='uwz5e'></q></dir></style></legend>
  2. <i id='uwz5e'><tr id='uwz5e'><dt id='uwz5e'><q id='uwz5e'><span id='uwz5e'><b id='uwz5e'><form id='uwz5e'><ins id='uwz5e'></ins><ul id='uwz5e'></ul><sub id='uwz5e'></sub></form><legend id='uwz5e'></legend><bdo id='uwz5e'><pre id='uwz5e'><center id='uwz5e'></center></pre></bdo></b><th id='uwz5e'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uwz5e'><tfoot id='uwz5e'></tfoot><dl id='uwz5e'><fieldset id='uwz5e'></fieldset></dl></div>

        <bdo id='uwz5e'></bdo><ul id='uwz5e'></ul>

      <small id='uwz5e'></small><noframes id='uwz5e'>

      Microsoft SQL Server 2008 中 JOIN 與 APPLY 的相對效率

      Relative Efficiency of JOIN vs APPLY in Microsoft SQL Server 2008(Microsoft SQL Server 2008 中 JOIN 與 APPLY 的相對效率)
      • <bdo id='5rNQe'></bdo><ul id='5rNQe'></ul>

          <i id='5rNQe'><tr id='5rNQe'><dt id='5rNQe'><q id='5rNQe'><span id='5rNQe'><b id='5rNQe'><form id='5rNQe'><ins id='5rNQe'></ins><ul id='5rNQe'></ul><sub id='5rNQe'></sub></form><legend id='5rNQe'></legend><bdo id='5rNQe'><pre id='5rNQe'><center id='5rNQe'></center></pre></bdo></b><th id='5rNQe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5rNQe'><tfoot id='5rNQe'></tfoot><dl id='5rNQe'><fieldset id='5rNQe'></fieldset></dl></div>
            <tbody id='5rNQe'></tbody>
          <tfoot id='5rNQe'></tfoot>

              <legend id='5rNQe'><style id='5rNQe'><dir id='5rNQe'><q id='5rNQe'></q></dir></style></legend>

              <small id='5rNQe'></small><noframes id='5rNQe'>

                本文介紹了Microsoft SQL Server 2008 中 JOIN 與 APPLY 的相對效率的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我們剛剛開始考慮從 SQL 2000 遷移到 SQL 2008,并注意到新的 CROSS APPLY 和 INNER APPLY 語法允許對表值參數(shù)化 UDF 或相關(guān)子查詢進行連接"形式.

                We're just starting to look at moving to SQL 2008 from SQL 2000 and are noting the new CROSS APPLY and INNER APPLY syntax that allows a form of 'joining' against either table-valued parametrized UDFs or correlated subqueries.

                顯然,能夠?qū)⑦壿嫹庋b在 UDF 中并能夠在不同的查詢中重用它會很好,但我確信該功能是有代價的.

                Obviously it would be nice to be able to encapsulate logic in a UDF and be able to reuse it in different queries, but I'm sure that functionality comes with a cost.

                我已經(jīng)在網(wǎng)上環(huán)顧了很多,但我找不到任何性能指標表明在使用基于 APPLY 的查詢時您會受到多大的性能影響,而如果您內(nèi)聯(lián)相同的查詢可能會得到什么查詢.

                I've looked around on the Net quite a bit but I can't find any performance metrics that indicate how much of a performance hit you would take when using APPLY-based queries over what you might get if you inlined the same query.

                我知道確切的影響將在很大程度上取決于特定的架構(gòu)和查詢,但我很好奇是否有人有任何調(diào)整現(xiàn)實世界系統(tǒng)的經(jīng)驗來分享這方面的經(jīng)驗.

                I know the exact impacts will depend heavily on the specific schema and queries, but I was curious if anyone has any experience from tuning real-world systems to share on this.

                推薦答案

                我在某些地方使用了 APPLY.如果必須這樣做,強制逐行處理而不是循環(huán)處理很有用.

                I use APPLY in places. It's useful to force row by row processing instead of a loop, if you have to do it.

                奇怪的是,在一個地方它更有效(使用探查器查看讀取時),因為優(yōu)化器將 UDF 視為黑盒并根據(jù)需要應用過濾器.

                Oddly, in one place it ws more efficient (when using profiler to view reads) because the optimiser treated the UDF as a black box and applied the filter as I wanted.

                udf 是一個內(nèi)聯(lián)表值函數(shù),當在 JOIN 中擴展/取消嵌套時,情況會更糟,因為優(yōu)化器將查詢視為一個整體并在不同的位置應用過濾器.

                The udf is an inline table valued function that when expanded/unnested in a JOIN was worse because the optmiser looked at the query as a whole and applied the filter ina different place.

                否則,我會謹慎使用它或在不經(jīng)常運行的代碼上使用它......并驗證它不會殺死非常糟糕.我接受命中以獲得可維護性.

                Otherwise, I use it sparingly or on code that does not run often... and verify that it does not kill really bad. I accept the hit to gain maintainability.

                題外話:封裝在數(shù)據(jù)庫中只能走這么遠:在某些時候你會失去基于集合的優(yōu)勢.

                Off topic: encapsulation only goes so far in databases: at some point you lose the set based advantage.

                這篇關(guān)于Microsoft SQL Server 2008 中 JOIN 與 APPLY 的相對效率的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Break down a table to pivot in columns (SQL,PYSPARK)(分解表以按列進行透視(SQL、PYSPARK))
                Spark giving Null Pointer Exception while performing jdbc save(Spark在執(zhí)行jdbc保存時給出空指針異常)
                execute query on sqlserver using spark sql(使用 spark sql 在 sqlserver 上執(zhí)行查詢)
                How can I compare the one line in one CSV with all lines in another CSV file?(如何將一個 CSV 中的一行與另一個 CSV 文件中的所有行進行比較?)
                How to map the column wise data in flowfile in NiFi?(如何在 NiFi 中映射流文件中的列數(shù)據(jù)?)
                connect SQL to apache nifi(將 SQL 連接到 apache nifi)

              1. <small id='Mdc7I'></small><noframes id='Mdc7I'>

                    <bdo id='Mdc7I'></bdo><ul id='Mdc7I'></ul>
                    <legend id='Mdc7I'><style id='Mdc7I'><dir id='Mdc7I'><q id='Mdc7I'></q></dir></style></legend>

                    • <tfoot id='Mdc7I'></tfoot>
                      <i id='Mdc7I'><tr id='Mdc7I'><dt id='Mdc7I'><q id='Mdc7I'><span id='Mdc7I'><b id='Mdc7I'><form id='Mdc7I'><ins id='Mdc7I'></ins><ul id='Mdc7I'></ul><sub id='Mdc7I'></sub></form><legend id='Mdc7I'></legend><bdo id='Mdc7I'><pre id='Mdc7I'><center id='Mdc7I'></center></pre></bdo></b><th id='Mdc7I'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Mdc7I'><tfoot id='Mdc7I'></tfoot><dl id='Mdc7I'><fieldset id='Mdc7I'></fieldset></dl></div>
                            <tbody id='Mdc7I'></tbody>
                        • 主站蜘蛛池模板: 亚洲精品国产电影 | 精品一级毛片 | 免费观看www7722午夜电影 | 国产高清精品在线 | 欧美综合国产精品久久丁香 | 久久一| 中文字幕av第一页 | 国产高清不卡 | 91精品国产高清一区二区三区 | 中文字幕高清 | 91在线电影 | 欧美午夜在线 | 欧美性成人 | 91免费在线看 | 九九伊人sl水蜜桃色推荐 | 91小视频| 超黄视频网站 | 嫩草一区二区三区 | 天天干在线播放 | 在线亚洲一区二区 | 欧美激情久久久 | 伦理二区 | 久久亚洲一区二区三 | 在线观看国产视频 | 国产精品久久久久久二区 | 色眯眯视频在线观看 | 国产一区二区精品 | 久热久热| 国产精品久久久久久吹潮 | 国产高清视频在线观看播放 | 亚洲国产成人精品女人 | 亚洲女优在线播放 | 美女一区 | 一区二区日韩 | 亚洲一二三区免费 | 国产成人jvid在线播放 | 亚洲一区二区三区在线观看免费 | 欧美午夜久久 | 国产精品一区二区三区四区 | 国产视频h | 欧美1区 |