Trying to optimize MySQL query. The reason of needed optimization is table growth. For now it has approx 300K rows and in future it will be much more.
Table structure