Is it a common thing for bigger applications and databases to GZIP text data before inserting it to the database?
I’ll guess that any full-text search on the actual text field will not be working before unzipping it again?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve not seen this done much, as it basically prevents one from doing any manipulation on the data on the MySQL-side :
like, no=, no other manipulation…Still, if you’re using your database only to store that data, and not manipulate it, it might be interesting.
Note : you might want to do a few benchmarks, to measure the performance-impact this could have, as compression/decompression requires CPU !
After that, question is : will you deal with the compression on the client (PHP) side, or on the server (MySQL) side ?
In the second case, there is a
COMPRESS()function, provided by MySQL, that might interest you.