RE: POC: postgres_fdw insert batching - Mailing list pgsql-hackers

From tsunakawa.takay@fujitsu.com
Subject RE: POC: postgres_fdw insert batching
Date
Msg-id OSBPR01MB298268F1A1BACFCE61740CC3FEE20@OSBPR01MB2982.jpnprd01.prod.outlook.com
Whole thread Raw
In response to RE: POC: postgres_fdw insert batching  ("tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>)
Responses Re: POC: postgres_fdw insert batching
List pgsql-hackers
Hello,


Modified the patch as I talked with Tomas-san.  The performance results of loading one million records into a
hash-partitionedtable with 8 partitions are as follows:
 

    unpatched, local: 8.6 seconds
        unpatched, fdw: 113.7 seconds
    patched, fdw: 12.5 seconds  (9x improvement)

The test scripts are also attached.  Run prepare.sql once to set up tables and source data.  Run local_part.sql and
fdw_part.sqlto load source data into a partitioned table with local partitions and a partitioned table with foreign
tablesrespectively.
 


Regards
Takayuki Tsunakawa


Attachment

pgsql-hackers by date:

Previous
From: Li Japin
Date:
Subject: Re: Terminate the idle sessions
Next
From: Amit Kapila
Date:
Subject: Re: Cache relation sizes?