Possibilities for optimizing inserts across oracle_fdw foreign data wrapper

Поиск
Список
Период
Сортировка
От Niels Jespersen
Тема Possibilities for optimizing inserts across oracle_fdw foreign data wrapper
Дата
Msg-id ae9ab150af5a417e985e581249107853@dst.dk
обсуждение исходный текст
Ответы Re: Possibilities for optimizing inserts across oracle_fdw foreign data wrapper  (Mladen Gogala <gogala.mladen@gmail.com>)
Re: Possibilities for optimizing inserts across oracle_fdw foreign data wrapper  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-general

Hello all

 

We are often using the oracle_fdw to transfer data between Postgres (version 11+) and Oracle (version 18+). It works great.

 

However I have a task at hand that requires inserting a few billion rows in an Oracle table from a Postgres query.

 

insert into t_ora (a,b,c)   

select a,b,c from t_pg;

 

This is driven from a plpgsql stored procedure, if that matters.

 

I want to optimize the running time of this. But I am unsure of which, if any, possibilities there actually is.

 

Reducing the number of network roundtrips is usually a good way to increase throughput. But, how do I do that?

 

If I could make the Oracle insert direct load, that would usually also increase throughput. But, is that possible here. There are no constraints defined on the destinaton tables.

 

Regards Niels Jespersen

В списке pgsql-general по дате отправления:

Предыдущее
От: Tobias Meyer
Дата:
Сообщение: Re: Remove duplicated row in pg_largeobject_metadata
Следующее
От: Mladen Gogala
Дата:
Сообщение: Re: Possibilities for optimizing inserts across oracle_fdw foreign data wrapper