RangerMSP Business Automation for successful ITs


Go Back   RangerMSP Forums > RangerMSP Software Discussion Forum (CCRM)

Thread Tools Search this Thread
 
November 19th, 2014, 03:09 AM
itognet
 
Posts: 217
You really need to fasten up your rutines, fx. the Count table rows because it is a joke (sorry).
Sometimes I have around 9000 rows needed to be counted....

Why the %/"*! do you use a "for start to end then count row"


Just retrieve the RowCount from the grid or from the dataset: DBGrid1.DataSource.DataSet.RecordCount


If you realllllly want to use the "for start to end" rutine then don't update the screen while counting - this will make 2000% faster. :-)
 
November 19th, 2014, 06:09 AM
Support Team
 
Posts: 7,528
​The way the system works is that to gain performance on regular use (e.g. not when you decide to count to 9000) the system does not fetch all data up-front, so when you have 9000 records in your Accounts database, for example, the system does NOT fetch all 9000 records and brings them to the client. This would delay everything.

Now all this is completely transparent to the end user. Namely, if the user scrolls down the data is fetched behind the scenes in the background and it is displayed to the user as if we have fetched everything up-front.

Not to refresh the UI may help though, however, it might break the continuous-auto-fetch system we have in place to gain performance. We'll see.

Thanks for posting.
 
November 19th, 2014, 06:41 AM
itognet
 
Posts: 217
Or you can use the sql select count(*)

What I mean is:
When I count a table in list mode, I will get the result in 2-3 seconds.
When I count a table in list mode with details, I will get the same result after 1 minute and 40 secs (for 1300 records).

We use the count feature serveral times a day.
 
November 19th, 2014, 10:55 AM
Support Team
 
Posts: 7,528
​So, you already have a workaround when needing to count thousands of records :-)
Thanks.​
 
November 20th, 2014, 04:16 AM
lpopejoy
 
Posts: 942
Second the sql option here. Could count thousands of records in milliseconds.

I don't follow the logic on screen refreshes during a count.

Anyway, we don't use it much and when I have to do any crazy queries, I use sql anyway.
 





All times are GMT -6. The time now is 09:19 AM.

Archive - Top    

RangerMSP - A PSA software designed for MSPs and IT Services Providers
Forum Software Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.