Optimizes batched updates by batching all contiguous commands that relate to the same physical model. For example, for the following batch of commands:
- 1. INSERT INTO physicalModel.myPhysical ...
- 2. UPDATE physicalModel.myPhysical ...
- 3. DELETE FROM virtualmodel.myVirtual ...
- 4. UPDATE virtualmodel.myVirtual ...
- 5. UPDATE physicalModel.myOtherPhysical ...
- 6. INSERT INTO physicalModel.myOtherPhysical ...
-
- 7. DELETE FROM physicalModel.myOtherPhysical ...
- 8. INSERT INTO physicalModel.myPhysical ...
- 9. INSERT INTO physicalModel.myPhysical ...
- 10. INSERT INTO physicalModel.myPhysical ...
- 11. INSERT INTO physicalModel.myPhysical ...
- 12. INSERT INTO physicalModel.myPhysical ...
this implementation will batch as follows: (1,2), (5, 6, 7), (8 thru 12). The remaining commands/plans will be executed individually.
@see org.teiid.query.optimizer.CommandPlanner#optimize(Command,org.teiid.core.id.IDGenerator,org.teiid.query.metadata.QueryMetadataInterface,org.teiid.query.optimizer.capabilities.CapabilitiesFinder,org.teiid.query.analysis.AnalysisRecord,CommandContext)
@since 4.2