Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我阅读Bulk Collect并使用它编写了一些代码(尚未部署)。返回的总行数接近 80.000。我将一批返回的行数限制为10.000,但是没有使用这个数字的依据,我只是即兴发挥。
Bulk Collect
什么是确定如何限制的好方法Bulk Collect?
与任何事情一样,最好的方法是对不同的选项进行基准测试。
但实际上,在绝大多数情况下,远高于 100 的限制没有任何明显的好处。限制为 100 时,您消除了 99% 的上下文转换。剩下的 1% 的上下文转换占代码执行时间的相当大一部分是相对不太可能的。进一步减少上下文变化可能对性能没有任何帮助,只会让您使用更有价值的 PGA 内存。