public inbox for [email protected]
help / color / mirror / Atom feedFrom: Daniel Verite <[email protected]>
To: Stijn Sanders <[email protected]>
Cc: [email protected]
Subject: Re: Will PQsetSingleRowMode get me results faster?
Date: Mon, 06 Jan 2025 20:25:26 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAHYFsWWPQZj4J5=AE7b=zrY31Nkff-=D8O6=tXx-MiO83K6FJg@mail.gmail.com>
Stijn Sanders wrote:
> From what I notice using LibPQ, it appears a query needs to complete
> before resulting data is being transferred to the client. Please
> correct me if I'm wrong.
No, the query does not need to complete. If you run something like
"select * from bigtable" in single-row or chunked mode, you should
see that the first results are typically available immediately to the
application, while the query is far from finished.
But it depends on the query plan. A lot of queries cannot produce any
result until the final stage of their execution. For these, you can't
expect any difference in how fast the first results are available
client-side.
Best regards,
--
Daniel Vérité
https://postgresql.verite.pro/
Twitter: @DanielVerite
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Will PQsetSingleRowMode get me results faster?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox