Is it useful to use gzcompress?

I have a forum that allows users to enter large amounts of text along with (disinfected) html (and / or markdown) and links, etc. Everything is sanitized and checked before it is stored in the database.

It would be nice to use gzcompress . I heard that this is bad if you are going to look for this text. Do I have to compress the content before saving it to the database and use only the title and tags to search, or does it not matter?

+3
source share
1 answer

I would save the contents as text. Then, if space becomes a problem, you can explore this optimization later.

:

+2

All Articles