groups: bump group_concat_max_len to accomdate more users

This commit is contained in:
Girish Ramakrishnan
2024-10-09 19:12:53 +02:00
parent da11e90333
commit 34969d9980

View File

@@ -63,7 +63,9 @@ async function initialize() {
connection.query(`USE ${gDatabase.name}`);
connection.query('SET SESSION sql_mode = \'strict_all_tables\'');
connection.query('SET SESSION group_concat_max_len = 65536'); // GROUP_CONCAT has only 1024 default
// GROUP_CONCAT has only 1024 default. we use it in the groups API which doesn't support pagination yet
// a uuid v4 is 36 in length. so the value below provides for roughly 10k users
connection.query('SET SESSION group_concat_max_len = 360000');
});
}