Search Postgresql Archives

CopyManager(In/out) vs. delete/insert directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Two options for data (>1M), may I know which one better please?

(1) copyOut (JDBC copyManager)
     t1 into a.csv
     delete t2 where pk.cols in t1
     copyIn t2 from a.csv

(2) setautoCommit(false);
     delete t2 where pk.cols in t1;
     insert t2 select * from t1;

Thank you
Emi


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux