Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72324

Re: Script suddenly stops

Date 2014-05-30 15:03 -0700
From Paul McNett <paul@mcnettware.com>
Subject Re: Script suddenly stops
References <5387F12E.101@arcor.de>
Newsgroups comp.lang.python
Message-ID <mailman.10502.1401488685.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 5/29/14, 7:47 PM, Chris wrote:
> I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database
> (Linux, ext4). The script output is suddenly stopping, while the Python
> process is still running (or should I say sleeping?). It's not in top,
> but in ps visible.

Does it stop in the same place every time? How long are you waiting 
before giving up? Is it at all possible that it is the MySQL side that 
is blocking?

> Why is it stopping? Is there a way to make it continue, without calling
> "kill -9", deleting the processed lines and starting it again?

One thing to try (maybe, depending on whether it still fits into your 
requirements for a database transaction) is to increase the number of 
rows inserted before each commit.

> [1] http://pastebin.com/CxHCA9eB

It won't have any bearing, but those globals aren't necessary...


Paul

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Script suddenly stops Paul McNett <paul@mcnettware.com> - 2014-05-30 15:03 -0700

csiph-web