‎2022 Nov 21 2:13 PM
Hi Team,
Can anybody let me know which is better to use parallel cursor or reduce operator for nested loops.
Thanks
Niket
‎2022 Nov 21 2:21 PM
‎2022 Nov 21 5:11 PM
As always, the meaning of "better" depends on the context. If you have a high volume of data, it could be better to use "parallel cursor" on 2 internal tables but the code is less maintainable, and with a low volume of data it could be better to use REDUCE because it's more important to have maintainable code. But of course, there are other factors to consider.
Interview question?