Increasing MySQL Query performance - Math heavy query

后端 未结 2 1864
夕颜
夕颜 2020-12-20 08:53

Anyone willing to help me with this? The following query takes about 18 seconds on a MEMORY table with 10000 rows. If I don\'t have the \"where\" constraint, it takes just u

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-20 09:30

    1. Turn LEFT JOIN to INNER JOIN.
    2. You would better use something like Memcached instead of MySQL cache.

提交回复
热议问题