| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Michael Widenius | Date: | August 28 1999 11:32pm |
| Subject: | RE: update? insert? Perl script | ||
| View as plain text | |||
>>>>> "Jay" == Jay Miller <jaymiller@stripped> writes: Jay> In a case like this we are using REPLACE, which performs a DELETE and Jay> INSERT. This is easier than checking first and either UPDATEing or Jay> INSERTing. I'm sure it places a higher load on the MySQL server, but it Jay> takes some off of the client and possibly reduces some network traffic. Jay> Any thoughts? Hi! The load of REPLACE should be much less than an SELECT / DELETE + an INSERT. REPLACE is implemented as an INSERT which is rolled back in case of duplicated keys. The duplicated row is then deleted and then we try another INSERT.. Regards, Monty
| Thread | ||
|---|---|---|
| • update? insert? Perl script | gl3 | 24 Aug |
| • Re: update? insert? Perl script | Jeff Beard | 24 Aug |
| • Re: update? insert? Perl script | Paul DuBois | 24 Aug |
| • RE: update? insert? Perl script | Dan Ray | 24 Aug |
| • Re: update? insert? Perl script | Thimble Smith | 24 Aug |
| • RE: update? insert? Perl script | gl3 | 24 Aug |
| • Re: update? insert? Perl script | Scott Hess | 24 Aug |
| • RE: update? insert? Perl script | Paul DuBois | 24 Aug |
| • RE: update? insert? Perl script | Jay Miller | 24 Aug |
| • RE: update? insert? Perl script | Michael Widenius | 29 Aug |
| • RE: update? insert? Perl script | Dan Ray | 25 Aug |
| • Re: update? insert? Perl script | B.W. McAdams | 24 Aug |
