Re: Inserting 8MB bytea: just 25% of disk perf used?

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: "fkater\(at)googlemail(dot)com" <fkater(at)googlemail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Inserting 8MB bytea: just 25% of disk perf used?
Date: 2010-01-14 15:14:46
Message-ID: 82aawgoh09.fsf@mid.bfk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)bfk(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message A. Kretschmer 2010-01-14 15:18:14 Re: Slow "Select count(*) ..." query on table with 60 Mio. rows
Previous Message Matthew Wakeling 2010-01-14 15:11:39 Re: Slow "Select count(*) ..." query on table with 60 Mio. rows