![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
Hi every one and thanks a lot for your answers. As Bill said, I've reproduced the behaviour of a kind of GROUP_CONTACT function as explains here:http://www.oracle-base.com/articles/...Techniques.php I've created the child table for test purposes and populated it with 3 lot numbers for each "session" row. The table was so populated with around 5 million of rows. I've choosen the make a PL-SQL function with a cursor (no objects or create_type features) For a limited range of data (from the begening of the year, otherwise about 10000 rows ), the cost is about 100 ms. However, if I add an order clause to my select, the difference is quite huge between calling the sub functino or not: 870ms versus 3.2 seconds. My guess is that your sort_area_size is the default 64K and thus the sort is |
#22
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |