Subject | Efficient Record Count |
---|---|
Author | dkLists |
Post date | 2001-12-14T02:21:56Z |
All -
I have a large table with approximately 1 million rows that will be continually growing over time. It is useful to be able to review the recordcount whenever I run my app and add/delete data. I've been trying to come up with an efficient way to maintain a 'running' record count without loading the entire dataset to the client, i.e. autofetchall.
Would it be much faster to do this in a stored procedure? If so, would it be as simple as doing a SELECT COUNT(*) FROM TABLE? If not, is there a particular IBObjects component that should be used?
All advice welcome.
Thanks in advance.
___________________________________
GreatLand Technology
inquiries@...
___________________________________
[Non-text portions of this message have been removed]
I have a large table with approximately 1 million rows that will be continually growing over time. It is useful to be able to review the recordcount whenever I run my app and add/delete data. I've been trying to come up with an efficient way to maintain a 'running' record count without loading the entire dataset to the client, i.e. autofetchall.
Would it be much faster to do this in a stored procedure? If so, would it be as simple as doing a SELECT COUNT(*) FROM TABLE? If not, is there a particular IBObjects component that should be used?
All advice welcome.
Thanks in advance.
___________________________________
GreatLand Technology
inquiries@...
___________________________________
[Non-text portions of this message have been removed]