Cursor performance in a Cobol program gets worse after moving the cursor into a pl/sql package
I had a Cobol program which declared, opened and then fetched from a cursor for about 300000 times. Since I wanted to include a little bit more modifications with the cursor I moved the cursor into a pl/sql-package in the database and developed procedures for open, fetch and close. Then, in the Cobol program I changed the direct handling of the cursor into calls of these procedures. These changes resulted in a much longer time for the program. In fact the time was about three or four times longer. Do you have an explanation for this behaviour?
With best regards,