How to set the sort_buffer_size parameter in MySQL,

Source: Internet
Author: User

How to set the sort_buffer_size parameter in MySQL,

 

The default value of sort_buffer_size (connect-level parameter, MySQL5.7, 1048576 bytes by default, that is, 1 MB) is so small,
I wonder if I can increase the memory size by dozens of GB, and I don't care about the memory size.
Note: The author tries to modify the value of this parameter. In a typical sorting (large tables with no sorting fields indexed) query, before and after the modification of sort_buffer_size, there seems to be no significant difference in performance,
That is to say, the default configuration is enough, or the author's current understanding of this parameter value is not enough.

Including other MySQL parameters, the size of a few MB is small, and I want to adjust it to a larger value. This is not the case.
No wonder, the author of high-performance MySQL says: "(under certain conditions) You can even forget the existence of some configurations"
It is not hard to understand. By default, anyone who writes a program will always hold more than 90% of the cases.
I have also heard some veterans say that some configurable parameters are not 100% sure. Do not modify them at will. The modified results (side effects) it may be much more serious than you think.

 

Http://bbs.chinaunix.net/thread-1805254-1-1.html

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.