Re: Inserting 8MB bytea: just 25% of disk perf used? - Mailing list pgsql-performance

From Florian Weimer
Subject Re: Inserting 8MB bytea: just 25% of disk perf used?
Date
Msg-id 82aawgoh09.fsf@mid.bfk.de
Whole thread Raw
In response to Inserting 8MB bytea: just 25% of disk perf used?  ("fkater@googlemail.com" <fkater@googlemail.com>)
Responses Re: Inserting 8MB bytea: just 25% of disk perf used?  ("fkater@googlemail.com" <fkater@googlemail.com>)
List pgsql-performance
> Do you have any further idea why 16MB/s seems to be the limit here?

BYTEA deserialization is very slow, and this could be a factor here.
Have you checked that you are in fact I/O bound?

You can speed things up by sending the data in binary, by passing
approriate parameters to PQexecParams().

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-performance by date:

Previous
From: Matthew Wakeling
Date:
Subject: Re: Slow "Select count(*) ..." query on table with 60 Mio. rows
Next
From: "A. Kretschmer"
Date:
Subject: Re: Slow "Select count(*) ..." query on table with 60 Mio. rows