I have log-type table in MySQL. There are indexes on 3 columns, because when doing some statistics out of that table, it obviously speeds up those statistic queries.
However, beeing a log-type table, where there is a lot of inserts but selects are very rare, it would make sense to disable reindexing the table with each insert. Is there a way how to tell MySQL not to automatically reindex the table and just leave indexes outdated and let them reindex them on-demand by us (somehow) ?
The only way right know which comes to my mind is to just create indexes before we run statistics queries and when those are done, just delete indexes. Or is there a better way ?