D
dn.perl
I run a script which inserts (say) 50,000 records in a Oracle table
which had 40,000 records to begin with, but the records show up
gradually over a period of 20-30 seconds.
select count(*) from my_table ==> 40,000 records, before running the
script.
Run the script, within which I do $dbh->insert-50k-rows, $dbh-
02 seconds after the script exits, select count(*) from my_table ==>
40,000 records or 40,050 records
10 seconds after the script exits, select count(*) from my_table ==>
approx 70,000 records
40 seconds after the script exits, select count(*) from my_table ==>
90,000 records
What exactly is happening here? I would expect ($dbh->commit) to take
40-50 seconds if that is what it takes, but the moment the perl script
exits, in my oracle client, I should see 90,000 rows in the table; no?
Why the delay?
which had 40,000 records to begin with, but the records show up
gradually over a period of 20-30 seconds.
select count(*) from my_table ==> 40,000 records, before running the
script.
Run the script, within which I do $dbh->insert-50k-rows, $dbh-
commit, the script exits.
02 seconds after the script exits, select count(*) from my_table ==>
40,000 records or 40,050 records
10 seconds after the script exits, select count(*) from my_table ==>
approx 70,000 records
40 seconds after the script exits, select count(*) from my_table ==>
90,000 records
What exactly is happening here? I would expect ($dbh->commit) to take
40-50 seconds if that is what it takes, but the moment the perl script
exits, in my oracle client, I should see 90,000 rows in the table; no?
Why the delay?