Hi,
I'm trying to implement async processing. I've added Async = 1 to my transaction object and added a comment to the retrieve row event of my inherited datawindow control object. At execution time, I get the following error on the 8th row(8th time retrievrow is called) every time.
"Only the cancel command is allowed when the rows are pending."
based on the error I was thinking Async wasn't actually being enabled. I tried a using a separate transaction object, checking the Asyc dbparm in the transaction object before retrieve and it looks enabled. Am I missing something?
Thanks!
Joel
Hi Joel,
I've gained significant performance increase for certain slow datawindows by using a stored procedure as the source.
The select was so complicated, that it was easier to use a stored procedure to:
- First get all the data that was needed and put in a temporary (physical) table. (using Insert into .... SELECT....)
- Then the stored procedure, for all the more complicated things/joins/subselects/functions as columns, we would do only on the result set in that temporary table.
- When finished, we'd truncate the temp table. (no commit)