I'm working on a project where our team does have many static tables in our database. I want to create indexes on those tables to increase the performance. Unfortunetaly I'm getting the error:
Error Code: 1170. BLOB/TEXT column 'description' used in key specification without a key length
The mentioned column 'description' is defined as MEDIUMTEXT.
I found out that TEXT types cannot be indexed and want to change all the unnecessary TEXT types to VARCHAR(255) and apply SQL Indexes after that.
Most of the SQL Statements we use request all attributes of the table. In our most important table (in regards to indexing) only one attribute needs to stay as MEDIUMTEXT. But we always fetch the whole row (including the MEDIUMTEXT desription).
So my question is: Since I cannot change that specific MEDIUMTEXT to VARCHAR: shall I give up on indexing this table? Do I get a performance boost if I index every attribute despite the MEDIUMTEXT?
Thanks in advance...