Hmmm. It's a list of customers and yearly turnover totals for current
year, year minus one and so on. The turnover totals aren't stored so I
am calculating them in the grid cursor SQL i.e.

select accountcode, name, Thisform.GetBalance(accountcode, 1) as prev1
... and so on. GetBalance() uses an optimised sum .. for expression.

So it's the calculation of the balances for 10k records over a network
that is taking 10 seconds which is on the slow side for this use case.

10 seconds sound reasonable for that amount of work over a network. Maybe you could store the previous year's totals somewhere as surely they are static data?

Peter

----------------------------------------------------------------



Rajan Imports has changed - we are now Whispering Smith Ltd.  For more 
information see our website at www.whisperingsmith.com


Please update your address book with my new email address: 
pcush...@whisperingsmith.com

.

This communication is intended for the person or organisation to whom it is addressed. The contents are confidential and may be protected in law. Unauthorised use, copying or disclosure of any of it may be unlawful. If you have received this message in error, please notify us immediately by telephone or email.

www.whisperingsmith.com

Whispering Smith Ltd
Head Office:61 Great Ducie Street, Manchester M3 1RR. Tel:0161 831 3700 
Fax:0161 831 3715
London Office:17-19 Foley Street, London  W1W 6DW Tel:0207 299 7960


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/526924f1.7020...@whisperingsmith.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to