From bd57b95a97098c72a1cb24891f1a3d0ea6086dfc Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sat, 15 Jul 2023 15:32:39 -0700 Subject: [PATCH] docs: :bulb: going past DB_MAX_NOTE_TEXT_LENGTH --- packages/backend/src/misc/hard-limits.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/backend/src/misc/hard-limits.ts b/packages/backend/src/misc/hard-limits.ts index 62671a706a..5ce3e0ac9a 100644 --- a/packages/backend/src/misc/hard-limits.ts +++ b/packages/backend/src/misc/hard-limits.ts @@ -3,6 +3,11 @@ /** * Maximum note text length that can be stored in DB. * Surrogate pairs count as one + * + * NOTE: this can hypothetically be pushed further + * (up to 250000000), but will likely cause truncations + * and incompatibilities with other servers, + * as well as potential performance issues. */ export const DB_MAX_NOTE_TEXT_LENGTH = 100000;