Answer the question
In order to leave comments, you need to log in
Storage of TEXT fields in large volumes in Mysql
There is a Mysql server and on it a table of contents of articles.
Structure: id (int), article_id (int), content (text)
About 1.5 million records. The size of the table is 5Gb. The total amount of data on Mysql is 9Gb
Recently, the server has become slower
. Does it make sense to transfer this data to MongoDB to reduce the amount of Mysql data and increase its performance
Answer the question
In order to leave comments, you need to log in
9GB even for mysql is a small amount. Look for the problem elsewhere. For example, when there was little data, the absence of an index for some more or less frequently used query was imperceptible.
The source data is not entirely clear. In addition to queries, it is also important whether PRIMARY indexes are worth it.
To reduce the disk space occupied with a lightly loaded CPU, you can use on-the-fly text packing using COMPRESS / UNCOMPRESS.
It makes sense sometimes to take out the text field in a separate plate if the data from this table twitches without this field.
It is stupid to store the text of articles in the database - it is more correct to store a link or directly access it by key number. With this approach, you will reduce the load on the database and increase the responsiveness of the server, because you can organize caching at the server and file system levels. For search it is necessary to use Sphinx.
You can minus...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question