Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: File Loader (load the content of a file and insert into DB)

by jordanh (Chaplain)
on May 20, 2005 at 21:34 UTC ( [id://459144]=note: print w/replies, xml ) Need Help??


in reply to Re: File Loader (load the content of a file and insert into DB)
in thread File Loader (load the content of a file and insert into DB)

There are definitely pitfalls of using cron for this kind of thing for production code. Particularly when the cycles are short.

You should consider what will happen if the task takes longer than the period you've set it to run from cron. If it's bad for overlapping runs (and it usually is, if for nothing else downward performance spirals when the system gets REALLY busy). Various locking schemes are possible to avoid the problems of overlapping runs, but most of them are trickier than it would seem at first and there are various race conditions to be considered.

But, you make good points about the simplicity of a crontab-based solution.

  • Comment on Re^2: File Loader (load the content of a file and insert into DB)

Replies are listed 'Best First'.
Re^3: File Loader (load the content of a file and insert into DB)
by gloryhack (Deacon) on May 21, 2005 at 00:07 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://459144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-20 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found