String type maximum size

I am considering storing larger amounts of text in a string item to represent state/configuration of custom UI I am building.

My question is then - is there any hard limit for String datetype in OH? Also, is there any documentation available on this for each of the persistence types?

Internally, there shouldn’t be a limit since it should be using the Java String. However, for persistence services it will be dependant on the service - for rrd for example, it won’t store strings at all - for mysql (and other sql probably) I think the limit is around 65k bytes (or it might be 32k to allow for encoding, but it’s quite large anyway)…

Thanks! That should be more than enough…