Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPDATE vs. INSERT speed

Status
Not open for further replies.

gdj

Programmer
Dec 14, 1999
1
0
0
US
Using the MySQL C API, execution of an UPDATE appears to be about 10 times slower than an INSERT. Running under UNIX on an UltraSPARC 20, I got these results:<br>
<br>
INSERT (with 100 value sets per statement): 2500 rows/second<br>
INSERT (with 1 value set per statement): 600 rows/second<br>
UPDATE: 60 rows/second<br>
<br>
The table in question had two indexes, one of them unique. Is there a way to improve the UPDATE performance?<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top