XF 1.5 Increasing size of post database question.

pilot823

Member
Posts are stored on the database as "mediumtext" where the max is 16,777,215 bytes.

1. Is there any impact or reason why the column cant be changed to "longtext" or more characters?

2. If it can, then the settings for post size be changed to 16,777,215 bytes?

I curgently have setting inside the xenforo admin panel set at zero and by doing this it shouldn't be any limit on the characters in the content in a post.
 
1. Well, you probably won't hit the 4GB from longtext anyways, because your server should refuse such big inputs. And if it's not your server, then probably PHP. Secondly, this opens you to DoS operations just because you allow so much data to be processed at once. Just a side note, with longtext, it would be fairly easy to overflood your hard disk.
2. Not sure how it was handled with XF 1.5 but most likely you would have to change some code aswell, most likely somewhere in DataWriter.
 
Back
Top Bottom