Re: Query size?

From: Paul Tomblin <ptomblin(at)gmail(dot)com>
To: imad <immaad(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Query size?
Date: 2008-06-22 12:37:29
Message-ID: 485E4789.8030807@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

imad wrote:
> Why dont you adopt a pro-active aproach here and append a LIMIT to
> every query you send to the server?
> You can do an OFFSET LIMIT combination of all queries until you get
> results less than LIMIT.

What I'm asking though is if there is some way to know before I start
returning results, short of doing a "COUNT(*)" first.

--
Paul Tomblin <ptomblin(at)xcski(dot)com> http://blog.xcski.com/
We're the technical experts. We were hired so that management could
ignore our recommendations and tell us how to do our jobs.
-- Mike Andrews

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message imad 2008-06-22 12:55:02 Re: Query size?
Previous Message imad 2008-06-22 12:23:36 Re: Query size?