Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8414255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:07:15+00:00 2026-06-10T01:07:15+00:00

In Firebird/Interbase databases we have the TIBQuery , TIBTable and TIBDataSet , which have

  • 0

In Firebird/Interbase databases we have the TIBQuery, TIBTable and TIBDataSet, which have the FetchAll method to count how many rows that data set has. If we don’t call that method, these data sets only register as “total” the number of rows that the user already saw by a TDBGrid or TDBNavigator. This “total” can be retrieved by calling the `RecordCount’ method of these data sets.

Another (much more efficient) way to get the real total rows it to get a separated data set and perform some SELECT COUNT(*) FROM TABLE_NAME and apply any filters we like. It’s Ok by far.

But now that I am working with MySQL through ZeosLib, I was wonder if I need to have that trouble to put a second query on the memory.

We know that ZeosLib makes it’s queries and it might return internally the statistics of that query, which includes the number of rows returned.

Does ZeosLib puts that information in the RecordCount or does it works exactly like Interbase Components?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T01:07:17+00:00Added an answer on June 10, 2026 at 1:07 am
    1. Zeos returns number of already fetched records. It does not take into account any applyed filters and does not do FetchAll before returning RecordCount.
    2. SELECT COUNT(*) ... is not “much more efficient”, because it creates additional server workload, which sometimes may be equal to workload to execute an original query.
    3. In general, a data access library may offer 3 modes of record count calculation: the number of fetched rows, the number of visible rows (like first, but after applying filters), and SELECT COUNT(*). FetchAll or not FetchAll will be better to control explicitly. This is how this is done in AnyDAC (more).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are databases on Firebird and SQL Server. I have working stored procedure in
I have a Firebird database, which let's say has Tables A and B which
I'm using Delphi 7 and Firebird 1.5. I have a query that I create
We have an existing Firebird database which we wish to setup in an ASP.NET
Interbase is a generational database. That's great because rollbacks are near instantaneous, but count(*)
I'm using Firebird 2.5 and I have to find rows containing several word in
My understanding is that, in keeping with Interbase v6, Firebird 2.5 does not support
I have a firebird database that I need to recreate. It contains an external
I have a firebird database that is edging the 4GB filesystem limit size. How
I have a FireBird SP that returns 3 output parameters to modify 3 fields

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.