Nadav
Nadav

Reputation: 119

MySQL: Increasing GROUP_CONCAT_MAX_LEN param - any dangers?

Right now, my MySQL server is using the default value of 1024 bytes for the GROUP_CONCAT_MAX_LEN, and I need to increase it.

I am aware of the fact it is constrained by the MAX_ALLOWED_PACKET param, which is currently very sufficient in size.

Will incraesing the GROUP_CONCAT_MAX_LEN affect anything? Does it have any consequences or dangers I should be aware of?

Thanks.

Upvotes: 3

Views: 11889

Answers (1)

JamesHalsall
JamesHalsall

Reputation: 13485

Aside from increasing processing time in the MySQL server, and increasing traffic (even locally), no. If you do increase it though, benchmark before and after the change. This way you can be a bit more scientific about your modifications.

I'm not 100% correct, but take a look at this:

http://dev.mysql.com/doc/refman/5.5/en/group-by-functions.html#function_group-concat

Updated link for MySQL 8.0: https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html#function_group-concat

Upvotes: 2

Related Questions