remove uuid module

built into node.js now
This commit is contained in:
Girish Ramakrishnan
2025-07-28 12:53:27 +02:00
parent 373ef5b7e1
commit cbc73f5c9a
19 changed files with 45 additions and 62 deletions

View File

@@ -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()