Performance issue in update query

前端 未结 3 1002
青春惊慌失措
青春惊慌失措 2021-02-02 02:09

I have one small doubt in query performance. Basically, I have a table with more than 1C records. sl_id is the primary key in that table. Currently, I am updating t

3条回答
  •  我在风中等你
    2021-02-02 02:48

    Definitely IN is more powerful, but again the number of match to check in IN will make performance issue.

    So, I will suggest to use IN but with BATCH, as in if you have 200 record to update then part in 50 each and then make 4 UPDATE query, or something like that.

    Hope it helps...!!

提交回复
热议问题