groups: bump group_concat_max_len to accomdate more users
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user