MySQL - SQL_BIG_SELECTS

前端 未结 6 1356
渐次进展
渐次进展 2020-11-27 17:50

Hey, I\'ve been investigating SQL_BIG_SELECTS, but the MySQL documentation so far has been pretty unhelpful. I\'m looking for some insight as to preventing errors like the o

6条回答
  •  野性不改
    2020-11-27 18:43

    I had more than 2000k records in db, and my query was big-select with exhaustive comparison for duplication removal and updation of certain field...I was told the same by mysql (current version on answer date), and I ended up using index on 2 fields involved in where clause...this should help others too...steps which worked for me were:

    1. Set Index on field
    2. ANALYZE TABLE
    3. run the query

    HTH

提交回复
热议问题