Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- From: "John" <john1949@xxxxxxxxx>
- Date: Wed, 25 Mar 2009 07:07:03 -0000
"Xho Jingleheimerschmidt" <xhoster@xxxxxxxxx> wrote in message
news:49bf08ca$0$9725$ed362ca5@xxxxxxxxxxxxxxxxxxxxxxxxx
John wrote:
Hi
I'm updating a MySQL table with about 2 million records. After about 100
seconds the program ends with no error message.
Are you sure? If there were an error message, do you know where it would
go and do you know you could find it?
If I use LIMIT 800000,50000 the part where it stopped is OK so the UPDATE
part is OK.
Is there a time out parameter?
I don't think there is one in DBD::mysql. The program that calls your
perl script could have a time out, or your MySQL server might have a time
out, but neither of those are Perl issues
Or am I running out of memory. Can the memory be increased?
Unlike a select, there is no reason that large update should consume much
memory in the Perl client. And I don't use Debian specifically, but on
other linux systems running out of memory does produce an error somewhere,
but not always in the first place one might think to look.
Xho
Yes I have now found that error log. There is a special log for slow
queries. So evidently MySQL are aware that some constructs do take a long
time.
I am not certain whether it is a Perl problem. My feeling now it is a MySQL
problem and that they are aware of similar problems.
Regards
John
.
- Follow-Ups:
- References:
- Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- From: John
- Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- From: Xho Jingleheimerschmidt
- Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Prev by Date: FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org?
- Next by Date: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Previous by thread: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Next by thread: Re: Debian MySQL Perl DBI - connection terminates unexpectedly after 100 secs.
- Index(es):
Relevant Pages
|