Print Thread
How does CountAllRecords work?
#60471 08/29/19 01:40 PM
Joined: Feb 2018
Posts: 16
M
Member
OP Offline
Member
M
Joined: Feb 2018
Posts: 16
Hello

I searched the sources for 'CountAllRecords' and I see that it's (FCountAllRecords) only accessed in function TOracleDataset.GetRecordCount and procedure TOracleDataset.SetRecNo.

Then I searched for GetRecordCount and SetRecNo and all I see is the function declaration and implementation. No calls anywhere.

Can you tell me if I missed something? I don't see where the records are counted before the dataset is opened.

Best Regards
Matt

Re: How does CountAllRecords work?
Matt Ors #60473 08/30/19 09:11 AM
Joined: Aug 1999
Posts: 22,204
Member
Offline
Member
Joined: Aug 1999
Posts: 22,204
The records will be counted before opening the dataset by calling the CountQueryHits function, which executes a "select count(*) from (SQL)" statement.


Marco Kalter
Allround Automations
Re: How does CountAllRecords work?
Marco Kalter #60477 09/02/19 02:39 PM
Joined: Feb 2018
Posts: 16
M
Member
OP Offline
Member
M
Joined: Feb 2018
Posts: 16
Ok. The issue was that a control I'm using required more configuration to make it support sequence numbers. Now the program calls CountQueryHits as you said.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.029s Queries: 15 (0.013s) Memory: 2.5004 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-26 02:21:00 UTC
Valid HTML 5 and Valid CSS