Setup issues with sort_buffer_size parameter size in MySQL

Source: Internet
Author: User
Tags mysql in

See sort_buffer_size This parameter (the connect level parameter, MySQL5.7, the default value is 1048576 bytes, that is, 1MB) The default value is so small,
Think about whether it is possible to turn up a little bit, anyway the memory is dozens of GB, also do not care about this several MB.
Note: The author attempts to modify the value of this parameter, in the typical sort (large table, the sorting field without the index of the condition) query, Sort_buffer_size modification before and after, there appears to be no significant difference in performance,
In other words, the default configuration is sufficient, or the current value of this parameter to understand the values are not enough in place.

including MySQL in other parameters, looking at small, only a few MB size, want to try to adjust a little bit, it is not so, no wonder, "high-performance MySQL," the author said: "(certain premise) can even forget some configuration files exist"
Before listening to some veteran said: Some configurable parameters, no 100% grasp, do not go to arbitrary modification, modified results (side effects) is likely to be more serious than you think.


Setup issues with sort_buffer_size parameter size in MySQL

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: 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.