- Bjarne Anker
- PowerBuilder
- Thursday, 21 December 2017 09:21 AM UTC
Hi.
I have a very basic query which selects about 25 columns from 2 tables using inner join and where-statement on one of the indexes (SQL Anywhere 16).
This query returns 19.000 rows and takes 0.04 seconds in Interactive SQL, but almost 5 seconds in the pfc_retrieve() event on the DW.
The profiling tool doesn't have any more detail than this.
No code on the retrieverow() event or other, and no special code in the query itself.
I've tried with setredraw() before and after retrieve, with no significant improvement in performance.
Has anyone an explanation on why the retrieve is so slow compared to the select-statement in Interactive SQL?
Or perhaps there are tips or tricks I can try to speed up the retrieve?
Best regards,
Bjarne Anker
Maritech Systems
Norway
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.