FORALL offers a big performance boost over repeated execution in a loop of the same DML statement (different bind variables) - by binding an array. But what if the array is not densely filled? In that case, you should consider using INDICES OF (or VALUES OF, which will be covered in another video).
========================================
Practically Perfect PL/SQL with Steven Feuerstein
Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Тэги:
#pl/sql #oracle_database #performance