Subject | Re: [Firebird-Architect] Feature Request - records before disposal |
---|---|
Author | Dmitry Yemanov |
Post date | 2004-12-16T08:03:12Z |
"Nigel Weeks" <nweeks@...> wrote:
highest level. Usually records are fetched from tables as you request them.
feature.
Dmitry
>No recordset is actually created, until a sort or a merge is used at the
> Hopefully I've got this right...
> When the following query is performed on a table with 500,000 rows:
>
> select first 50 skip 50 * from table where condition = value;
>
> The entire recordset is created based on joins, where conditions, etc.
highest level. Usually records are fetched from tables as you request them.
> How hard would it be to add an internal conduit to the external interfaceto
> give some information(namely, number of records) about the entirerecordset,
> before the skipping and first operations occured?Jim has already answered this.
> The support appears to be in the source:...This code is a part of the other (still not complete) performance related
>
> [snip]
>
> By the looks of it, 'max_records' gets incremented (+=) with each record
> falling in either the 'first' or 'skip' case sections.
feature.
Dmitry