Very slow delete on mysql base with subquery

前端 未结 4 581
星月不相逢
星月不相逢 2021-01-04 12:35

This mysql query is running for around 10 hours and has not finished. Something is horribly wrong.

Two tables (text and spam) are here. Spam stores the ids of spam e

4条回答
  •  青春惊慌失措
    2021-01-04 13:05

    Copy rows that are not in spam form text to new table. Then delete text table and rename created table. Good idea is not to add any keys to created table. Add keys after renaming.

提交回复
热议问题