SLUG Mailing List Archives
Re: [SLUG] Outputing progress counters with PHP/HTML
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] Outputing progress counters with PHP/HTML
- From: "Howard Lowndes" <lannet@xxxxxxxxxxxxx>
- Date: Fri, 2 May 2008 22:35:35 +1000 (EST)
- User-agent: SquirrelMail/1.4.10a-1.fc6
On Wed, April 30, 2008 17:25, Matthew Hannigan wrote:
>> > You do a select before every insert?! Is the table indexed?
>> > If not that might explain the slowdown; a select WILL take
>> > longer the bigger the table.
>> Perhaps better to put a unique index on the appropriate column(s), then
>> just do an insert and throw away the error if the data is already there.
> Yes, even better! I was going to ask Howard whether it mattered
> whether the data was different or whether it just had to be one of them.
...and the answer is that there just as to be one unique entry. If
duplicates occur then it is because someone in inputting a data file that
has already been processed.
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
LANNet Computing Associates <http://lannet.com.au>
When you want a computer system that works, just choose Linux;
When you want a computer system that works, just, choose Microsoft.