morning all,
hpux 11i
progress 9.1c
i have a single user db with 2 tables that are wiped and repopulated everyday.
for the wipe i do:
to repopulate i do:
def var lead_rotor_part like zldtm.zitem.
def var lead_lead_time as int.
def var lead_lead_soft as int.
def var lead_next_item like zldtm.zitem.
def var i as int no-undo.
def var j as int no-undo.
input from /files/filename.txt.
the db's size is about 3mb. if i run the code from the explorer it the bi file grows to about 5mb, if i run the programs in a script the bi file grows to over 6mb. it was worse before, but the addition of the pause statements has helped.
any suggestions on rearranging the code that would help with the bi file growth, or is it just that the data blocks from the bi file are not getting written to the db fast enough and causing progress to allocate more blocks to the bi file?
any suggestions would be greatly appreciated.
regards,
longhair
hpux 11i
progress 9.1c
i have a single user db with 2 tables that are wiped and repopulated everyday.
for the wipe i do:
Code:
def var i as int no-undo.
outer_loop: do for db.table while true transaction:
for each db.table exclusive-lock:
delete db.table.
i = i + 1.
if i modulo 100 = 0 then do:
next outer_loop.
end.
end.
leave outer_loop.
end.
pause 3.
to repopulate i do:
def var lead_rotor_part like zldtm.zitem.
def var lead_lead_time as int.
def var lead_lead_soft as int.
def var lead_next_item like zldtm.zitem.
def var i as int no-undo.
def var j as int no-undo.
input from /files/filename.txt.
Code:
repeat transaction:
do:
lead_part = "".
lead_time = 000.
lead_soft = 000.
lead_item = "".
import delimiter ";" lead_part lead_time
lead_soft lead_item.
do:
do:
i = i + 1.
if i modulo 100 = 0 then do:
pause 1.
end.
create db.table.
db.table = lead_part.
db.table = lead_time.
db.table = lead_soft.
db.table = lead_item.
release db.table.
end.
end.
end.
end.
input close.
any suggestions on rearranging the code that would help with the bi file growth, or is it just that the data blocks from the bi file are not getting written to the db fast enough and causing progress to allocate more blocks to the bi file?
any suggestions would be greatly appreciated.
regards,
longhair