Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
vmfunction
· 2y ago · 0 comments
Or wouldn't COPY from CSV be much faster?
Comments
[–]
killingtime74
2y ago
CSV 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
2y ago
You can stream CSV without writing it to a disk.
[–]
edgyquant
2y ago
What would be the point in that?
[–]
vmfunction
OP
2y ago
COPY is way faster than INSERT, at least in PG.
[–]
jasonjmcghee
2y ago
Fwiw you'd lose type information. Parquet / arrow are much more appropriate here