Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Bulk Collect and Pipelined Table Function
DA Morgan wrote:
> Peter Kallweit wrote: >
> > > First I would suggest that you return to the starting point ... what is > it that makes you think a pipelined table function is going to perform > faster than a bulk collection in and of itself? I've seen nothing that > would support that presumption.
Hi Daniel,
AFAIK the bulk collect is creating the complete result table in memory before returning from the function. This consumes a lot of memory. With typically more then 100K rows in the result table and multiple users executing this statement, this eats a lot of memory on the server. And, sadly enough, the machine isn't the biggest.
I think of something like that: I'm doing the bulk collects in chunks of 1K rows. These chunks I give direct into the pipeline. This way, I think, I could combine the advantages of both.
Regards
Peter
Received on Mon Feb 28 2005 - 03:43:34 CST