Hi Jeff
We have for a very long time problems executing calcs at all. Not in a HC, but from a SmartClient or a SmartClient started from within the Servoy Developer.
We have a table containing around 13000 records. If we run databaseManager.recalculate(record) in a loop, the first couple of records are calculated about a (stored) calc per second. After already about 50 records, the speed slows down dramatically, going to hours (yes, hours) after having calculated about 1000 records. After running the method for 3 days, we were about at 1200 records!
This is a real problem for us as we absolutly need these calcs.
Currently, the only way we can get these calcs beiing calculated is by doing them in packages of 200, then manually stop the SmartClient, start the SmartClient again and execute the next 200 records. A real pain and in fact unusable, but we didn't get any help till now. If only Servoy guys could explain why calcs get soooo slow after a short time?
Sorry, I can't help you as we need help as well, I just can feel with you. In my opinion, something is severe wrong with calcs in Servoy, I may be wrong, but then I would like to know the solution.
Servoy could just fill a table with enough records and execute some stored calcs and see if it works - I dont think it will.
Regards, Robert
PS: We use stored calcs for example when creating Reports with JasperReports.
jbader wrote:I am having an issue whereby calling dbmgr.recalc from an HC doesn't recalc calcs in the included mods, and no exception is thrown. The same code in smart client works fine.