Note that there are some explanatory texts on larger screens.

plurals
  1. POAny way to reduce the size of texts?
    primarykey
    data
    text
    <p><strong>Description:</strong> I have a huge MySQL database table. The total size is about 10 terabytes. It only contains texts. </p> <p><strong>A sample text from this database table:</strong></p> <blockquote> <p>In other cases, some countries have gradually learned to produce the same products and services that previously only the U.S. and a few other countries could produce. Real income growth in the U.S. has slowed.</p> </blockquote> <p>There are about 50 billion different texts.</p> <p><strong>What have I tried?</strong></p> <p>I've tried to zip them all. Actually it has worked, reduced the total size. However, I need to make searching and I can't search any data while they are located in a zip file.</p> <p>I've tried PHP's <code>base64</code> encoding. It has made my sample text data as:</p> <blockquote> <p>SW4gb3RoZXIgY2FzZXMsIHNvbWUgY291bnRyaWVzIGhhdmUgZ3JhZHVhbGx5IGxlYXJuZW QgdG8gcHJvZHVjZSB0aGUgc2FtZSBwcm9kdWN0cyBhbmQgc2VydmljZXMgdGhhdCBwcmV2 aW91c2x5IG9ubHkgdGhlIFUuUy4gYW5kIGEgZmV3IG90aGVyIGNvdW50cmllcyBjb3VsZC Bwcm9kdWNlLiBSZWFsIGluY29tZSBncm93dGggaW4gdGhlIFUuUy4gaGFzIHNsb3dlZC4=</p> </blockquote> <p><strong>What I'd like to accomplish?</strong></p> <p>I want to reduce text's size before sending them to MySQL. First of all, I don't know how I can do this job. I'm thinking of encrypting and decrypting the data.</p> <p><strong>So, here is an example what I want to do:</strong></p> <p>I want to encrypt text data before storing. Then, I want to call encrypted data from MySQL in order to decrypt.</p> <p>Any way to reduce the size of texts? Base64 does not work for me, is there any other way?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload