I have a database table where there is a varchar (200) column.
This is a table with historical log information, where about 99.9% of the rows in the table contain the same text message as the other row in the table.
The size of this database and the speed of the search become a problem.
So, I thought I could transfer the varchar values to another table with unique text values, and then refer to this table for each row in the first table, but before I change this, I would like to know, is this an easier way to do this?
For example, setting some property in my existing table column will cause this behavior to occur automatically. So the database automatically maintains a table with unique texts. I understand that this has a big impact on deletion, but it almost never happens. I would also really like to avoid changing the program that is inserted into the log table.
I use MySQL, but if another DB can do this, it is also an opportunity to change the database to another. (MariaDB or another?)
thanks
source
share