For INSERT, this may be related to the indexes you defined in the tables (they must be updated after each INSERT). Could you post additional information about them? And are there any triggers installed on the tables?
For UPDATE, this is a completely different story, it is possible that the update is not slow, but the record search is slow. Could you try changing UPDATE to SELECT and see still slow? If so, then you should examine your indexes.
source share