We have a customer who is having issues with load times and observed that it took almost twice as long to COPY a file using COPY table FROM LOCAL ''; compared to piping the file to COPY table FROM STDIN;
I was able to replicate this:
dbadmin=> copy speed1090 from local '1090.txt' direct; Time: First fetch (1 row): 822060.183 ms. All rows formatted: 822060.252 ms [bryan@hpbox tmp]$ vsql -m disable -U dbadmin -w *** -i -c "copy speed1090 from stdin direct;" < 1090.txt Time: First fetch (0 rows): 473844.378 ms. All rows formatted: 473844.389 ms
Why is this the case? Also, how might SSL/TLS between client and server affect performance of COPY?