Re: performance of loading CSV data with COPY is 50 times fasterthan Perl::DBI - Mailing list pgsql-general

From Steven Lembark
Subject Re: performance of loading CSV data with COPY is 50 times fasterthan Perl::DBI
Date
Msg-id 20200203100259.3a2947f6.lembark@wrkhors.com
Whole thread Raw
In response to Re: performance of loading CSV data with COPY is 50 times faster than Perl::DBI  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
> 2. postgres has not implicit plan cache, so every INSERT planned
> again and again

Good point: If you are doing something in a loop you probably
want to use prepare_cached() to get the $sth, for both extract
and insert.


-- 
Steven Lembark                                        3646 Flora Place
Workhorse Computing                                St. Louis, MO 63110
lembark@wrkhors.com                                    +1 888 359 3508



pgsql-general by date:

Previous
From: Steven Lembark
Date:
Subject: Re: performance of loading CSV data with COPY is 50 times fasterthan Perl::DBI
Next
From: Condor
Date:
Subject: Re: How to avoid UPDATE on same data in table ?