Subject | Re: 'Order By' Issue |
---|---|
Author | dianeb77@hotmail.com |
Post date | 2000-12-07T18:11:14Z |
--- In IB-Architect@egroups.com, "Jason Wharton" <jwharton@i...>
wrote:
keyword on a SELECT statement doesn't tell you anything about the size
or intended use of the result set. Are you suggesting that it should
be used for that purpose?
Cheers,
db
wrote:
> > Yes, but time has changed, so that interactive applications<snip>
> > are more common than simple batch processing;
> > it means that time to first record _is_ often important.
> > Retrieving only part of result set is also important,
> > especially with internet applications.
>
> I agree very much so.
>
> What I would love to see is the ability to give the optimizer a hintthat it
> is more desirable for the first n records to be fetched thanassuming it is
> a whole batch job where all records are going to be fetched.keyword.
>
> One way this could be accomplished is to take advantage of the ALL
>records will
> SELECT ALL col1, col2 FROM TABLE
>
> This would signify that it is going to be a batch job where all
> be fetched. <snip>I hesitate to interrupt, but at present, the presence of the ALL
keyword on a SELECT statement doesn't tell you anything about the size
or intended use of the result set. Are you suggesting that it should
be used for that purpose?
Cheers,
db