Subject | Re: [firebird-support] Re: Limiting fetched rows doesn't offer much performance benefit |
---|---|
Author | Richard Wesley |
Post date | 2006-03-07T19:43:46Z |
On Mar 7, 2006, at 10:50, jimbehr3446 wrote:
the query
select * from table where rand() < .01;
to sample a table. Ideally, this would just create a stream of rows
and throw out 90% of them. Does FB actually have to instantiate the
(potentially humongous) table here too?
Richard Wesley
hawkfish tableausoftware com
> That is certainly what we are observing. It's too bad it is not smartEspecially if one is trying to do sampling of the table. Consider
> enought to realize there are no ordering clauses and quit when it has
> the desired number of records.
the query
select * from table where rand() < .01;
to sample a table. Ideally, this would just create a stream of rows
and throw out 90% of them. Does FB actually have to instantiate the
(potentially humongous) table here too?
Richard Wesley
hawkfish tableausoftware com