From: Steven Lembark <lembark@wrkhors.com>
To: pgsql-general@lists.postgresql.org
Cc: lembark@wrkhors.com
Subject: Re: performance of loading CSV data with COPY is 50 times faster than Perl::DBI
Date: Mon, 3 Feb 2020 10:02:59 -0600
Message-ID: <20200203100259.3a2947f6.lembark@wrkhors.com> (raw)
In-Reply-To: <CAFj8pRCGwod+pUczLa-0yuBnSyz0RVzXJ6Nk-PAL=_PL3pmBRw@mail.gmail.com>
References: <20200131182441.GA8181@c720-r342378>
<CAFj8pRCGwod+pUczLa-0yuBnSyz0RVzXJ6Nk-PAL=_PL3pmBRw@mail.gmail.com>
> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: lembark@wrkhors.com
Subject: Re: performance of loading CSV data with COPY is 50 times faster than Perl::DBI
In-Reply-To: <20200203100259.3a2947f6.lembark@wrkhors.com>
References: <20200131182441.GA8181@c720-r342378> <CAFj8pRCGwod+pUczLa-0yuBnSyz0RVzXJ6Nk-PAL=_PL3pmBRw@mail.gmail.com> <20200203100259.3a2947f6.lembark@wrkhors.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox