<bdo id='Glzmz'></bdo><ul id='Glzmz'></ul>
  • <small id='Glzmz'></small><noframes id='Glzmz'>

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

      1. <i id='Glzmz'><tr id='Glzmz'><dt id='Glzmz'><q id='Glzmz'><span id='Glzmz'><b id='Glzmz'><form id='Glzmz'><ins id='Glzmz'></ins><ul id='Glzmz'></ul><sub id='Glzmz'></sub></form><legend id='Glzmz'></legend><bdo id='Glzmz'><pre id='Glzmz'><center id='Glzmz'></center></pre></bdo></b><th id='Glzmz'></th></span></q></dt></tr></i><div id='Glzmz'><tfoot id='Glzmz'></tfoot><dl id='Glzmz'><fieldset id='Glzmz'></fieldset></dl></div>
      2. MySql 查看性能

        时间:2023-06-01
        <i id='L1hvk'><tr id='L1hvk'><dt id='L1hvk'><q id='L1hvk'><span id='L1hvk'><b id='L1hvk'><form id='L1hvk'><ins id='L1hvk'></ins><ul id='L1hvk'></ul><sub id='L1hvk'></sub></form><legend id='L1hvk'></legend><bdo id='L1hvk'><pre id='L1hvk'><center id='L1hvk'></center></pre></bdo></b><th id='L1hvk'></th></span></q></dt></tr></i><div id='L1hvk'><tfoot id='L1hvk'></tfoot><dl id='L1hvk'><fieldset id='L1hvk'></fieldset></dl></div>

        • <bdo id='L1hvk'></bdo><ul id='L1hvk'></ul>

            <tfoot id='L1hvk'></tfoot>

              <tbody id='L1hvk'></tbody>
            <legend id='L1hvk'><style id='L1hvk'><dir id='L1hvk'><q id='L1hvk'></q></dir></style></legend>
              1. <small id='L1hvk'></small><noframes id='L1hvk'>

                  本文介绍了MySql 查看性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果您要走上使用视图的道路,您如何确保良好的性能?

                  If you are going down the road of using views, how can you ensure good performance?

                  或者最好不要一开始就使用视图,而是将等效的内容合并到您的选择语句中?

                  Or is it better not to use views in the first place and just incorporate the equivalent into your select statements?

                  推荐答案

                  视情况而定.

                  这完全取决于您通过视图查看的内容.但很可能会减少您的努力并提供更高的性能.当 SQL 语句引用非索引视图时,解析器和查询优化器会分析 SQL 语句和视图的来源,然后将它们解析为单个执行计划.SQL 语句没有一个计划,视图没有一个单独的计划.

                  It Depends.

                  It totally depends on what you are viewing through view. But most probably reducing your effort and giving higher performance. When SQL statement references a nonindexed view, the parser and query optimizer analyze the source of both the SQL statement and the view and then resolve them into a single execution plan. There is not one plan for the SQL statement and a separate plan for the view.

                  未编译视图.它是由其他表组成的虚拟表.当您创建它时,它不会驻留在您的服务器上的某处.构成视图的底层查询受到与查询优化器相同的性能提升或影响的影响.我从未测试过视图 VS 其底层查询的性能,但我认为性能可能会略有不同.如果数据相对静态,您可以在索引视图上获得更好的性能.这可能是您在编译"方面的想法.

                  A view is not compiled. Its a virtual table made up of other tables. When you create it, it doesn't reside somewhere on your server. The underlying queries that make up the view are subject to the same performance gains or dings of the query optimizer. I've never tested performance on a view VS its underlying query, but i would imagine the performance may vary slightly. You can get better performance on an indexed view if the data is relatively static. This may be what you are thinking maybe in terms of "compiled".

                  1. 查看数据而不将数据存储到对象中.
                  2. 限制表格的视图,即可以隐藏表格中的某些列.
                  3. 连接两个或多个表并将其作为一个对象显示给用户.
                  4. 限制对表的访问,使任何人都不能将行插入表中.

                  查看这些有用的链接:

                  1. VIEW 与 SQL 语句的性能
                  2. 视图是否比简单查询更快?
                  3. Mysql VIEWS 与 PHP 查询
                  4. MySql 视图是否动态且高效?
                  5. 物化视图与表格:有什么优势?
                  6. 查询视图比执行 SQL 慢直接?
                  7. ATEMPTABLE 视图性能问题的解决方法
                  8. 通过在 SQL Server 中使用索引视图查看性能提升

                  这篇关于MySql 查看性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何获取 MySQL 视图列表? 下一篇:如何将root密码设置为空

                  相关文章

                  <tfoot id='E7Ett'></tfoot>

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

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

                    2. <small id='E7Ett'></small><noframes id='E7Ett'>