Subject | Re: .recordCountAll |
---|---|
Author | bwc3068 |
Post date | 2008-09-11T18:09:49Z |
Hi Helen--
Thanks for the reply and the link. I'll read through that info.
I'll take a look and see if I can drop the .RecordCountAll needs and
put it into more returned query processing. (I'll
do .RecordCountAll's instead of .RecordCountAccurate.)
Thanks again for the help!
Regards
Kelly
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
(*) every time it is referenced. It is a performance killer and
intended only to "hold the place" while you are redeveloping your
converted application code to work effectively with Firebird or IB.
Repeat, record counts do not have a role in client/server apps.
WHILE NOT dataset.EOF loop. But plan to get rid of these loops
altogether. You have a database engine that does this work robustly
and atomically.
Thanks for the reply and the link. I'll read through that info.
I'll take a look and see if I can drop the .RecordCountAll needs and
put it into more returned query processing. (I'll
do .RecordCountAll's instead of .RecordCountAccurate.)
Thanks again for the help!
Regards
Kelly
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
wrote:
>ton
> At 01:07 11/09/2008, you wrote:
> >Hi All--
> >
> >I've got a really simple question....
> >
> >In my old (now converted) BDE app, I used to use .RecordCount a
> >to do things like loop through the entire returned query.Paradox tables. It doesn't belong in a client/server application.
> >
> >In FB using IBO, tIBOQuery.RecordCount is not accurate.
>
> Correct, it is a legacy from TDataset, which was designed for
>at
>
> >Is it better to use tIBOQuery.RecordCountAll (ie. is it reliable
> >each and everytime) OR tIBOQuery.RecordCountAccurate := True and
> >then, .RecordCount?
> >
> >If I go with .RecordCountAccurate, does that effect performance
> >all when I don't need the .RecordCount?answer, RecordCountAccurate is a hack that performs a select count
> >
> >.RecordCountAll would be easiest as it's a search/replace
> >with .RecordCount.
>
> These questions belong in the IBO list, not here. As a brief
(*) every time it is referenced. It is a performance killer and
intended only to "hold the place" while you are redeveloping your
converted application code to work effectively with Firebird or IB.
Repeat, record counts do not have a role in client/server apps.
>operations. If you must perform client-side loops at all then use a
> In short, do not use the record count as the basis for looping
WHILE NOT dataset.EOF loop. But plan to get rid of these loops
altogether. You have a database engine that does this work robustly
and atomically.
>
> Also have a read of this, if you haven't already:
> http://www.ibobjects.com/TechInfo.html#ti_Moving_to_CS
>
> ./heLen
>