This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
truncate messages saved in the database? #686
Labels
discussion
normally disussions should take place at https://support.delta.chat
afaik, currently, there is no limit in message lengths that is written to the database.
however, there is a limit of the number of characters that is returned in dc_msg_get_text() (currently max. 30kb)
while longer texts (say several mb) are no problem in general, they can cause problems eg. on the current fulltext search implementation which is basically a
LIKE '%pattern%'
query (yes, it can also be improved), but very long texts may cause any kind of other problems as well.also, the typical controls are not capable of displaying long text.
so, i would suggest to not write very long texts to the database
txt
field. however, it can be written to thetxt_raw
field. another idea may be to convert these long text to an attachment, however, this may be a bit unexpected and also, typically, these long text are not really "user typed" text, it's more uuencoded stuff or pgp-armored-messages or so.The text was updated successfully, but these errors were encountered: