Speeding up large numbers of mysql updates and inserts

前端 未结 4 1638
自闭症患者
自闭症患者 2020-12-05 16:38

I have an app that needs to update a large amount of data over a large number of entries. Basically it does some 7,000 inserts and/or updates but it takes a looooong time (l

4条回答
  •  我在风中等你
    2020-12-05 17:07

    What you suggest is correct. Try reducing the amount of queries you send to the server since this will save you from the multiple communication overhead.

    Of course, if the inital select ranged query returns too many data, then you may have a bottleneck on PHP.

提交回复
热议问题