Ran into a wild GBase 8a case where bumping groupconcatmax_len from 32 KB to 1 MB made a simple query explode into a 10+ TB disk write storm. Turns out the optimizer set a LONGTEXT column and pre-allocated *way* too much memory, causing insane IO and slowdowns.
It’s a neat reminder: tweaking global params can have unexpected ripple effects, especially with how intermediate data is typed and materialized. Wrapping group_concat in a substr or using a per-query hint saved the day here.
Ever had a tiny change cause massive perf headaches? #DatabaseOps #SQLPerformance #DevOps
