• <legend id='wsIch'><style id='wsIch'><dir id='wsIch'><q id='wsIch'></q></dir></style></legend>
    <tfoot id='wsIch'></tfoot>
      <bdo id='wsIch'></bdo><ul id='wsIch'></ul>

    1. <i id='wsIch'><tr id='wsIch'><dt id='wsIch'><q id='wsIch'><span id='wsIch'><b id='wsIch'><form id='wsIch'><ins id='wsIch'></ins><ul id='wsIch'></ul><sub id='wsIch'></sub></form><legend id='wsIch'></legend><bdo id='wsIch'><pre id='wsIch'><center id='wsIch'></center></pre></bdo></b><th id='wsIch'></th></span></q></dt></tr></i><div id='wsIch'><tfoot id='wsIch'></tfoot><dl id='wsIch'><fieldset id='wsIch'></fieldset></dl></div>
    2. <small id='wsIch'></small><noframes id='wsIch'>

      1. MySQL - SQL_BIG_SELECTS

        MySQL - SQL_BIG_SELECTS(MySQL - SQL_BIG_SELECTS)
          <tbody id='LU8GR'></tbody>

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

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

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

                  <tfoot id='LU8GR'></tfoot>
                  本文介绍了MySQL - SQL_BIG_SELECTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  嘿,我一直在研究 SQL_BIG_SELECTS,但到目前为止 MySQL 文档一直没有帮助.我正在寻找一些见解,以防止出现以下错误.

                  Hey, I've been investigating SQL_BIG_SELECTS, but the MySQL documentation so far has been pretty unhelpful. I'm looking for some insight as to preventing errors like the one below from appearing.

                  错误 1104:SELECT 会检查太多记录并且可能需要很长时间.检查您的 WHERE 并使用 SET OPTION SQL_BIG_SELECTS=1 如果 SELECT 没问题

                  ERROR 1104: The SELECT would examine too many records and probably take a very long time. Check your WHERE and use SET OPTION SQL_BIG_SELECTS=1 if the SELECT is ok

                  1. 在多少行时,MySQL 决定查询是BIG SELECT"?
                  2. 适当的索引通常能解决这个问题吗?
                  3. SQL_BIG_SELECTS 是否被视为最后的手段",还是一种好的做法?
                  4. 如何在配置中设置SQL_BIG_SELECTS=1"(无需执行查询)?
                  5. 还有其他值得了解的替代方案吗?

                  提前致谢!

                  推荐答案

                  1. MySQL 根据max_join_size"的值确定查询是否为大选择".如果查询可能需要检查的行数超过此数量,则它会将其视为大选择".使用show variables"查看最大连接大小的值.

                  1. MySQL determines whether or not a query is a 'big select' based on the value of 'max_join_size'. If the query is likely to have to examine more than this number of rows, it will consider it a 'big select'. Use 'show variables' to view the value of the max join size.

                  我相信索引和特别好的 where 子句可以防止这个问题的发生.

                  I believe that indexing and particular a good where clause will prevent this problem from occuring.

                  SQL_BIG_SELECTS 用于防止用户意外执行过大的查询.可以在mysql.cnf中设置为ON或者启动时使用命令行选项.

                  SQL_BIG_SELECTS is used to prevent users from accidentally executing excessively large queries. It is okay to set it to ON in mysql.cnf or using the command-line option at startup.

                  您可以在 my.cnf 中或在服务器启动时设置 SQL_BIG_SELECTS.也可以使用 SET SESSION SQL_BIG_SELECTS=1 以会话为基础进行设置.

                  You can set SQL_BIG_SELECTS in my.cnf or at server startup. It can also be set on a session basis with SET SESSION SQL_BIG_SELECTS=1.

                  我想不到.我只会检查您的查询以确保您确实需要使用它.我们的服务器默认开启,max_join_size 非常大.

                  Not that I can think of. I would just check your query to make sure that you really need to use it. Our servers have it turned on by default, and max_join_size is very large.

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

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

                  相关文档推荐

                  Can#39;t Create Entity Data Model - using MySql and EF6(无法创建实体数据模型 - 使用 MySql 和 EF6)
                  MySQL select with CONCAT condition(MySQL选择与CONCAT条件)
                  Capitalize first letter of each word, in existing table(将现有表格中每个单词的首字母大写)
                  How to retrieve SQL result column value using column name in Python?(如何在 Python 中使用列名检索 SQL 结果列值?)
                  Update row with data from another row in the same table(使用同一表中另一行的数据更新行)
                  Exporting results of a Mysql query to excel?(将 Mysql 查询的结果导出到 excel?)
                1. <tfoot id='cLNRd'></tfoot>

                      • <bdo id='cLNRd'></bdo><ul id='cLNRd'></ul>
                      • <legend id='cLNRd'><style id='cLNRd'><dir id='cLNRd'><q id='cLNRd'></q></dir></style></legend>
                          <tbody id='cLNRd'></tbody>
                      • <small id='cLNRd'></small><noframes id='cLNRd'>

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