remove uuid module
built into node.js now
This commit is contained in:
@@ -66,7 +66,7 @@ async function initialize() {
|
||||
// await connection.query('SET NAMES utf8mb4 COLLATE utf8mb4_bin');
|
||||
await conn.query('SET SESSION sql_mode = \'strict_all_tables\''); // disable type coercion etc
|
||||
// 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
|
||||
// a crypto.randomUUID is 36 in length. so the value below provides for roughly 10k users
|
||||
await conn.query('SET SESSION group_concat_max_len = 360000');
|
||||
} catch (error) {
|
||||
debug(`failed to init new db connection ${connection.threadId}:`, error); // only log. we will let the app handle the exception when it calls query()/transaction()
|
||||
|
||||
Reference in New Issue
Block a user