in reply to DBI - need for speed
Follow the advice given in the first reply -- do one query at the outset to find out what records are already in the table -- then open SRCFILE for input, open some other file for output, and for each line of input, write a suitable data line to output if the corresponding record needs to be added to the table. After output file is fully written, run the bulk-loader utility of choice for DBMS to add that data to the table (this can be done from within the same perl script that writes the file).
|
|---|