From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Samuel Williams <space(dot)ship(dot)traveller(at)gmail(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: libpq pipelineing |
Date: | 2020-06-29 13:55:06 |
Message-ID: | 20200629135506.GX3125@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Greetings,
* Samuel Williams (space(dot)ship(dot)traveller(at)gmail(dot)com) wrote:
> Here is a short example:
>
> https://gist.github.com/ioquatix/2f08f78699418f65971035785c80cf18
>
> It makes 10 queries in one "PQsendQuery" and sets single row mode. But
> all the results come back at once as shown by the timestamps.
If you have 10 queries that you want to make in a given transaction and
you care about the latency then really the best option is to wrap that
all in a single pl/pgsql function on the server side and make one call.
> Next I'm planning to investigate streaming large recordsets to see if
> it works better/incrementally.
If you want to stream large data sets to/from PG, you should consider
using COPY.
Thanks,
Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Paul Förster | 2020-06-29 13:59:38 | Re: EXTERNAL: Re: Netapp SnapCenter |
Previous Message | Stephen Frost | 2020-06-29 13:49:11 | Re: PG13 Trusted Extension usability issue |