3 ms·
Or wouldn't COPY from CSV be much faster?
by vmfunction 3y ago
Or wouldn't COPY from CSV be much faster?
- killingtime74 3y agoCSV based export/import would involve writing to disk, sending over network then reading back from file. Select is just one copy over network, no intermediate CSV.
- subleq 3y agoYou can stream CSV without writing it to a disk.
- edgyquant 3y agoWhat would be the point in that?
- vmfunction 3y agoCOPY is way faster than INSERT, at least in PG.
- jasonjmcghee 3y agoFwiw you'd lose type information. Parquet / arrow are much more appropriate here