In my continuing quest for light (see
Automating data loading into Oracle), I am trying to figure out how to layout my program. I have to load several different datasets into a database, they have to be loaded periodically, and the periodicity of the dataloads for the different data are different. I am envisioning a physical layout like so --
app_root/
app_conf/
app_lib/
app_docs/
all.pl*
data/
sales/
conf/
lib/
docs/
sales.pl*
marketing/
conf/
lib/
docs/
marketing.pl*
Wrt running my program, I have the following choices --
- one or several programs
- a single program (all.pl) that is called with suitable params to do either the "sales" or the "marketing" loads
- OR separate programs for each of the datasets (sales.pl, marketing.pl, etc.) called separately
- scheduling
- a constantly running program (or programs) that wake up at defined intervals, do their job, and go back to sleep
- OR the operating system scheduler (in this case, Windows) calling the requisite program (or programs) with the requisite params at defined intervals
Any suggestions on the above or anything related are welcome.
--
when small people start casting long shadows, it is time to go to bed