Re: idea to have driver return immediately after a query

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: idea to have driver return immediately after a query
Date: 2011-03-25 04:53:27
Message-ID: AANLkTimkD4aRjfM-WNrnkmHMKWuXeguARP0hHWNfwxnh@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> For queries in a transaction, it might make sense to implement this
> via portals, much as done for fetchsize (i.e. always ask for only 1
> row initially...

For what it's worth, you don't even need to ask for 1 row. At Truviso,
we have a layer on top of the driver that asks for 0 rows initially,
and this works fine (in terms of providing query metadata). There
*may* be some plans with significant startup overhead where the cost
of returning zero rows is much less than that of returning one row.

Thanks,
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2011-03-25 05:01:31 Re: idea to have driver return immediately after a query
Previous Message dmp 2011-03-25 01:38:06 Re: JDBC gripe list