It will be very fast if the data are fetched through SQL SELECT statement, however.
I have found a workaround that you can apply it to your existing codes without having to modify your existing logics.
The workaround is to use Oracle's Global Temporary Table (GTT). And, inside your stored procedure, instead of fetching data into a refcursor, you change the code to fetch into your GTT instead. Then, in your Perl code, you modify the code so that it fetches the data from SQL SELECT statement. This way, you can fetch large data at a very fast speed.
GTT has a behavior that the data inside it are private for each different database transaction and will be emptied once your transaction ends or you force it to do so.
Woo Hoo!
0 comments:
Post a Comment