Comments on: Those oversized, undersized variables defaults https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults Blog by Shlomi Noach Tue, 21 Aug 2012 04:49:58 +0000 hourly 1 https://wordpress.org/?v=5.3.3 By: SQL: selecting top N records per group, another solution | code.openark.org https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-114960 Tue, 21 Aug 2012 04:49:58 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-114960 […] you still have to have a sufficient group_concat_max_len (see this post). You must have a large enough value to fit in the very long text you may be expecting in […]

]]>
By: SQL: selecting top N records per group | code.openark.org https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-26380 Thu, 06 Jan 2011 10:49:30 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-26380 […] setting for group_concat_max_len (see this post). Actually it would be better to have a smaller value here, while you make sure it’s large […]

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14628 Thu, 10 Jun 2010 17:28:36 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14628 I agree only to some extent.
Because, in my view, the defaults are really incompatible with the progress.
Why not, then, make group_concat_,max_len be 7? Or innodb_buffer_pool_size be 2K?
Reasonable defaults are important. I mean, poor defaults don;t make for good working-out-of-the-box experience.

]]>
By: Sheeri Cabral https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14626 Thu, 10 Jun 2010 17:17:24 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14626 The problem isn’t with the defaults, the problem is that people who don’t know what they’re doing are using the software…..

…which is OK, because one of the points of MySQL is to be easy to use, and that it’s accessible even if you don’t know what you’re doing. The problem is that in the interest of saving money and because things work “well enough” people don’t have the expertise they need.

It would be like going to a ‘learning’ doctor or dentist all the time — sure, you can save money, but if you have anything other than standard issues (ie, not just a regular healthy visit, shots, or an ‘easy’ issue like pink eye or the flu) then you want someone with experience.

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14623 Thu, 10 Jun 2010 17:10:11 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14623 Hi Sheeri,

innodb_file_per_table: I agree, but some disagree.

“But really, these settings are easily found in a basic audit” — that’s my point exactly. If any basic audit should reveal that the defaults haven’t been changed and that they should be — then the problem is with the defaults.

]]>
By: Sheeri Cabral https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14620 Thu, 10 Jun 2010 16:03:28 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14620 Also:

innodb_file_per_table should default to being set on; it’s appropriate for probably 99% of the cases out there.

max_connections limit of 151 is ridiculous. The only reason to have max_connections is so you don’t crash due to trying to use too much memory. So instead of crashing you block access, which results in the same problem — customers don’t see data.

But really, these settings are easily found in a basic audit, and I’d almost rather have these so you can tell that a server hasn’t really been looked at, versus ‘it’s been looked at and the defaults are good’.

]]>
By: Shantanu Oak https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14612 Thu, 10 Jun 2010 12:56:36 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14612 The worse thing about group_concat_max_len is that most of the programmers are not aware of it till the customers tell them about truncated results! This is one of the worst ‘silent’ killer.

]]>
By: Verifying GROUP_CONCAT limit without using variables | code.openark.org https://shlomi-noach.github.io/blog/mysql/those-oversized-undersized-variables-defaults/comment-page-1#comment-14596 Thu, 10 Jun 2010 07:16:19 +0000 https://shlomi-noach.github.io/blog/?p=1997#comment-14596 […] Those oversized, undersized variables defaults […]

]]>