You are here: Re: A Question of design. « PHP Programming Language « IT news, forums, messages
Re: A Question of design.

Posted by Chung Leong on 10/24/06 17:38

Rik napisal(a):
> My solution was purely to give him back the information he wants (he not
> only wants to reject invalids, update already existing, and insert new, but
> he wants to know which ones they are).
>
> The actual updating can still be done with the previous simple replace
> into, avoiding race condition.

I'm afraid the OP is still thinking in terms of loading up an array
with existing records to see which not to insert. Sometimes you can get
away with having a race, but inserting hundreds of records is a long
operation. There is a reasonable chance that a second select could come
along and beat it.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация