We use CF as a front end to Oracle. We have a report subsystem which generates the report output files on the DB server. To get them to the CF server, we use a little trick... we have Oracle write the file's contents to a temp table, which CF then queries and writes line-by-line to a file on the CF server using CFFILE. The major benefit of this approach is that it handles the security and I/O protocols internally; there is no FTP or other special connection setup required. (very hand given the CF and DB servers might have a firewall between them, and how sticky NMCI folks are about FTP).
Oracle can load even larger files (7mb) quickly, and CF can retrieve the results from the temp table well. However, the terrible performance of CFFILE kills us. Since it does the whole open-write-close thing every time, it wasts a huge amount of overhead when you write larger files. For our 7mb file, it did the open-write-close thing 95,000 times, once for each line of text.
Does anyone know any tweaks to CFFILE or better ways to write a file on the DB server? We have CF 4.5.1, does CF 5.0 do it better?
Thanks in advance,
Rich ____________________________
Rich Tefft
PL/SQL Programmer
Oracle can load even larger files (7mb) quickly, and CF can retrieve the results from the temp table well. However, the terrible performance of CFFILE kills us. Since it does the whole open-write-close thing every time, it wasts a huge amount of overhead when you write larger files. For our 7mb file, it did the open-write-close thing 95,000 times, once for each line of text.
Does anyone know any tweaks to CFFILE or better ways to write a file on the DB server? We have CF 4.5.1, does CF 5.0 do it better?
Thanks in advance,
Rich ____________________________
Rich Tefft
PL/SQL Programmer