• <small id='4OrEr'></small><noframes id='4OrEr'>

      • <bdo id='4OrEr'></bdo><ul id='4OrEr'></ul>
      <i id='4OrEr'><tr id='4OrEr'><dt id='4OrEr'><q id='4OrEr'><span id='4OrEr'><b id='4OrEr'><form id='4OrEr'><ins id='4OrEr'></ins><ul id='4OrEr'></ul><sub id='4OrEr'></sub></form><legend id='4OrEr'></legend><bdo id='4OrEr'><pre id='4OrEr'><center id='4OrEr'></center></pre></bdo></b><th id='4OrEr'></th></span></q></dt></tr></i><div id='4OrEr'><tfoot id='4OrEr'></tfoot><dl id='4OrEr'><fieldset id='4OrEr'></fieldset></dl></div>

    1. <legend id='4OrEr'><style id='4OrEr'><dir id='4OrEr'><q id='4OrEr'></q></dir></style></legend>
      <tfoot id='4OrEr'></tfoot>

        什么是 Sql Server 中的书签查找?

        What is a Bookmark Lookup in Sql Server?(什么是 Sql Server 中的书签查找?)

          <legend id='kx3nT'><style id='kx3nT'><dir id='kx3nT'><q id='kx3nT'></q></dir></style></legend>

          • <small id='kx3nT'></small><noframes id='kx3nT'>

              <tbody id='kx3nT'></tbody>

            <i id='kx3nT'><tr id='kx3nT'><dt id='kx3nT'><q id='kx3nT'><span id='kx3nT'><b id='kx3nT'><form id='kx3nT'><ins id='kx3nT'></ins><ul id='kx3nT'></ul><sub id='kx3nT'></sub></form><legend id='kx3nT'></legend><bdo id='kx3nT'><pre id='kx3nT'><center id='kx3nT'></center></pre></bdo></b><th id='kx3nT'></th></span></q></dt></tr></i><div id='kx3nT'><tfoot id='kx3nT'></tfoot><dl id='kx3nT'><fieldset id='kx3nT'></fieldset></dl></div>
          • <tfoot id='kx3nT'></tfoot>
              <bdo id='kx3nT'></bdo><ul id='kx3nT'></ul>

                • 本文介绍了什么是 Sql Server 中的书签查找?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试优化查找历史数据的查询.我正在使用查询分析器来查找执行计划,并发现我的大部分查询成本都在称为书签查找"的东西上.我以前从未在执行计划中看到过这个节点,不知道它是什么意思.

                  I'm in the process of trying to optimize a query that looks up historical data. I'm using the query analyzer to lookup the Execution Plan and have found that the majority of my query cost is on something called a "Bookmark Lookup". I've never seen this node in an execution plan before and don't know what it means.

                  这在查询中是好事还是坏事?

                  Is this a good thing or a bad thing in a query?

                  推荐答案

                  书签查找是根据在非聚集索引中找到的条目在 SQL 表中查找实际数据的过程.

                  A bookmark lookup is the process of finding the actual data in the SQL table, based on an entry found in a non-clustered index.

                  当你在非聚集索引中搜索一个值,并且你的查询需要比索引叶节点(所有索引字段,加上任何可能的 INCLUDE 列)的一部分更多的字段时,那么 SQL Server 需要去检索实际的数据页 - 这就是所谓的书签查找.

                  When you search for a value in a non-clustered index, and your query needs more fields than are part of the index leaf node (all the index fields, plus any possible INCLUDE columns), then SQL Server needs to go retrieve the actual data page(s) - that's what's called a bookmark lookup.

                  在某些情况下,这确实是唯一的方法 - 仅当您的查询仅需要一个字段(而不是一大堆)时,最好将该字段包含在非集群中指数.在这种情况下,非聚集索引的叶级节点将包含满足查询所需的所有字段(覆盖"索引),因此不再需要书签查找.

                  In some cases, that's really the only way to go - only if your query would require just one more field (not a whole bunch of 'em), it might be a good idea to INCLUDE that field in the non-clustered index. In that case, the leaf-level node of the non-clustered index would contain all fields needed to satisfy your query (a "covering" index), and thus a bookmark lookup wouldn't be necessary anymore.

                  马克

                  这篇关于什么是 Sql Server 中的书签查找?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)(超出最大存储过程、函数、触发器或视图嵌套级别(限制 32))
                  How to debug stored procedure in VS 2015?(如何在 VS 2015 中调试存储过程?)
                  How to find a text inside SQL Server procedures / triggers?(如何在 SQL Server 程序/触发器中查找文本?)
                  SQL Server stored procedure return code oddity(SQL Server 存储过程返回码奇怪)
                  Conditional SQL ORDER BY ASC/DESC for alpha columns(alpha 列的条件 SQL ORDER BY ASC/DESC)
                  Export stored procedure result set to Excel in SSMS(在SSMS中将存储过程结果集导出到Excel)
                  • <bdo id='0KXN1'></bdo><ul id='0KXN1'></ul>

                  • <tfoot id='0KXN1'></tfoot>
                  • <i id='0KXN1'><tr id='0KXN1'><dt id='0KXN1'><q id='0KXN1'><span id='0KXN1'><b id='0KXN1'><form id='0KXN1'><ins id='0KXN1'></ins><ul id='0KXN1'></ul><sub id='0KXN1'></sub></form><legend id='0KXN1'></legend><bdo id='0KXN1'><pre id='0KXN1'><center id='0KXN1'></center></pre></bdo></b><th id='0KXN1'></th></span></q></dt></tr></i><div id='0KXN1'><tfoot id='0KXN1'></tfoot><dl id='0KXN1'><fieldset id='0KXN1'></fieldset></dl></div>

                        <legend id='0KXN1'><style id='0KXN1'><dir id='0KXN1'><q id='0KXN1'></q></dir></style></legend>

                          <tbody id='0KXN1'></tbody>
                        • <small id='0KXN1'></small><noframes id='0KXN1'>