Re: increase insert into local table from remote oracle table preformance

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Mariel Cherkassky <mariel(dot)cherkassky(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: increase insert into local table from remote oracle table preformance
Date: 2018-08-14 07:12:40
Message-ID: 1534230760.2379.6.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-performance

Mariel Cherkassky wrote:
> Hi,
> I'm using postgresql v10.4. I have a local partitioned table (by range - data, every day has its own table).
> I'm using the oracle_fdw extension to bring data from the oracle partitioned table into my local postgresql
> (insert into local select * from remote_oracle). Currently, I dont have any indexes on the postgresql`s table.
> It takes me 10 hours to copy 200G over the network and it is very slow.
> Any recommandations what can I change or improve ?

Hard to say anything with so little data.

You could try a bigger value for the "prefetch" option.

One known reason for slow performance is if there are LOBs in the Oracle table.

You could parallelize processing by running several such INSERTs in
parallel, perhaps one per partition, and inserting directly into
the partitions.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message soumik.bhattacharjee 2018-08-14 11:22:05 Oracle 11g to PostgreSQL 10 - Database Migration
Previous Message pavan95 2018-08-14 05:29:40 Re: logical Replication

Browse pgsql-performance by date

  From Date Subject
Next Message Mariel Cherkassky 2018-08-14 11:33:37 Re: Fwd: increase insert into local table from remote oracle table preformance
Previous Message Mark Kirkwood 2018-08-14 05:21:23 Re: increase insert into local table from remote oracle table preformance