久久久久久久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>
                        • 主站蜘蛛池模板: 日韩at | 国产精品美女久久久久aⅴ国产馆 | 国产免费xxx | 亚洲九九精品 | 91在线看| 亚洲乱码国产乱码精品精98午夜 | 国产精品福利视频 | 偷拍亚洲色图 | 国产精品亚洲精品久久 | 国产电影精品久久 | 亚洲精品乱码久久久久久蜜桃91 | 色视频网站免费 | 欧美精品乱码久久久久久按摩 | 成人一区二区三区在线 | 国产精品乱码一区二三区小蝌蚪 | 日本一区二区不卡 | 羞羞视频网站免费观看 | 欧美91| 亚洲国产中文字幕 | 在线视频国产一区 | 男人的天堂久久 | 国产成人精品久久二区二区91 | 国产视频二区在线观看 | 欧美日韩手机在线观看 | 久久精品久久久 | 欧美一区二区免费视频 | 亚洲国产专区 | 国产视频福利在线观看 | 免费国产视频 | 91久久精品国产 | 日韩免费| 国产精品完整版 | 美女三区 | 亚洲视频免费一区 | 午夜日韩视频 | 亚洲精品一区二区三区在线 | 日韩精品一区二区三区免费视频 | 日本一区二区高清不卡 | 亚洲久久 | 国产一区在线免费观看视频 | 亚洲视频中文字幕 |