docs: 💡 going past DB_MAX_NOTE_TEXT_LENGTH

This commit is contained in:
ThatOneCalculator 2023-07-15 15:32:39 -07:00
parent 49b0a52f9f
commit bd57b95a97
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -3,6 +3,11 @@
/** /**
* Maximum note text length that can be stored in DB. * Maximum note text length that can be stored in DB.
* Surrogate pairs count as one * 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; export const DB_MAX_NOTE_TEXT_LENGTH = 100000;