CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

  find the number of records - i am confused

Print topic Send  topic

Author Message
sastravel2008

Posts: 9
Posted: 05/09/2011, 3:03 AM

As I understand, to find the number of records fetched by DataSource object the CC make a TWO! query:
One for fetch a table:
it makes a query:
object.DataSource.SQL 

and then to get the number of records - second query:
"SELECT COUNT(*) FROM  ".object.DataSource.SQL 

thats means that object.DataSource.SQL query executed twice.
is it true? i think that this not correctly and require more time

p.s. excuse me for my English.
View profile  Send private message
Oper


Posts: 1195
Posted: 05/09/2011, 8:02 AM

True,
and is really a pain on big table or complicated select.

we force the SQL count to no be executed always.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message
FrankR

Posts: 154
Posted: 05/09/2011, 9:00 AM

There's a big difference between retrieving all records from a table and asking it to give you a count of rows.
_________________
FR
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.